[830] | 1 | MODULE init_grid_param_mod |
---|
[906] | 2 | |
---|
[830] | 3 | IMPLICIT NONE |
---|
[906] | 4 | PRIVATE |
---|
| 5 | SAVE |
---|
| 6 | |
---|
| 7 | PUBLIC :: init_grid_param |
---|
[830] | 8 | |
---|
| 9 | CONTAINS |
---|
| 10 | |
---|
| 11 | SUBROUTINE init_grid_param(is_mpi_root) |
---|
| 12 | USE grid_param |
---|
| 13 | USE ioipsl, ONLY : getin |
---|
[863] | 14 | USE init_unstructured_mod, ONLY : open_local_mesh_file |
---|
[830] | 15 | LOGICAL :: is_mpi_root |
---|
| 16 | CHARACTER(len=255) :: grid_type_var |
---|
| 17 | |
---|
| 18 | grid_type_var='icosahedral' |
---|
| 19 | CALL getin("grid_type",grid_type_var) |
---|
| 20 | SELECT CASE(grid_type_var) |
---|
| 21 | CASE('icosahedral') |
---|
| 22 | grid_type = grid_ico |
---|
| 23 | IF (is_mpi_root) PRINT *,'DYNAMICO mesh is icosahedral.' |
---|
| 24 | CALL getin('nbp',iim_glo) |
---|
[926] | 25 | IF(is_mpi_root) PRINT *, 'GETIN nbp = ',iim_glo |
---|
| 26 | iim_glo=iim_glo+1 |
---|
[830] | 27 | jjm_glo=iim_glo |
---|
[906] | 28 | CALL select_compute_hex |
---|
[830] | 29 | CASE('unstructured') |
---|
| 30 | grid_type = grid_unst |
---|
| 31 | ! is_omp_level_master=.TRUE. |
---|
| 32 | ! omp_level_size=1 |
---|
[863] | 33 | CALL open_local_mesh_file |
---|
[830] | 34 | IF (is_mpi_root) PRINT *,'DYNAMICO mesh is unstructured/LAM.' |
---|
[906] | 35 | CALL select_compute_unst |
---|
[830] | 36 | CASE DEFAULT |
---|
| 37 | PRINT *, 'Invalid value of grid_type :',TRIM(grid_type_var) |
---|
| 38 | PRINT *, 'Valid values are : <icosahedral> <unstructured>' |
---|
| 39 | STOP |
---|
| 40 | END SELECT |
---|
| 41 | |
---|
| 42 | nqtot=1 |
---|
| 43 | CALL getin('nqtot',nqtot) |
---|
| 44 | CALL getin('llm',llm) |
---|
| 45 | IF(is_mpi_root) THEN |
---|
| 46 | PRINT *, 'GETIN llm = ',llm |
---|
| 47 | PRINT *, 'GETIN nqtot = ',nqtot |
---|
| 48 | END IF |
---|
| 49 | |
---|
| 50 | END SUBROUTINE init_grid_param |
---|
[906] | 51 | |
---|
| 52 | SUBROUTINE select_compute_hex |
---|
[1034] | 53 | USE compute_diagnostics_mod |
---|
| 54 | USE compute_rhodz_mod |
---|
| 55 | USE compute_pression_mod |
---|
| 56 | USE compute_temperature_mod |
---|
[1052] | 57 | USE compute_vorticity_mod |
---|
| 58 | USE compute_divergence_mod |
---|
[1034] | 59 | USE vertical_interp_mod |
---|
| 60 | |
---|
| 61 | USE compute_caldyn_mod |
---|
| 62 | USE compute_pvort_only_mod |
---|
| 63 | USE compute_theta_mod |
---|
| 64 | USE compute_geopot_mod |
---|
| 65 | USE compute_caldyn_fast_mod |
---|
| 66 | USE compute_caldyn_slow_hydro_mod |
---|
| 67 | USE compute_caldyn_coriolis_mod |
---|
[1051] | 68 | compute_rhodz => compute_rhodz_hex |
---|
| 69 | compute_pression => compute_pression_hex |
---|
[913] | 70 | compute_pression_mid => compute_pression_mid_hex |
---|
[1051] | 71 | compute_temperature => compute_temperature_hex |
---|
[1052] | 72 | compute_vorticity => compute_vorticity_hex |
---|
| 73 | compute_divergence => compute_divergence_hex |
---|
[955] | 74 | compute_hydrostatic_pressure => compute_hydrostatic_pressure_hex |
---|
[958] | 75 | compute_vertical_interp => compute_vertical_interp_hex |
---|
[1051] | 76 | compute_pvort_only => compute_pvort_only_hex |
---|
| 77 | compute_theta => compute_theta_hex |
---|
| 78 | compute_geopot => compute_geopot_hex |
---|
| 79 | compute_caldyn_fast => compute_caldyn_fast_hex |
---|
[935] | 80 | compute_caldyn_slow_hydro => compute_caldyn_slow_hydro_hex |
---|
[1051] | 81 | compute_caldyn_coriolis => compute_caldyn_coriolis_hex |
---|
[906] | 82 | END SUBROUTINE select_compute_hex |
---|
| 83 | |
---|
| 84 | SUBROUTINE select_compute_unst |
---|
[1034] | 85 | USE compute_diagnostics_mod |
---|
| 86 | USE compute_rhodz_mod |
---|
| 87 | USE compute_pression_mod |
---|
| 88 | USE compute_temperature_mod |
---|
[1052] | 89 | USE compute_vorticity_mod |
---|
| 90 | USE compute_divergence_mod |
---|
[1034] | 91 | USE vertical_interp_mod |
---|
| 92 | |
---|
| 93 | USE compute_caldyn_mod |
---|
| 94 | USE compute_pvort_only_mod |
---|
| 95 | USE compute_theta_mod |
---|
| 96 | USE compute_geopot_mod |
---|
| 97 | USE compute_caldyn_fast_mod |
---|
| 98 | USE compute_caldyn_slow_hydro_mod |
---|
| 99 | USE compute_caldyn_coriolis_mod |
---|
[1051] | 100 | compute_rhodz => compute_rhodz_unst |
---|
| 101 | compute_pression => compute_pression_unst |
---|
[913] | 102 | compute_pression_mid => compute_pression_mid_unst |
---|
[1051] | 103 | compute_temperature => compute_temperature_unst |
---|
[1052] | 104 | compute_vorticity => compute_vorticity_unst |
---|
| 105 | compute_divergence => compute_divergence_unst |
---|
[955] | 106 | compute_hydrostatic_pressure => compute_hydrostatic_pressure_unst |
---|
[958] | 107 | compute_vertical_interp => compute_vertical_interp_unst |
---|
[1051] | 108 | compute_pvort_only => compute_pvort_only_unst |
---|
| 109 | compute_theta => compute_theta_unst |
---|
| 110 | compute_geopot => compute_geopot_unst |
---|
| 111 | compute_caldyn_fast => compute_caldyn_fast_unst |
---|
| 112 | compute_caldyn_slow_hydro => compute_caldyn_slow_hydro_unst |
---|
| 113 | compute_caldyn_coriolis => compute_caldyn_coriolis_unst |
---|
[906] | 114 | END SUBROUTINE select_compute_unst |
---|
[1051] | 115 | |
---|
| 116 | |
---|
[830] | 117 | END MODULE init_grid_param_mod |
---|