Opened 6 months ago

Last modified 11 days ago

#1872 new Enhancement

NESTING TOOLS AGRIF read updated bathymetry for creating agrif restarts

Reported by: Jan Harlass Owned by: Jerome Chanut
Priority: minor Milestone:
Component: AGRIF Version: nemo_v3_6_STABLE
Keywords: AGRIF bathymetry nesting Cc:

Description

Context

Use bathy_updated from base model to correctly compute masks (partial steps) for nest restart creation.

Changes

agrif_create_restart.f90

--- Revision 7752
+++ Working Copy
@@ -113,6 +113,11 @@
   !       
   CALL set_child_name(parent_coordinate_file,Childcoordinates)   
   CALL set_child_name(parent_meshmask_file,Childbathy) 
   CALL set_child_name(parent_bathy_meter,Childbathymeter)   
+  ! use bathy_updated for base model ONLY, if bathy_update=true in namelist.input
+  IF (bathy_update) THEN
+    parent_bathy_meter=updated_parent_file
+  END IF
+
   ! create this file
   !
@@ -164,7 +170,15 @@
      !
   ENDIF
   !
+  WRITE(*,*) 'Reading Bathymetry: ',TRIM(parent_bathy_meter)
+  CALL Read_Ncdf_var('Bathymetry',parent_bathy_meter,G0%bathy_meter)
+  
+  WRITE(*,*) 'Reading mbathy    : ',TRIM(parent_meshmask_file)
   CALL Init_mask(parent_meshmask_file,G0,x,y)
+  WRITE(*,*)
+  WRITE(*,*) 'Reading Bathymetry: ',TRIM(Childbathymeter)
+  CALL Read_Ncdf_var('Bathymetry',Childbathymeter,G1%bathy_meter)
+  WRITE(*,*) 'Reading mbathy    : ',TRIM(childbathy)
   CALL Init_mask(childbathy,G1,1,1)
 
   G0%tmask = 1.   

Commit History (0)

(No commits)

Change History (3)

comment:1 Changed 6 months ago by nemo

  • Keywords nesting added; NESTING removed

comment:2 Changed 5 months ago by Jerome Chanut

  • Component changed from OPA to AGRIF

comment:3 Changed 11 days ago by Claire Levy

  • Owner changed from nemo to jchanut
Note: See TracTickets for help on using tickets.