Changeset 1051


Ignore:
Timestamp:
09/17/20 14:53:53 (4 years ago)
Author:
dubos
Message:

devel : generate repetitive code with jinja2 macros

Location:
codes/icosagcm/devel
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/src/base/init_grid_param.f90

    r1034 r1051  
    5050  END SUBROUTINE  init_grid_param 
    5151 
    52  
    5352  SUBROUTINE select_compute_hex 
    5453    USE compute_diagnostics_mod 
     
    6564    USE compute_caldyn_slow_hydro_mod 
    6665    USE compute_caldyn_coriolis_mod 
    67  
    68     ! diagnostics 
    69     compute_rhodz        => compute_rhodz_hex 
    70     compute_pression     => compute_pression_hex 
     66    compute_rhodz => compute_rhodz_hex 
     67    compute_pression => compute_pression_hex 
    7168    compute_pression_mid => compute_pression_mid_hex 
    72     compute_temperature  => compute_temperature_hex 
     69    compute_temperature => compute_temperature_hex 
    7370    compute_hydrostatic_pressure => compute_hydrostatic_pressure_hex 
    7471    compute_vertical_interp => compute_vertical_interp_hex 
    75     ! dynamics 
    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 
     72    compute_pvort_only => compute_pvort_only_hex 
     73    compute_theta => compute_theta_hex 
     74    compute_geopot => compute_geopot_hex 
     75    compute_caldyn_fast => compute_caldyn_fast_hex 
    8076    compute_caldyn_slow_hydro => compute_caldyn_slow_hydro_hex 
    81     compute_caldyn_coriolis   => compute_caldyn_coriolis_hex 
     77    compute_caldyn_coriolis => compute_caldyn_coriolis_hex 
    8278  END SUBROUTINE select_compute_hex 
    8379 
     
    9692    USE compute_caldyn_slow_hydro_mod 
    9793    USE compute_caldyn_coriolis_mod 
    98      
    99     ! diagnostics 
    100     compute_rhodz        => compute_rhodz_unst 
    101     compute_pression     => compute_pression_unst 
     94    compute_rhodz => compute_rhodz_unst 
     95    compute_pression => compute_pression_unst 
    10296    compute_pression_mid => compute_pression_mid_unst 
    103     compute_temperature  => compute_temperature_unst 
     97    compute_temperature => compute_temperature_unst 
    10498    compute_hydrostatic_pressure => compute_hydrostatic_pressure_unst 
    10599    compute_vertical_interp => compute_vertical_interp_unst 
    106     ! dynamics 
    107     compute_pvort_only         => compute_pvort_only_unst 
    108     compute_theta              => compute_theta_unst 
    109     compute_geopot             => compute_geopot_unst 
    110     compute_caldyn_fast        => compute_caldyn_fast_unst 
    111     compute_caldyn_slow_hydro  => compute_caldyn_slow_hydro_unst 
    112     compute_caldyn_coriolis    => compute_caldyn_coriolis_unst 
     100    compute_pvort_only => compute_pvort_only_unst 
     101    compute_theta => compute_theta_unst 
     102    compute_geopot => compute_geopot_unst 
     103    compute_caldyn_fast => compute_caldyn_fast_unst 
     104    compute_caldyn_slow_hydro => compute_caldyn_slow_hydro_unst 
     105    compute_caldyn_coriolis => compute_caldyn_coriolis_unst 
    113106  END SUBROUTINE select_compute_unst 
    114    
     107 
     108 
    115109END MODULE init_grid_param_mod 
Note: See TracChangeset for help on using the changeset viewer.