New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
2_quickstart.md in trunk/NEMOGCM/TOOLS/SIREN/src/docsrc – NEMO

source: trunk/NEMOGCM/TOOLS/SIREN/src/docsrc/2_quickstart.md @ 7646

Last change on this file since 7646 was 7646, checked in by timgraham, 7 years ago

Merge of dev_merge_2016 into trunk. UPDATE TO ARCHFILES NEEDED for XIOS2.
LIM_SRC_s/limrhg.F90 to follow in next commit due to change of kind (I'm unable to do it in this commit).
Merged using the following steps:

1) svn merge --reintegrate svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/trunk .
2) Resolve minor conflicts in sette.sh and namelist_cfg for ORCA2LIM3 (due to a change in trunk after branch was created)
3) svn commit
4) svn switch svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/trunk
5) svn merge svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/branches/2016/dev_merge_2016 .
6) At this stage I checked out a clean copy of the branch to compare against what is about to be committed to the trunk.
6) svn commit #Commit code to the trunk

In this commit I have also reverted a change to Fcheck_archfile.sh which was causing problems on the Paris machine.

File size: 24.3 KB
Line 
1# How To Use (Quick Start)
2
3@tableofcontents
4
5SIREN is a software to set up regional configuration with
6 [NEMO](http://www.nemo-ocean.eu).<br/>
7Actually SIREN creates all the input files you need to run a NEMO regional configuration.<br/>
8 
9SIREN is composed of a set of 6 Fortran programs :
10<ul>
11 <li>create_coord.f90 to create regional grid coordinates.</li>
12 <li>create_bathy.f90 to create regional grid bathymetry.</li>
13 <li>merge_bathy.f90 to merge regional grid bathymetry with wider grid bathymetry
14 at boundaries.
15 @note the goal of this step is to avoid break in Bathymetry.
16 This break may cause inconsistency between forcing fields  at boundary and regional fields.
17 </li>
18 <li>create_meshmask.f90 to create meshmask or domain_cfg file(s) which contain(s) all the ocean domain informations.</li>
19 <li>create_restart.f90 to create initial state file from coarse grid restart
20 or standard outputs.
21 @note this program could also be used to refined other input fields from a wider
22 configuations (as runoff, chlorophyll etc...)
23 </li>
24 <li>create_boundary.F90 to create boundaries conditions from wider configurations
25 output fields.
26 </li>
27</ul>
28
29@warning SIREN can not:
30<ul>
31<li>create global configuration.</li>
32<li>create configuarion around or close to North pole.</li>
33<li>change number of vertical level.</li>
34</ul>
35
36Here after we briefly describe how to use each programs,
37and so how to create your own regional configuration.
38@note As demonstrator for a first start a set of GLORYS files (global reanalysis on *ORCA025* grid), as well as examples of namelists are available [here](https://cloud.mercator-ocean.fr/public.php?service=files&t=acf44730538cdda0da548ffc5f99fb55).
39
40<!-- ######################################################################  -->
41# Create coordinates file # {#coord}
42
43To create your own configuration, you first have to create a coordinates file on your domain of study.<br/>
44SIREN allows you to create this coordinates file from a wider coordinates file.<br/>
45The coordinates file created could simply be an extraction, or a refinment of
46the wide grid.<br/>
47
48To create this new cooridnates file, you have to run :
49~~~~~~~~~~~~~~~~~~
50./SIREN/create_coord.exe create_coord.nam
51~~~~~~~~~~~~~~~~~~
52
53Here after is an example of namelist for *create_coord.exe*.<br/>
54In this example, you create a coordinates file named *coord_fine.nc*.<br/>
55This new coordinates file is refined from an extraction of *coordinates_ORCA025.nc*.
56~~~~~~~~~~~
57&namlog
58/
59
60&namcfg
61   cn_varcfg = "PATH/NEMOGCM/TOOLS/SIREN/cfg/variable.cfg"
62   cn_dimcfg = "PATH/NEMOGCM/TOOLS/SIREN/cfg/dimension.cfg"
63/
64
65&namcrs
66   cn_coord0 = "PATH/coordinates_ORCA025.nc"
67   in_perio0 = 4
68/
69
70&namvar
71/
72
73&namnst
74   in_imin0 = 1070
75   in_imax0 = 1072
76   in_jmin0 = 607
77   in_jmax0 = 609
78
79   in_rhoi = 2
80   in_rhoj = 3
81/
82
83&namout
84   cn_fileout = "PATH/coord_fine.nc"
85/
86~~~~~~~~~~~
87
88Let's get describe this namelist.<br/>
89First we have the **namlog** sub-namelist. This sub-namelist set parameters of the log
90file.<br/>
91All the parameters of this sub-namelist have default value, so you could let it
92empty, as done here.<br/> This will create a log file named *create_coord.log*
93
94The **namcfg** sub-namelist defines where found SIREN configuration files.<br/>
95- The variable configuration file defines standard name, default interpolation method,
96axis,... to be used for some known variables.<br/>
97Obviously, you could add other variables to those already list, in this file.
98- The dimension configuration file defines dimensions allowed.
99
100@note You could find the generic version of those configuration files in the directory *NEMOGCM/TOOLS/SIREN/cfg*.
101
102The **namcrs** sub-namelist set parameters of the wide
103coordinates file, as path to find it, and NEMO periodicity of the wide grid.<br/>
104
105@note the NEMO periodicity could be choose between 0 to 6:
106<dl>
107<dt>in_perio=0</dt>
108<dd>standard regional model</dd>
109<dt>in_perio=1</dt>
110<dd>east-west cyclic model</dd>
111<dt>in_perio=2</dt>
112<dd>model with symmetric boundary condition across the equator</dd>
113<dt>in_perio=3</dt>
114<dd>regional model with North fold boundary and T-point pivot</dd>
115<dt>in_perio=4</dt>
116<dd>global model with a T-point pivot.<br/>
117example: ORCA2, ORCA025, ORCA12</dd>
118<dt>in_perio=5</dt>
119<dd>regional model with North fold boundary and F-point pivot</dd>
120<dt>in_perio=6</dt>
121<dd>global model with a F-point pivot<br/>
122example: ORCA05</dd>
123</dl>
124@sa For more information see @ref md_src_docsrc_6_perio
125</dd>
126</dl>
127
128The **namvar** sub-namelist lists variables to be used.<br/>
129By default all the variables of the wider coordinates file are used to create
130the new coordinates file.<br/>
131The interpolation methods to be used are defined in the configuration variables file (see
132below). So you do not need to fill this sub-namelist too.
133
134The **namnst** sub-namelist defines the subdomain to be used as well as refinment factor.<br/>
135@note Subdomain is defined by indices of the coarse/wide grid.<br/>
136
137<ul>
138<li>you can select area quite every where (excepted too close from the North
139pole), and use the refinment factor you want.</li>
140
141~~~~~~~~~~~
142&namvar
143   in_imin0 = 1070
144   in_imax0 = 1072
145   in_jmin0 = 607
146   in_jmax0 = 609
147
148   in_rhoi = 2
149   in_rhoj = 3
150/
151~~~~~~~~~~~
152@image html grid_zoom_60.png
153<center>@image latex grid_zoom_40.png
154</center>
155<!-- @note ghost cells all around the grid are not shown here. -->
156
157<li>you can select area crossing the east-west overlap of the global ORCA grid.</li>
158
159~~~~~~~~~~~
160&namvar         
161   in_imin0 = 1402
162   in_imax0 = 62
163   in_jmin0 = 490
164   in_jmax0 = 570
165
166   in_rhoi = 5
167   in_rhoj = 5
168/               
169~~~~~~~~~~~
170@image html grid_glob_over_30.png
171<center>@image latex grid_glob_over_20.png
172</center>
173<!-- @note in blue, the east-west overlap band of ORCA grid. -->
174
175<li>you can select east-west cyclic area.</li>
176
177~~~~~~~~~~~
178&namvar
179   in_imin0 = 0
180   in_imax0 = 0
181   in_jmin0 = 390
182   in_jmax0 = 450
183
184   in_rhoi = 1
185   in_rhoj = 1
186/
187~~~~~~~~~~~
188@image html grid_glob_band_30.png
189<center>@image latex grid_glob_band_20.png
190</center>
191
192</ul>
193
194Finally the **namout** sub-namelist defines the output file.<br/>
195
196@note All the output files created by SIREN include information about NEMO
197periodicity, as well as source file, indices and refinment used.
198
199@sa For more information about how to create coordinates, see create_coord.f90
200
201<!-- ######################################################################  -->
202# Create bathymetry file # {#bathy}
203
204Then you need a Bathymetry file.<br/>
205SIREN allows you to create a Bathymetry extracted or refined from a wider
206Bathymetry grid.<br/>
207
208To create this new bathymetry, you have to run :
209~~~~~~~~~~~~~~~~~~
210./SIREN/create_bathy.exe create_bathy.nam
211~~~~~~~~~~~~~~~~~~
212
213Here after is an example of namelist for *create_bathy.exe*.<br/>
214In this example, you create a bathymetry file named *bathy_fine.nc*.<br/>
215This new bathymetry file is refined from an extraction of *bathy_meter_ORCA025.nc*.<br/>
216Moreover a minimum value of 5m is imposed to the output Bathymetry.
217~~~~~~~~~~~~~~~~~~
218&namlog
219/
220
221&namcfg
222   cn_varcfg = "PATH/NEMOGCM/TOOLS/SIREN/cfg/variable.cfg"
223   cn_dimcfg = "PATH/NEMOGCM/TOOLS/SIREN/cfg/dimension.cfg"
224/
225
226&namcrs
227   cn_coord0 = "PATH/coordinates_ORCA025.nc"
228   in_perio0 = 4
229/
230
231&namfin
232   cn_coord1 = "PATH/coord_fine.nc"
233/
234
235&namvar
236   cn_varfile = "Bathymetry:PATH/bathy_meter_ORCA025.nc"
237   cn_varinfo = "Bathymetry: min=5"
238/
239
240&namnst
241   in_rhoi = 2
242   in_rhoj = 3
243/
244
245&namout
246   cn_fileout = "PATH/bathy_fine.nc"     
247/
248~~~~~~~~~~~~~~~~~~
249
250Let's get describe this namelist.<br/>
251
252First as previously, we have the **namlog** and **namcfg** sub-namelist (see above for more
253explanation).<br/>
254
255Then the **namcrs** sub-namelist set parameters of the wide
256coordinates file.<br/>
257@note in all SIREN namelist: <br/>
258**0** referred to the coarse/wide grid.<br/>
259**1** referred to the fine grid.
260
261In the same way, the **namfin** sub-namelist  set parameters of the fine
262coordinates file.<br/>
263@note in this namelist example, there is no need to set the variable *in_perio1* to define the NEMO
264periodicity of the fine grid. Indeed, if this variable is not inform, SIREN tries to read it
265in the global attributes of the file. So if you created the fine coordinates with SIREN, you do not have to
266fill it. In other case, you should add it to the namelist.
267
268The **namvar** sub-namelist lists variables to be used:
269<dl>
270   <dt>cn_varfile</dt>
271      <dd> defines the variable name ("Bathymetry" here) and the input file associated with.
272            @warning The domain of the input Bathymetry have to be larger than the output domain.
273         @note
274         <ul>
275            <li>if the input file is at coarse grid resolution (same than *cn_coord0*), the ouptut Bathymetry will be refined on fine grid.</li>
276            <li>if the input file is a wider bathymetry (already at fine grid resolution), the output Bathymetry will be extracted from this one.</li>
277         </ul>
278      </dd>
279   <dt>cn_varinfo</dt>
280      <dd> defines user's requests for a variable.
281         @note Default interpolation method for the Bathymetry, is *cubic* interpolation.<br/>
282         So you may want to specify a minimum value to avoid negative value, or to change interpolation method.<br/>
283         example: <ul><li>cn_varinfo="Bathymetry: min=1"'</li>
284                      <li>cn_varinfo="Bathymetry: int=linear"</li></ul>
285      </dd>
286</dl>
287
288The **namnst** sub-namelist defines the subdomain refinment factor.<br/>
289Of course those refinment factors have to be convenient with refinment
290from coarse grid *cn_coord0* to fine grid *cn_coord1*.
291@note subdomain indices are automatically deduced from fine and coarse grid
292coordinates.
293
294Finally, this **namout** sub-namelist defines the output file.<br/>
295
296@note All the output files create by SIREN include information about
297source file, indices, refinment and interpolation method used.
298
299@sa For more information about how to create bathymetry, see
300create_bathy.f90
301
302<!-- ######################################################################  -->
303# Merge bathymetry file # {#merge}
304
305The Bathymetry you build, may differ from the wider one.<br/>
306To avoid issue with boundaries forcing fields, you should merge fine and coarse Bathymetry on boundaries.<br/>
307SIREN allows you to do this.<br/>
308
309To create this merged bathymetry, you have to run :
310~~~~~~~~~~~~~~~~~~
311./SIREN/merge_bathy.exe merge_bathy.nam
312~~~~~~~~~~~~~~~~~~
313
314Here after is an example of namelist for *merge_bathy.exe*.<br/>
315~~~~~~~~~~~~~~~~~~
316&namlog
317/
318
319&namcfg
320   cn_varcfg = "PATH/NEMOGCM/TOOLS/SIREN/cfg/variable.cfg"
321   cn_dimcfg = "PATH/NEMOGCM/TOOLS/SIREN/cfg/dimension.cfg"
322/
323
324&namcrs
325   cn_bathy0 = "PATH/bathy_meter_ORCA025.nc"
326   in_perio0 = 4
327/
328
329&namfin
330   cn_bathy1 = "PATH/bathy_fine.nc"
331/
332
333&namnst
334   in_rhoi = 3
335   in_rhoj = 3
336/
337
338&nambdy
339/
340
341&namout
342   cn_fileout = "PATH/bathy_merged.nc"     
343/
344~~~~~~~~~~~~~~~~~~
345In this namelist, you find again the **namlog**, **namcfg** describe above.
346
347Then the **namcrs** sub-namelist sets parameters of the wider grid.
348However this time, this is the coarse/wide grid Bathymetry wich have to be informed.
349
350The **namfin** sub-namelist defines parameters of the fine grid Bathymetry.
351@note here again you could add the *in_perio1* parameter if need be i.e. if your
352fine grid Bathymetry was not created by SIREN.
353
354The **namnst** sub-namelist defines the subdomain refinment factor.
355
356
357The **nambdy** sub-namelist defines the subdomain boundaries.<br/>
358By default SIREN tries to create boundaries for each side. Boundary exist if there is at least one sea point on the second row of each side. So you could let this namelist empty.
359@sa For more information about boundaries, see @ref boundary
360
361Finally, this **namout** sub-namelist defines the output file.<br/>
362
363@sa For more information about how to merge bathymetry, see
364merge_bathy.f90
365
366<!-- ######################################################################  -->
367# Create meshmask (ocean domain informations) # {#meshmask}
368
369
370Depending on the vertical grid you choose to use, NEMO may not see the bathymetry exactly as you defined it just before. To get the ocean domain informations as seen by NEMO, SIREN allows you to create the meshmask file(s) which contain(s) all those informations.<br/>
371Morevoer SIREN allows you to create the *domain_cfg* file which is the new input file for NEMO (release 3.7 and upper).<br/>
372
373To create the meshmask file(s), you have to run :
374~~~~~~~~~~~~~~~~~~
375./SIREN/create_meshmask.exe create_meshmask.nam
376~~~~~~~~~~~~~~~~~~
377
378Here after is an example of namelist for *create_meshmask.exe*.<br/>
379In this example, you create one meshmask file named *mesh_mask.nc*.<br/>
380It uses coordinates file *coord_fine.nc* to define horizontal grid.
381and defines z-coordinate with partial steps.
382The minimum depth of the final Bathymetry is 10m.
383~~~~~~~~~~~
384&namlog
385/
386
387&namcfg
388   cn_varcfg = "PATH/NEMOGCM/TOOLS/SIREN/cfg/variable.cfg"
389   cn_dimcfg = "PATH/NEMOGCM/TOOLS/SIREN/cfg/dimension.cfg"
390/
391
392&namin
393   cn_bathy = "PATH/bathy_merged.nc"
394   cn_coord = "PATH/coord_fine.nc"
395   in_perio = 4
396/
397
398&namhgr
399   in_mshhgr = 0
400/
401
402&namzgr
403   ln_zps   = .TRUE.
404   in_nlevel= 75
405/
406
407&namdmin
408   dn_hmin=10.
409/
410
411&namzco
412   dn_ppsur   = -3958.951371276829
413   dn_ppa0    =   103.953009600000
414   dn_ppa1    =     2.415951269000
415   dn_ppkth   =    15.351013700000
416   dn_ppacr   =     7.000000000000
417   dn_ppdzmin = 6.
418   dn_pphmax  = 5750.
419   ln_dbletanh= .TRUE.
420   dn_ppa2    =   100.760928500000
421   dn_ppkth2  =    48.029893720000
422   dn_ppacr2  =    13.000000000000
423/
424
425&namzps
426   dn_e3zps_min = 25.
427   dn_e3zps_rat = 0.2
428/
429
430&namsco
431/
432
433&namlbc
434/
435
436&namwd
437/
438
439&namgrd
440/
441
442&namout
443   in_msh = 1
444/
445~~~~~~~~~~~
446
447Let's get describe this namelist more accurately.<br/>
448
449As previously, we have the **namlog** and **namcfg** describe above.<br/>
450
451The **namin** sub-namelist defines the Bathymetry to be used.
452Mainly SIREN need Bathymetry to create meshmask.
453Here we also read coordinates directly on a file.
454@note
455 1. here again you could add the *in_perio* parameter if need be i.e. if your
456Bathymetry was not created by SIREN.
457 2. by default SIREN suppress closed sea/lake from the ORCA domain.
458
459
460The **namhgr** sub-namelist defines the horizontal grid.
461the type of horizontal mesh is choose between :<ul>
462<li> in_mshhgr=0 : curvilinear coordinate on the sphere read in coordinate.nc</li>
463<li> in_mshhgr=1 : geographical mesh on the sphere with regular grid-spacing</li>
464<li> in_mshhgr=2 : f-plane with regular grid-spacing</li>
465<li> in_mshhgr=3 : beta-plane with regular grid-spacing</li>
466<li> in_mshhgr=4 : Mercator grid with T/U point at the equator</li>
467<li> in_mshhgr=5 : beta-plane with regular grid-spacing and rotated domain (GYRE configuration)</li>
468</ul>
469
470The **namzgr** sub-namelist allows to choose the type of vertical grid (z-coordinate full steps, partial steps, sigma or hybrid coordinates) and the number of level.
471
472The **namdmin** sub-namelist defines the minimum ocean depth. It could be defines in meter (>0) or in number of level (<0).
473
474The **namzco** sub-namelist defines parameters to compute z-coordinate vertical grid (**needed for all type of vertical grid**)
475<!-- By default, those parameters are defined the same way than in GLORYS (i.e. 75 vertical levels).<br/> -->
476
477The **namzps** sub-namelist defines extra parameters needed to define z-coordinates partial steps.
478
479The **namsco** sub-namelist defines extra parameters needed to define sigma or hybrid coordinates (not needed here).
480
481<!--The **namcla** sub-namelist defines cross land advection for exchanges through some straits only used for ORCA2 (see namgrd).-->
482
483The **namlbc** sub-namelist defines lateral boundary conditions at the coast. It is needed to modify the fmask.
484
485The **namwd** sub-namelist defines the wetting and drying parameters if activated (see namzgr sub-namelist)
486
487The **namgrd** sub-namelist allows to use configuration 1D or to choose vertical scale factors (e3.=dk or old definition).
488
489Finally, this **namout** sub-namelist defines the number output file(s).<br/>
490@note To create the domain_cfg file, you should put **in_msh=0**.
491
492@sa For more information about how to create meshmask, see create_meshmask.f90
493
494<!-- ######################################################################  -->
495# Create initial state # {#restart}
496
497To run your configuration you need an inital state of the ocean.<br/>
498You could start from a restart file (with all NEMO variables fields at one
499time step). Or you could start from "partial" information about ocean state (Temperature and Salinity for example).
500
501SIREN allows you to create both of those initial state.<br/>
502To create the initial state, you have to run:<br/>
503~~~~~~~~~~~~~~~~~~
504./SIREN/create_restart.exe create_restart.nam
505~~~~~~~~~~~~~~~~~~
506
507Here after is an example of namelist for *create_restart.exe*.<br/>
508In this example, you create an initial state split on 81 "processors", and named restart_out.nc.<br/>
509The initial state is composed of temperature and salinity refined from an extraction of GLORYS fields.
510~~~~~~~~~~~~~~~~~~
511&namlog
512/
513
514&namcfg
515   cn_varcfg = "PATH/NEMOGCM/TOOLS/SIREN/cfg/variable.cfg"
516   cn_dimcfg = "PATH/NEMOGCM/TOOLS/SIREN/cfg/dimension.cfg"
517/
518
519&namcrs
520   cn_coord0 = "PATH/coordinates_ORCA025.nc"
521   in_perio0 = 4
522/
523
524&namfin
525   cn_coord1 = "PATH/coord_fine.nc"
526   cn_bathy1 = "PATH/bathy_merged.nc"
527/
528
529&namzgr
530/
531
532&namzps
533/
534
535&namvar
536   cn_varfile = "votemper:GLORYS_gridT.nc",
537                "vosaline:GLORYS_gridS.nc"
538/
539
540&namnst
541   in_rhoi = 3
542   in_rhoj = 3
543/
544
545&namout
546   cn_fileout = "PATH/restart_out.nc"     
547   in_nproc = 81
548/
549~~~~~~~~~~~~~~~~~~
550Let's get describe this namelist more accurately.<br/>
551
552As previously, we have the **namlog** and **namcfg** sub-namelists, as well as
553the **namcrs** sub-namelist to set parameters of the wide coordinates file (see above for more
554explanation).<br/>
555
556Then the **namfin** sub-namelist set parameters of the fine
557grid coordinates and bathymetry.<br/>
558
559The **namzgr** and **namzps** sub-namelists define respectively parameters for vertical grid
560and partial step.<br>
561By default, those parameters are defined the same way than in GLORYS (i.e. 75 vertical levels).<br/>
562So you could let it empty.
563@note If you use forcing fields other than GLORYS, you have to be sure it uses the same vertical grid. In other case, you need to get information about the parametrisation use, and to put it in those sub-namelist (see create_restart.f90).
564
565the **namvar** sub-namelist lists variables to be used.<br/>
566Here we use *votemper* (temperature) get from *GLORYS_gridT.nc* file, and *vosaline*
567(salinity) get from *GLORYS_gridS.nc* file.
568@note To get all variables of a restart file. You have to use:
569~~~~~~~~~~~~~~~~~~
570cn_varfile = "all:PATH/restart.dimg"
571~~~~~~~~~~~~~~~~~~
572
573The **namnst** sub-namelist defines the subdomain refinment factor, as seen previously.<br/>
574
575Finally, this **namout** sub-namelist defines the output files.<br/>
576Here we ask for output on 81 processors, with *restart_out.nc* as file "basename".<br/>
577So SIREN computes the optimal layout for 81 processors
578available,<br/>
579and split restart on output files named *restart_out_num.nc*, where *num* is the proc number.
580
581@note SIREN could also create the other fields you may need for
582your configuration.<br/>
583To do so, you just have to run *create_restart.exe* with other variable(s) from other input file(s).<br/>
584For example, to get runoff fields, you could use:
585~~~~~~~~~~~~~~~~~~
586cn_varfile = "sorunoff:PATH/runoff_GLORYS.nc"
587...
588cn_fileout = "PATH/runoff_out.nc"
589~~~~~~~~~~~~~~~~~~
590
591@sa For more information about how to create initial state or other fields, see
592create_restart.f90
593
594<!-- ######################################################################  -->
595# Create boundaries conditions # {#boundary}
596
597Finally to force your configuration, you may need boundaries conditions.<br/>
598NEMO read physical boundaries conditions from temperature, salinity, currents, and sea
599surface height.
600
601To create the boundaries condition with SIREN, you have to run:<br/>
602~~~~~~~~~~~~~~~~~~
603./SIREN/create_boundary.exe create_boundary.nam
604~~~~~~~~~~~~~~~~~~
605
606Here after is an example of namelist for *create_boundary.exe*.<br/>
607In this example, you create boundaries conditions named *boundary_out.nc* on
608each side of the domain.<br/>
609The boundaries contain information about temperature, salinity, currents and sea surface height refined from an extraction of GLORYS fields.
610~~~~~~~~~~~~~~~~~~
611&namlog
612/
613
614&namcfg
615   cn_varcfg = "PATH/NEMOGCM/TOOLS/SIREN/cfg/variable.cfg"
616   cn_dimcfg = "PATH/NEMOGCM/TOOLS/SIREN/cfg/dimension.cfg"
617/
618
619&namcrs
620   cn_coord0 = "PATH/coordinates_ORCA025.nc"
621   in_perio0 = 4
622/
623
624&namfin
625   cn_coord1 = "PATH/coord_fine.nc"
626   cn_bathy1 = "PATH/bathy_fine.nc"
627/
628
629&namzgr
630/
631
632&namzps
633/
634
635&namvar
636   cn_varfile="votemper:GLORYS_gridT.nc",
637              "vosaline:GLORYS_gridS.nc",
638              "vozocrtx:GLORYS_gridU.nc",
639              "vomecrty:GLORYS_gridV.nc",
640              "sossheig:GLORYS_grid2D.nc"
641/
642
643&namnst
644   in_rhoi = 3
645   in_rhoj = 3
646/
647
648&nambdy
649/
650
651&namout
652   cn_fileout = "PATH/boundary_out.nc"     
653/
654~~~~~~~~~~~~~~~~~~
655
656Let's get describe this namelist more accurately.<br/>
657
658As previously, we have the **namlog** and **namcfg** sub-namelists, as well as
659the **namcrs** sub-namelist to set parameters of the wide coordinates file (see above for more
660explanation).<br/>
661
662Then the **namfin** sub-namelist set parameters of the fine
663grid coordinates and bathymetry.<br/>
664
665The **namzgr** and **namzps** sub-namelists define respectively parameters for vertical grid
666and partial step.<br>
667By default, those parameters are defined the same way than in GLORYS (i.e. 75 vertical levels).<br/>
668So you could let it empty.
669@note If you use forcing fields other than GLORYS, you have to be sure it uses the same vertical grid. In other case, you need to get information about the parametrisation use, and to put it in those sub-namelist (see create_boundary.F90).
670
671the **namvar** sub-namelist lists variables to be used.<br/>
672Here we get *votemper* (temperature) from *GLORYS_gridT.nc* file, *vosaline*
673(salinity) from *GLORYS_gridS.nc* file, *vozocrtx* (zonal velocity) from
674*GLORYS_gridU.nc*, *vomecrty* (meridional velocity) from *GLORYS_gridV.nc*, and sossheig (sea surface
675height) from *GLORYS_grid2D.nc*.
676
677The **namnst** sub-namelist defines the subdomain refinment factor.<br/>
678
679The **nambdy** sub-namelist defines the subdomain boundaries.<br/>
680By default SIREN tries to create boundaries for each side (Boundary is created if sea point exist on the second row of each side).<br/>
681So you could let this namelist empty.
682
683@note SIREN allows you to place boundaries away from the side of the domain.
684To do so you have to define your boundary.<br/>
685That means you have to give on fine
686grid the index of the boundary (how far from the border your boundary is),
687the width of your boundary, and finally first and last point of your boundary (the length of your boundary).<br/>
688So to define a north boundary, you have to add in the sub-namelist *nambdy*, the parameter:
689~~~~~~~~~~~~~~~~~~
690cn_north="index,first:last(width)"
691~~~~~~~~~~~~~~~~~~
692
693Finally, this **namout** sub-namelist defines the output files.<br/>
694Here we ask for output with *boundary_out.nc* as file "basename".<br/>
695So SIREN creates output files named *boundary_out_west.nc*,
696*boundary_out_east.nc*, *boundary_out_north.nc*, and *boundary_out_south.nc*
697depending if boundary exist or not.
698
699@sa For more information about how to create boundaries condition, see
700create_boundary.F90
701
702# Create and run NEMO configuration # {#NEMOconf}
703
704So now you created all the input files you need for your physical configuration, you have to create the "NEMO configuration".<br/>
705To do so, go to the directory *NEMOGCM/CONFIG/*, and run:
706~~~~~~~~~~~~~~~~~~
707./makenemo -n MY_CONFIG -d "OPA_SRC"
708~~~~~~~~~~~~~~~~~~
709This creates your configuration "MY_CONFIG" in the directory *NEMOGCM/CONFIG*.<br/>
710you could check the cpp_keys used in file *cpp_MY_CONFIG.fcm*, and re-run *makenemo*
711if need be.
712
713Once *makenemo* has run successfully, the *opa* executable is available in
714directory *NEMOGCM/CONFIG/MY_CONFIG/EXP00*.<br/>
715Then you just have to put all your input files in this directory, fill the namelist *namelist_cfg*, and run:
716~~~~~~~~~~~~~~~~~~
717mpirun ./opa
718~~~~~~~~~~~~~~~~~~
719
720@note no surface forcing here.
721weighted function needed to do interpolation on the fly, could be created by WEIGHT tools already inside NEMO.
722
723@sa For more information about how to create NEMO configuration see [NEMO Quick Start Guide](http://www.nemo-ocean.eu/Using-NEMO/User-Guides/Basics/NEMO-Quick-Start-Guide).
724
725 <HR>
726   <b>
727   - @ref index
728   - @ref md_src_docsrc_1_install
729   - @ref md_src_docsrc_2_quickstart
730   - @ref md_src_docsrc_3_support_bug
731   - @ref md_src_docsrc_4_codingRules
732   - @ref md_src_docsrc_5_changeLog
733   - @ref todo
734   </b>
Note: See TracBrowser for help on using the repository browser.