Changeset 4163
- Timestamp:
- Apr 1, 2026, 9:31:51 PM (8 days ago)
- Location:
- trunk/LMDZ.MARS
- Files:
-
- 3 edited
-
changelog.txt (modified) (1 diff)
-
libf/phymars/phyetat0_mod.F90 (modified) (1 diff)
-
libf/phymars/tracer_mass_fixer_dyn_mod.F90 (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/changelog.txt
r4162 r4163 5151 5151 Adding some missing slope fields in field_def_physics_mars.xml that are called 5152 5152 by xios in the code. 5153 5154 == 01/04/2026 == YCL 5155 Initialize mass_predyn to -999 so that newstart writes a defined value (-999) to mass_predyn_<tracer> in restartfi.nc, avoiding uninitialized values (e.g., 0 or random memory). 5156 If mass_predyn_<tracer> <= 0 (such as -999 written by newstart) in startfi.nc, the mass fixer for dynamics is skipped at the first physiq step. -
trunk/LMDZ.MARS/libf/phymars/phyetat0_mod.F90
r4160 r4163 726 726 if (startphy_file .and. call_mass_fixer_dyn) then 727 727 call get_var("mass_predyn_co", mass_predyn_co, found) 728 if (found ) then728 if (found .and. mass_predyn_co > 0.d0) then 729 729 found_startfi_co = .true. 730 730 else 731 write(*,*) "phyetat0: <mass_predyn_co> not in file "731 write(*,*) "phyetat0: <mass_predyn_co> not in file or invalid" 732 732 endif 733 733 734 734 call get_var("mass_predyn_o2", mass_predyn_o2, found) 735 if (found ) then735 if (found .and. mass_predyn_o2 > 0.d0) then 736 736 found_startfi_o2 = .true. 737 737 else 738 write(*,*) "phyetat0: <mass_predyn_o2> not in file "738 write(*,*) "phyetat0: <mass_predyn_o2> not in file or invalid" 739 739 endif 740 740 741 741 call get_var("mass_predyn_h2", mass_predyn_h2, found) 742 if (found ) then742 if (found .and. mass_predyn_h2 > 0.d0) then 743 743 found_startfi_h2 = .true. 744 744 else 745 write(*,*) "phyetat0: <mass_predyn_h2> not in file "745 write(*,*) "phyetat0: <mass_predyn_h2> not in file or invalid" 746 746 endif 747 747 748 748 call get_var("mass_predyn_ho2", mass_predyn_ho2, found) 749 if (found ) then749 if (found .and. mass_predyn_ho2 > 0.d0) then 750 750 found_startfi_ho2 = .true. 751 751 else 752 write(*,*) "phyetat0: <mass_predyn_ho2> not in file "752 write(*,*) "phyetat0: <mass_predyn_ho2> not in file or invalid" 753 753 endif 754 754 755 755 call get_var("mass_predyn_h2o2", mass_predyn_h2o2, found) 756 if (found ) then756 if (found .and. mass_predyn_h2o2 > 0.d0) then 757 757 found_startfi_h2o2 = .true. 758 758 else 759 write(*,*) "phyetat0: <mass_predyn_h2o2> not in file "759 write(*,*) "phyetat0: <mass_predyn_h2o2> not in file or invalid" 760 760 endif 761 761 762 762 call get_var("mass_predyn_n2", mass_predyn_n2, found) 763 if (found ) then763 if (found .and. mass_predyn_n2 > 0.d0) then 764 764 found_startfi_n2 = .true. 765 765 else 766 write(*,*) "phyetat0: <mass_predyn_n2> not in file "766 write(*,*) "phyetat0: <mass_predyn_n2> not in file or invalid" 767 767 endif 768 768 769 769 call get_var("mass_predyn_ar", mass_predyn_ar, found) 770 if (found ) then770 if (found .and. mass_predyn_ar > 0.d0) then 771 771 found_startfi_ar = .true. 772 772 else 773 write(*,*) "phyetat0: <mass_predyn_ar> not in file "773 write(*,*) "phyetat0: <mass_predyn_ar> not in file or invalid" 774 774 endif 775 775 776 776 call get_var("mass_predyn_he", mass_predyn_he, found) 777 if (found ) then777 if (found .and. mass_predyn_he > 0.d0) then 778 778 found_startfi_he = .true. 779 779 else 780 write(*,*) "phyetat0: <mass_predyn_he> not in file "780 write(*,*) "phyetat0: <mass_predyn_he> not in file or invalid" 781 781 endif 782 782 endif ! if (startphy_file .and. call_mass_fixer_dyn) -
trunk/LMDZ.MARS/libf/phymars/tracer_mass_fixer_dyn_mod.F90
r4150 r4163 200 200 201 201 allocate(mass_predyn(nq)) 202 mass_predyn(1:nq) = -999. ! newstart writes mass_predyn_<tracer> in startfi.nc with this value, 203 ! ensuring mass_predyn_<tracer> <= 0. As a result, found_startfi_<tracer> 204 ! remains .false., and no correction is applied at the first physics step 205 ! when initialized from newstart output. 202 206 203 207 end subroutine ini_tracer_mass_fixer_dyn
Note: See TracChangeset
for help on using the changeset viewer.
