Changeset 2631 for branches/dev_r2586_dynamic_mem
- Timestamp:
- 2011-02-28T12:19:28+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/SBC/geo2ocean.F90
r2624 r2631 36 36 gsinf, gcosf ! cos/sin between model grid lines and NP direction at F point 37 37 38 LOGICAL , SAVE, DIMENSION(4) :: linit = .FALSE.39 REAL(wp), SAVE, DIMENSION(:,:,:) :: gsinlon, gcoslon, gsinlat, gcoslat38 LOGICAL , SAVE, DIMENSION(4) :: linit = .FALSE. 39 REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: gsinlon, gcoslon, gsinlat, gcoslat 40 40 41 41 LOGICAL :: lmust_init = .TRUE. !: used to initialize the cos/sin variables (se above) … … 355 355 REAL(wp), PARAMETER :: rad = rpi / 180.e0 356 356 INTEGER :: ig ! 357 !!---------------------------------------------------------------------- 358 359 IF( ALLOCATED( gsinlon ) ) THEN 357 INTEGER :: ierr ! local integer 358 !!---------------------------------------------------------------------- 359 360 IF( .NOT. ALLOCATED( gsinlon ) ) THEN 360 361 ALLOCATE( gsinlon(jpi,jpj,4) , gcoslon(jpi,jpj,4) , & 361 362 & gsinlat(jpi,jpj,4) , gcoslat(jpi,jpj,4) , STAT=ierr ) … … 435 436 REAL(wp), PARAMETER :: rad = rpi / 180.e0 436 437 INTEGER :: ig ! 438 INTEGER :: ierr ! local integer 437 439 !!---------------------------------------------------------------------- 438 440
Note: See TracChangeset
for help on using the changeset viewer.