Changeset 1895 for trunk/LMDZ.TITAN/libf/phytitan
- Timestamp:
- Jan 16, 2018, 10:53:17 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/phytitan/chem_settings.F90
r1894 r1895 19 19 USE comchem_h 20 20 21 USE iostart, only: get_field, get_var 21 USE iostart, only: get_field, get_var, inquire_dimension_length 22 USE callkeys_mod, only : callchim 22 23 23 24 IMPLICIT NONE … … 42 43 !====================================================================== 43 44 44 ! 0. Allocates arrays in comchem_h 45 ! 0. Start by reading how many layers of upper chemistry there are 46 47 nlaykim_up=inquire_dimension_length("upper_chemistry_layers") 48 49 ! 1. Allocates arrays in comchem_h 50 45 51 CALL ini_comchem_h(ngrid) 46 52 47 ! 1. Load upper chemistry pressure grid53 ! 2. Load upper chemistry pressure grid 48 54 49 55 CALL get_var("preskim",preskim,found) … … 54 60 maxval(preskim), minval(preskim) 55 61 56 ! 2. Loadupper chemistry composition fields62 ! 3. Inquire ( and load ) upper chemistry composition fields 57 63 58 64 CALL get_field("H_up",ykim_up(1,:,:),found,indextime) 59 65 IF (.NOT.found) THEN 66 60 67 ! We assume we can't do uncomplete chemistry 61 68 WRITE(*,*) "chem_settings: No upper chemistry fields." 69 70 IF ( callchim ) THEN ! if chemistry we must have the upper fields ! 71 CALL abort_physic(modname,"Failed loading uppper chemistry fields, whereas callchim set to true !",1) 72 ENDIF 73 74 DEALLOCATE(ykim_up) ! it will be useless 75 62 76 ELSE 63 77
Note: See TracChangeset
for help on using the changeset viewer.