Changeset 217 for codes/icosagcm/trunk/src/physics.f90
- Timestamp:
- 07/16/14 10:08:16 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/trunk/src/physics.f90
r215 r217 11 11 TYPE(t_field),POINTER :: f_dulon(:), f_dulat(:) 12 12 13 CHARACTER(LEN=255) :: physics_type ="automatic"13 CHARACTER(LEN=255) :: physics_type 14 14 !$OMP THREADPRIVATE(physics_type) 15 15 … … 26 26 IMPLICIT NONE 27 27 28 CALL allocate_field(f_dulon,field_t,type_real,llm, name='dulon') 29 CALL allocate_field(f_dulat,field_t,type_real,llm, name='dulat') 30 CALL init_pack_before ! Compute physics_inout%ngrid and offsets used by pack/unpack 31 32 physics_type='automatic' 28 physics_inout%dt_phys = dt*itau_physics 29 physics_type='none' 33 30 CALL getin("physics",physics_type) 34 35 31 SELECT CASE(TRIM(physics_type)) 36 CASE ('automatic') 37 etat0_type='jablonowsky06' 38 CALL getin("etat0",etat0_type) 39 SELECT CASE(TRIM(etat0_type)) 40 CASE('held_suarez') 41 phys_type = phys_HS94 42 CASE DEFAULT 43 IF(is_mpi_root) PRINT*,"NO PHYSICAL PACKAGE USED" 44 phys_type = phys_none 45 END SELECT 46 32 CASE ('none') 33 IF(is_mpi_root) PRINT*,"NO PHYSICAL PACKAGE USED" 34 phys_type = phys_none 35 CASE ('held_suarez') 36 phys_type = phys_HS94 47 37 CASE ('dcmip') 38 CALL allocate_field(f_dulon,field_t,type_real,llm, name='dulon') 39 CALL allocate_field(f_dulat,field_t,type_real,llm, name='dulat') 40 CALL init_pack_before ! Compute physics_inout%ngrid and offsets used by pack/unpack 48 41 CALL init_physics_dcmip 42 CALL init_pack_after ! Defines Ai, lon, lat in physics_inout 49 43 phys_type = phys_DCMIP 50 44 CASE DEFAULT 51 45 IF(is_mpi_root) PRINT*, 'init_physics : Bad selector for variable physics <',& 52 TRIM(physics_type), '> options are < automatic>, <dcmip>, <dry>'46 TRIM(physics_type), '> options are <none>, <held_suarez>, <dcmip>' 53 47 STOP 54 48 END SELECT 55 49 56 50 IF(is_mpi_root) PRINT *, 'phys_type = ',phys_type 57 physics_inout%dt_phys = dt*itau_physics58 CALL init_pack_after ! Defines Ai, lon, lat in physics_inout59 51 END SUBROUTINE init_physics 60 52
Note: See TracChangeset
for help on using the changeset viewer.