C $Header: /u/gcmpack/MITgcm/pkg/gchem/gchem_init_fixed.F,v 1.12 2016/05/23 13:09:31 jmc Exp $ C $Name: $ #include "GCHEM_OPTIONS.h" C !INTERFACE: ========================================================== SUBROUTINE GCHEM_INIT_FIXED(myThid ) C !DESCRIPTION: C calls subroutines that initialized fixed variables for any tracer C experiment C !USES: =============================================================== IMPLICIT NONE #include "SIZE.h" #include "EEPARAMS.h" #include "PARAMS.h" #include "GCHEM.h" C !INPUT PARAMETERS: =================================================== C myThid :: thread number INTEGER myThid INTEGER diagNum INTEGER diagMate CHARACTER*8 diagName CHARACTER*16 diagCode CHARACTER*16 diagUnits CHARACTER*(80) diagTitle CEOP #ifdef ALLOW_GCHEM C !LOCAL VARIABLES: C jmc: simpler to put MASTER thread directive within individual S/R : C that leave the choice, for each S/R, to do either single (master) C thread tasks or Multi-threaded tasks. c _BEGIN_MASTER( myThid ) ccccccccccccccccccccccccccc c initialize parameters c ccccccccccccccccccccccccccc #ifdef ALLOW_CFC IF ( useCFC ) THEN print*,'QQ start cfc params' CALL CFC_PARAM( myThid ) print*,'QQ read cfc atmos data' CALL CFC_ATMOS( myThid ) ENDIF #endif /* ALLOW_CFC */ #ifdef ALLOW_DIC IF ( useDIC ) THEN print*,'QQ load dic parameters, initial fixed' CALL DIC_INIT_FIXED( myThid ) ENDIF #endif /* ALLOW_DIC */ #ifdef ALLOW_BLING IF ( useBLING ) THEN CALL BLING_INIT_FIXED( myThid ) ENDIF #endif /* ALLOW_BLING */ c _END_MASTER( myThid ) #ifdef ALLOW_DARWIN IF ( useDARWIN ) THEN CALL DARWIN_INIT_FIXED(myThid) ENDIF #endif #ifdef ALLOW_DIAGNOSTICS C Define diagnostics Names : IF ( useDiagnostics ) THEN CALL GCHEM_DIAGNOSTICS_INIT( myThid ) C *** Edited by Taylor Shropshire *** diagName = 'par_3Dfield ' diagTitle = 'Photosynthetically Active Radiation' diagUnits = 'W/m2' diagCode = 'SMR MR ' CALL DIAGNOSTICS_ADDTOLIST( diagNum, I diagName, diagCode, diagUnits, diagTitle, 0, myThid ) diagName = 'tmp_3Dfield ' diagTitle = 'Water Temperature' diagUnits = 'Degrees Celsius ' diagCode = 'SMR MR ' CALL DIAGNOSTICS_ADDTOLIST( diagNum, I diagName, diagCode, diagUnits, diagTitle, 0, myThid ) diagName = 'chl_3Dfield ' diagTitle = 'Chlorophyll-a Concentration' diagUnits = 'mg Chl-a/m3 ' diagCode = 'SMR MR ' CALL DIAGNOSTICS_ADDTOLIST( diagNum, I diagName, diagCode, diagUnits, diagTitle, 0, myThid ) diagName = 'sp_bio_2Dfield ' diagTitle = 'Small Phyto. Biomass (integrated over mld)' diagUnits = 'mmol N/m2' diagCode = 'SM M1 ' CALL DIAGNOSTICS_ADDTOLIST( diagNum, I diagName, diagCode, diagUnits, diagTitle, 0, myThid ) diagName = 'lp_bio_2Dfield ' diagTitle = 'Large Phyto. Biomass (integrated over mld)' diagUnits = 'mmol N/m2' diagCode = 'SM M1 ' CALL DIAGNOSTICS_ADDTOLIST( diagNum, I diagName, diagCode, diagUnits, diagTitle, 0, myThid ) diagName = 'sz_bio_2Dfield ' diagTitle = 'Small Zoo. Biomass (integrated over mld)' diagUnits = 'mmol N/m2' diagCode = 'SM M1 ' CALL DIAGNOSTICS_ADDTOLIST( diagNum, I diagName, diagCode, diagUnits, diagTitle, 0, myThid ) diagName = 'lz_bio_2Dfield ' diagTitle = 'Large Zoo. Biomass (integrated over mld)' diagUnits = 'mmol N/m2' diagCode = 'SM M1 ' CALL DIAGNOSTICS_ADDTOLIST( diagNum, I diagName, diagCode, diagUnits, diagTitle, 0, myThid ) diagName = 'pz_bio_2Dfield ' diagTitle = 'Predatory Zoo. Biomass (integrated over mld)' diagUnits = 'mmol N/m2' diagCode = 'SM M1 ' CALL DIAGNOSTICS_ADDTOLIST( diagNum, I diagName, diagCode, diagUnits, diagTitle, 0, myThid ) diagName = 'sp_npp_2Dfield ' diagTitle = 'Small Phytoplankton NPP (integrated over mld)' diagUnits = 'mmol N / m2 d' diagCode = 'SM M1 ' CALL DIAGNOSTICS_ADDTOLIST( diagNum, I diagName, diagCode, diagUnits, diagTitle, 0, myThid ) diagName = 'lp_npp_2Dfield ' diagTitle = 'Large Phytoplankton NPP (integrated over mld)' diagUnits = 'mmol N / m2 d' diagCode = 'SM M1 ' CALL DIAGNOSTICS_ADDTOLIST( diagNum, I diagName, diagCode, diagUnits, diagTitle, 0, myThid ) diagName = 'chl_2Dfield ' diagTitle = 'Chlorophyll-a Concentration (integrated over mld)' diagUnits = 'mg Chl-a/m2' diagCode = 'SM M1 ' CALL DIAGNOSTICS_ADDTOLIST( diagNum, I diagName, diagCode, diagUnits, diagTitle, 0, myThid ) diagName = 'surf_chl ' diagTitle = 'Chlorophyll-a Concentration (surface)' diagUnits = 'mg Chl-a/m3' diagCode = 'SM M1 ' CALL DIAGNOSTICS_ADDTOLIST( diagNum, I diagName, diagCode, diagUnits, diagTitle, 0, myThid ) diagName = 'par_2Dfield ' diagTitle = 'Photosyn. Active Rad. (integrated over mld)' diagUnits = 'W/m' diagCode = 'SM M1 ' CALL DIAGNOSTICS_ADDTOLIST( diagNum, I diagName, diagCode, diagUnits, diagTitle, 0, myThid ) diagName = 'tmp_2Dfield ' diagTitle = 'Water Temperature (integrated over mld)' diagUnits = 'Deg C' diagCode = 'SM M1 ' CALL DIAGNOSTICS_ADDTOLIST( diagNum, I diagName, diagCode, diagUnits, diagTitle, 0, myThid ) diagName = 'mld_2Dfield ' diagTitle = 'Mixed Layer Depth' diagUnits = 'm' diagCode = 'SM M1 ' CALL DIAGNOSTICS_ADDTOLIST( diagNum, I diagName, diagCode, diagUnits, diagTitle, 0, myThid ) C End New Diagnostics C ****************************** ENDIF #endif /* ALLOW_DIAGNOSTICS */ #endif /* ALLOW_GCHEM */ RETURN END