- Timestamp:
- 2016-08-01T15:37:15+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2016/dev_r6409_SIMPLIF_2_usrdef_tools/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90
r6519 r6827 20 20 !!-------------------------------------------------------------------- 21 21 USE dom_oce ! ocean space and time domain 22 USE c1d ! 1D vertical configuration23 USE flo_oce ! floats module declarations24 22 USE lbclnk ! lateal boundary condition / mpp exchanges 25 23 USE iom_def ! iom variables definitions 26 24 USE iom_nf90 ! NetCDF format with native NetCDF library 27 25 USE in_out_manager ! I/O manager 28 USE lib_mpp ! MPP library 29 #if defined key_iomput 30 USE sbc_oce, ONLY : nn_fsbc ! ocean space and time domain 31 USE trc_oce, ONLY : nn_dttrc ! !: frequency of step on passive tracers 32 USE icb_oce, ONLY : nclasses, class_num ! !: iceberg classes 33 #if defined key_lim3 34 USE ice , ONLY : jpl 35 #elif defined key_lim2 36 USE par_ice_2 37 #endif 26 USE lib_mpp ! MPP library 38 27 USE domngb ! ocean space and time domain 39 28 USE phycst ! physical constants 40 USE dianam ! build name of file29 !SF USE dianam ! build name of file 41 30 USE xios 42 # endif43 31 USE ioipsl, ONLY : ju2ymds ! for calendar 44 USE crs ! Grid coarsening45 32 46 33 IMPLICIT NONE … … 139 126 ENDIF 140 127 141 IF( TRIM(cdname) == TRIM(cxios_context)//"_crs" ) THEN142 CALL dom_grid_crs ! Save the parent grid information & Switch to coarse grid domain143 !144 CALL set_grid( "T", glamt_crs, gphit_crs )145 CALL set_grid( "U", glamu_crs, gphiu_crs )146 CALL set_grid( "V", glamv_crs, gphiv_crs )147 CALL set_grid( "W", glamt_crs, gphit_crs )148 CALL set_grid_znl( gphit_crs )149 !150 CALL dom_grid_glo ! Return to parent grid domain151 !152 IF( ln_cfmeta ) THEN ! Add additional grid metadata153 CALL iom_set_domain_attr("grid_T", area = e1e2t_crs(nldi:nlei, nldj:nlej))154 CALL iom_set_domain_attr("grid_U", area = e1u_crs(nldi:nlei, nldj:nlej) * e2u_crs(nldi:nlei, nldj:nlej))155 CALL iom_set_domain_attr("grid_V", area = e1v_crs(nldi:nlei, nldj:nlej) * e2v_crs(nldi:nlei, nldj:nlej))156 CALL iom_set_domain_attr("grid_W", area = e1e2t_crs(nldi:nlei, nldj:nlej))157 CALL set_grid_bounds( "T", glamf_crs, gphif_crs, glamt_crs, gphit_crs )158 CALL set_grid_bounds( "U", glamv_crs, gphiv_crs, glamu_crs, gphiu_crs )159 CALL set_grid_bounds( "V", glamu_crs, gphiu_crs, glamv_crs, gphiv_crs )160 CALL set_grid_bounds( "W", glamf_crs, gphif_crs, glamt_crs, gphit_crs )161 ENDIF162 ENDIF163 164 128 ! vertical grid definition 165 129 CALL iom_set_axis_attr( "deptht", gdept_1d ) … … 180 144 CALL iom_set_axis_attr( "depthw", bounds=z_bnds ) 181 145 182 # if defined key_floats183 CALL iom_set_axis_attr( "nfloat", (/ (REAL(ji,wp), ji=1,nfloat) /) )184 # endif185 #if defined key_lim3 || defined key_lim2186 CALL iom_set_axis_attr( "ncatice", (/ (REAL(ji,wp), ji=1,jpl) /) )187 #endif188 CALL iom_set_axis_attr( "icbcla", class_num )189 146 CALL iom_set_axis_attr( "iax_20C", (/ REAL(20,wp) /) ) 190 147 CALL iom_set_axis_attr( "iax_28C", (/ REAL(28,wp) /) ) … … 882 839 ENDIF 883 840 884 ! C1D case : always call lbc_lnk to replicate the central value over the whole 3X3 domain885 IF( lk_c1d .AND. PRESENT(pv_r2d) ) CALL lbc_lnk( pv_r2d,'Z',1. )886 IF( lk_c1d .AND. PRESENT(pv_r3d) ) CALL lbc_lnk( pv_r3d,'Z',1. )887 888 841 !--- Apply scale_factor and offset 889 842 zscf = iom_file(kiomid)%scf(idvar) ! scale factor … … 1459 1412 ! frequency of the call of iom_put (attribut: freq_op) 1460 1413 WRITE(cl1,'(i1)') 1 ; CALL iom_set_field_attr('field_definition', freq_op = cl1//'ts', freq_offset='0ts') 1461 WRITE(cl1,'(i1)') nn_fsbc ; CALL iom_set_field_attr('SBC' , freq_op = cl1//'ts', freq_offset='0ts')1462 WRITE(cl1,'(i1)') nn_fsbc ; CALL iom_set_field_attr('SBC_scalar' , freq_op = cl1//'ts', freq_offset='0ts')1463 WRITE(cl1,'(i1)') nn_dttrc ; CALL iom_set_field_attr('ptrc_T' , freq_op = cl1//'ts', freq_offset='0ts')1464 WRITE(cl1,'(i1)') nn_dttrc ; CALL iom_set_field_attr('diad_T' , freq_op = cl1//'ts', freq_offset='0ts')1465 1414 1466 1415 ! output file names (attribut: name)
Note: See TracChangeset
for help on using the changeset viewer.