Changeset 3205


Ignore:
Timestamp:
Feb 8, 2024, 11:05:11 AM (11 months ago)
Author:
jbclement
Message:

Mars PCM:
Fix the situation where the 1D model read the "startfi.nc" or "start1D.txt" if they were present even though 'startfiles=.false', instead of initializing by default.
JBC

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/changelog.txt

    r3203 r3205  
    44704470- Addition of the possibility to use subslopes parametization in 1D. To do so, put 'nslope=x' in "run.def" where x (1, 3, 5 or 7) is the number of slopes you want to, or modify it in an appropriate "startfi.nc". Then, default subslopes definition and distribution are used by the model. The already existing case of using one slope whose inclination and orientation are defined in "run.def" is still possible.
    44714471- Some cleanings throughout the code, in particular related to unused variables.
     4472
     4473== 08/02/2024 == JBC
     4474Fix the situation where the 1D model read the "startfi.nc" or "start1D.txt" if they were present even though 'startfiles=.false', instead of initializing by default.
  • trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F90

    r3203 r3205  
    131131
    132132therestart1D = .false. ! Default value
    133 inquire(file = 'start1D.txt',exist = therestart1D)
    134 if (startfiles_1D .and. .not. therestart1D) then
    135     write(*,*) 'There is no "start1D.txt" file!'
    136     write(*,*) 'Initialization is done with default values.'
    137 endif
    138133therestartfi = .false. ! Default value
    139 inquire(file = 'startfi.nc',exist = therestartfi)
    140 if (.not. therestartfi) then
    141     write(*,*) 'There is no "startfi.nc" file!'
    142     write(*,*) 'Initialization is done with default values.'
     134if (startfiles_1D) then
     135    inquire(file = 'start1D.txt',exist = therestart1D)
     136    if (startfiles_1D .and. .not. therestart1D) then
     137        write(*,*) 'There is no "start1D.txt" file!'
     138        write(*,*) 'Initialization is done with default values.'
     139    endif
     140    inquire(file = 'startfi.nc',exist = therestartfi)
     141    if (.not. therestartfi) then
     142        write(*,*) 'There is no "startfi.nc" file!'
     143        write(*,*) 'Initialization is done with default values.'
     144    endif
    143145endif
    144146
Note: See TracChangeset for help on using the changeset viewer.