Changeset 3205 for trunk/LMDZ.MARS/libf


Ignore:
Timestamp:
Feb 8, 2024, 11:05:11 AM (19 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.