cpl7/ccsm4 (j.jakacki/g.jost)
DESCRIPTION
CPL7/CCSM4 (J.Jakacki/G.Jost). Coupler and components (cpl5 and cpl7). ACTIVE DATA DEAD STUB (only cpl7). Main routine of the cpl5. Initialization of the all components (include MPI initialization) DO MAIN LOOP (until receiving stop signal) run n-steps of the k-model - PowerPoint PPT PresentationTRANSCRIPT
CPL7/CCSM4
(J.Jakacki/G.Jost)
Coupler and components (cpl5 and cpl7)
1) ACTIVE
2) DATA
3) DEAD
4) STUB (only cpl7)
Main routine of the cpl5
• Initialization of the all components (include MPI initialization)DO MAIN LOOP (until receiving stop signal)
run n-steps of the k-modelsend data to the couplerwait for receiving new datawrite output data
ENDDO• Saving restart data and finalize all the components
Features:
• Each model saves (history, restart, diagnostics and so on) and reads own data except provided by the coupler (i.e. surface heat fluxes, momentum fluxes)
• Time synchronisation is done by different time steps of the each model, for example time steps: 3600/1200/400 (atm/ice/ocn) and by different number of processors
• Cpl5 has one executable file (cpl7 has 5)
Cpl directory structure
Changes required to add component model to cpl5
• Change main program to routine (i.e. to atm_run, ocn_run, ice_run, lnd_run)
• Change MPI initialization (main initialization is done in the driver), you must create own communicator for the specific model
• Select variables for exchanging information with coupler• Add shared variables to the model• Add shared routines to the model (for example
ice_to_coupler)Note: this process assumes the coupler can handle spatial
resolution of new model component, if not coupler should be modified.
Changes required in cpl7
Couple of days we worked with it so far is not enough to write something about it.
Plan for our next steps:
• Compile and test on Iceberg and Midnight cpl7 with dead models (suggested as a first step)
• Run the cpl7 with true grids (e.g. 50 km and 9 km) and data components
• Try to connect active model components
Current status of cpl7
Machine: Iceberg (ARSC) IBM Power 4 (bluice)
In root directory, create the files below. I copied the th e"blueice" files.
./scripts/ccsm_utils/Machines/Macros.AIX.iceberg
./scripts/ccsm_utils/Machines/env.ibm.iceberg
./scripts/ccsm_utils/Machines/pes_setup.iceberg
./scripts/ccsm_utils/Machines/l_archive.ibm.iceberg
./scripts/ccsm_utils/Machines/batch.ibm.iceberg
./scripts/ccsm_utils/Machines/run.ibm.iceberg
Create a test case by:./create_newcase -case $WRK/test -mach iceberg
-compset X -res T42_gx1v3 -skip_rundb TRUE
Note: skip_rundb TRUE disables svn checkout
This creates directory test1
Then run ./configure –mach iceberg in the new case directory (test1)
3.2. :LDFLAGS += -bdatapsize:64K -bstackpsize:64K -btextpsize:64K no recognized by ld. Fix: eliminate this line
3.3. Input data files not found: Fix: Touch input data files to complite build process:
iceberg1 14% ls -ltr ../inputdata/cpl/cpl6/*-rw------- 1 jost arctico 0 May 14 17:16
../inputdata/cpl/cpl6/map_T42_to_gx1v3_aave_da_010709.nc-rw------- 1 jost arctico 0 May 14 17:16
../inputdata/cpl/cpl6/map_T42_to_gx1v3_bilin_da_010710.nc-rw------- 1 jost arctico 0 May 14 17:17
../inputdata/cpl/cpl6/map_gx1v3_to_T42_aave_da_010709.nc-rw------- 1 jost arctico 0 May 14 17:18
../inputdata/cpl/cpl6/map_r05_to_gx1v3_roff_smooth_010718.nc
./test1.iceberg.build------------------------------------------------------------------------- Preparing T42_gx1v3 component models for execution ------------------------------------------------------------------------- - Create execution directories for atm,cpl,lnd,ice,ocn - Check validity of variables - Build flag (BLDTYPE) is TRUE - Check validity of configuration - Build Libraries: mct csm_share Wed May 14 17:33:23 ADT 2008
/gpfsa/wrkdir/jost/test1/mct/mct.buildlib.080514-173323Wed May 14 17:33:28 ADT 2008
/gpfsa/wrkdir/jost/test1/csm_share/csm_share.buildlib.080514-173323
- Determine if models must be rebuilt - Create model directories, build model executables, create namelist files, prestage input data
Wed May 14 17:33:31 ADT 2008 /gpfsa/wrkdir/jost/test1/ccsm_se/cpl.build.080514-173323
Wed May 14 17:33:32 ADT 2008 /gpfsa/wrkdir/jost/test1/ccsm_se/atm.build.080514-173323
Wed May 14 17:33:32 ADT 2008 /gpfsa/wrkdir/jost/test1/ccsm_se/lnd.build.080514-173323
Wed May 14 17:33:33 ADT 2008 /gpfsa/wrkdir/jost/test1/ccsm_se/ice.build.080514-173323
Wed May 14 17:33:34 ADT 2008 /gpfsa/wrkdir/jost/test1/ccsm_se/ocn.build.080514-173323
Wed May 14 17:33:35 ADT 2008 /gpfsa/wrkdir/jost/test1/ccsm_se/ccsm.build.080514-173323
------------------------------------------------------------------------- - CCSM BUILD HAS FINISHED SUCCESSFULLY
-------------------------------------------------------------------------
This builds an executable ccsm.exe