Changeset 3957 for LMDZ6/branches/LMDZ-tracers/libf/phylmd
- Timestamp:
- Jul 11, 2021, 11:39:01 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/LMDZ-tracers/libf/phylmd/phyetat0.F90
r3891 r3957 575 575 USE dimphy, only: klon 576 576 USE print_control_mod, ONLY: lunout 577 577 USE readTracFiles_mod, ONLY: known_phases, old_phases, nphases, phases_sep 578 USE strings_mod, ONLY: strIdx 578 579 IMPLICIT NONE 579 580 … … 588 589 ! Local variables 589 590 LOGICAL found 591 INTEGER :: ix, ip 592 CHARACTER(LEN=256) :: oldname 590 593 591 594 CALL get_field(name, field, found) 595 ix = strIdx([('trs_H2O'//phases_sep//known_phases(ip:ip), ip=1, nphases)], name) 596 IF (.NOT. found .AND. ix /= 0) THEN !--- Old file, water: H2Ov/l/i instead of H2O_g/_l/_s 597 oldname = 'trs_H2O'//old_phases(ix:ix) 598 CALL get_field(oldname, field, found) 599 END IF 592 600 IF (.NOT. found) THEN 593 601 WRITE(lunout,*) "phyetat0: Le champ <",TRIM(name),"> est absent" 594 602 WRITE(lunout,*) "Depart legerement fausse. Mais je continue" 595 603 field(:,:)=default 604 ELSE IF(ix /= 0) THEN 605 WRITE(lunout,*)"phyetat0: Le champ <",TRIM(name),"> est absent => initialisation a <"//TRIM(oldname)//">" 596 606 ENDIF 597 607 WRITE(lunout,*) TRIM(name), descr, MINval(field),MAXval(field)
Note: See TracChangeset
for help on using the changeset viewer.