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 13451 for branches/UKMO/AMM15_v3_6_STABLE_package_collate_utils366_fabmv1/NEMOGCM/NEMO/TOP_SRC/FABM/trcsms_fabm.F90 – NEMO

Ignore:
Timestamp:
2020-09-07T18:50:53+02:00 (4 years ago)
Author:
dford
Message:

Modifications to accommodate interaction between NEMO-FABM coupler only saving diagnostics requested in iodef.xml, and the assimilation and 25h/tmb diagnostic code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/AMM15_v3_6_STABLE_package_collate_utils366_fabmv1/NEMOGCM/NEMO/TOP_SRC/FABM/trcsms_fabm.F90

    r13241 r13451  
    5252   PUBLIC   trc_sms_fabm_alloc      ! called by trcini_fabm.F90 module 
    5353   PUBLIC   trc_sms_fabm_check_mass ! called by trcwri_fabm.F90 
     54   PUBLIC   nemo_fabm_start 
    5455 
    5556   ! Work arrays 
     
    556557      fabm_st2Db = fabm_st2Dn 
    557558 
    558       ! Pointer to spectral heating term 
    559       swrad => model%get_data(model%get_interior_variable_id(standard_variables%net_rate_of_absorption_of_shortwave_energy_in_layer)) 
    560  
    561  
    562559   END FUNCTION trc_sms_fabm_alloc 
    563560 
     
    569566      DO jn=1,size(model%interior_diagnostic_variables) 
    570567         model%interior_diagnostic_variables(jn)%save = iom_use(model%interior_diagnostic_variables(jn)%name) & 
    571             .or. iom_use(TRIM(model%interior_diagnostic_variables(jn)%name)//'_VINT') 
    572       END DO 
     568            .or. iom_use(TRIM(model%interior_diagnostic_variables(jn)%name)//'_VINT') & 
     569            .or. iom_use(TRIM(model%interior_diagnostic_variables(jn)%name)//'25h') & 
     570            .or. iom_use('top_'//TRIM(model%interior_diagnostic_variables(jn)%name)) & 
     571            .or. iom_use('mid_'//TRIM(model%interior_diagnostic_variables(jn)%name)) & 
     572            .or. iom_use('bot_'//TRIM(model%interior_diagnostic_variables(jn)%name)) 
     573      END DO 
     574      model%interior_diagnostic_variables(jp_fabm_o3ta)%save = .TRUE. 
     575      model%interior_diagnostic_variables(jp_fabm_o3ph)%save = .TRUE. 
     576      model%interior_diagnostic_variables(jp_fabm_o3pc)%save = .TRUE. 
     577      model%interior_diagnostic_variables(jp_fabm_xeps)%save = .TRUE. 
     578      model%interior_diagnostic_variables(jp_fabm_pgrow)%save = .TRUE. 
     579      model%interior_diagnostic_variables(jp_fabm_ploss)%save = .TRUE. 
    573580      DO jn=1,size(model%horizontal_diagnostic_variables) 
    574          model%horizontal_diagnostic_variables(jn)%save = iom_use(model%horizontal_diagnostic_variables(jn)%name) 
     581         model%horizontal_diagnostic_variables(jn)%save = iom_use(model%horizontal_diagnostic_variables(jn)%name) & 
     582            .or. iom_use(TRIM(model%horizontal_diagnostic_variables(jn)%name)//'25h') 
    575583      END DO 
    576584 
     
    580588 
    581589      started = .TRUE. 
     590 
     591      IF( ln_qsr_spec ) THEN 
     592         ! Pointer to spectral heating term 
     593         swrad => model%get_data(model%get_interior_variable_id(standard_variables%net_rate_of_absorption_of_shortwave_energy_in_layer)) 
     594      ENDIF 
     595 
    582596   END SUBROUTINE 
    583597 
Note: See TracChangeset for help on using the changeset viewer.