New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 15695 – NEMO

Changeset 15695


Ignore:
Timestamp:
2022-02-04T17:43:35+01:00 (2 years ago)
Author:
davestorkey
Message:

Fix duplicate iom_put calls for rhop.

Location:
NEMO/branches/UKMO/NEMO_4.0.3_GO8_package
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0.3_GO8_package/cfgs/SHARED/field_def_nemo-oce.xml

    r14284 r15695  
    9999         <!-- Case EOS = TEOS-10 : output potential temperature --> 
    100100   <field id="toce_pot"     long_name="Sea Water Potential Temperature"              standard_name="sea_water_potential_temperature"   unit="degC"     grid_ref="grid_T_3D"/> 
    101         <field id="sst_pot"      long_name="potential sea surface temperature"             standard_name="sea_surface_temperature"             unit="degC"     /> 
     101        <field id="sst_pot"      long_name="potential sea surface temperature"            standard_name="sea_surface_temperature"             unit="degC"     /> 
    102102        <field id="tosmint_pot"  long_name="vertical integral of potential temperature times density"   standard_name="integral_wrt_depth_of_product_of_density_and_potential_temperature"  unit="(kg m2) degree_C" /> 
    103103 
     
    129129        <field id="beta"         long_name="haline contraction"                                                        unit="1e3"    grid_ref="grid_T_3D" /> 
    130130        <field id="rhop"         long_name="potential density (sigma0)"        standard_name="sea_water_sigma_theta"   unit="kg/m3"  grid_ref="grid_T_3D" /> 
     131        <field id="rhop_e3t"     long_name="potential density (sigma0) thickness weighted"        standard_name="sea_water_sigma_theta"   unit="kg/m3"  grid_ref="grid_T_3D"> rhop * e3t </field> 
    131132 
    132133        <!-- Energy - horizontal divergence --> 
  • NEMO/branches/UKMO/NEMO_4.0.3_GO8_package/src/OCE/DIA/diaprod.F90

    r13590 r15695  
    6565      ! 
    6666 
    67       IF( iom_use("urhop") .OR. iom_use("vrhop") .OR. iom_use("wrhop") & 
    68 #if ! defined key_diaar5 
    69      &  .OR. iom_use("rhop") & 
    70 #endif 
    71      & ) THEN 
     67      IF( iom_use("urhop") .OR. iom_use("vrhop") .OR. iom_use("wrhop") ) THEN 
    7268         CALL eos( tsn, z3d, zrhop )                 ! now in situ and potential density 
    7369         zrhop(:,:,:) = zrhop(:,:,:)-1000.e0         ! reference potential density to 1000 to avoid precision issues in rhop2 calculation 
    7470         zrhop(:,:,jpk) = 0._wp 
    75 #if ! defined key_diaar5 
    76          CALL iom_put( 'rhop', zrhop ) 
    77 #else 
    78          ! If key_diaar5 set then there is already an iom_put call to output rhop. 
    79          ! Really should be a standard diagnostics option? 
    80 #endif 
    8171      ENDIF 
    8272 
Note: See TracChangeset for help on using the changeset viewer.