Changeset 12080 for utils/tools/SIREN/src/docsrc/2_quickstart.md
- Timestamp:
- 2019-12-06T10:30:14+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/tools/SIREN/src/docsrc/2_quickstart.md
r10212 r12080 7 7 Actually SIREN creates all the input files you need to run a NEMO regional configuration.<br/> 8 8 9 SIREN is composed of a set of 6Fortran programs :9 SIREN is composed of a set of Fortran programs : 10 10 <ul> 11 11 <li>create_coord.f90 to create regional grid coordinates.</li> … … 17 17 </li> 18 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_layout.f90 to create/compute the domain layout of your configuration.</li> 19 20 <li>create_restart.f90 to create initial state file from coarse grid restart 20 21 or standard outputs. … … 36 37 Here after we briefly describe how to use each programs, 37 38 and 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:// atlas.mercator-ocean.fr/s/Zgkb65Yrgw3wWQo).39 @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 40 41 <!-- ###################################################################### --> … … 61 62 cn_varcfg = "PATH/NEMOGCM/TOOLS/SIREN/cfg/variable.cfg" 62 63 cn_dimcfg = "PATH/NEMOGCM/TOOLS/SIREN/cfg/dimension.cfg" 63 / 64 65 &namcrs 64 cn_dumcfg = "PATH/NEMOGCM/TOOLS/SIREN/cfg/dummy.cfg" 65 / 66 67 &namsrc 66 68 cn_coord0 = "PATH/coordinates_ORCA025.nc" 67 69 in_perio0 = 4 … … 86 88 ~~~~~~~~~~~ 87 89 90 @note you could define sub domain with coarse grid indices or with coordinates. 91 88 92 Let's get describe this namelist.<br/> 89 93 First we have the **namlog** sub-namelist. This sub-namelist set parameters of the log … … 92 96 empty, as done here.<br/> This will create a log file named *create_coord.log* 93 97 98 ## namcfg 94 99 The **namcfg** sub-namelist defines where found SIREN configuration files.<br/> 95 100 - The variable configuration file defines standard name, default interpolation method, … … 97 102 Obviously, you could add other variables to those already list, in this file. 98 103 - 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 102 The **namcrs** sub-namelist set parameters of the wide 103 coordinates file, as path to find it, and NEMO periodicity of the wide grid.<br/> 104 - The dummy configuration file defines useless dimension or variable. these dimension(s) or variable(s) will not be processed. 105 106 @note You could find the generic version of those configuration files in the directory *SIREN/cfg*. 107 108 ## namsrc 109 The **namsrc** sub-namelist set parameters of the coarse/source 110 coordinates file name, path to find it, and the NEMO periodicity of the grid.<br/> 104 111 105 112 @note the NEMO periodicity could be choose between 0 to 6: … … 121 128 <dd>global model with a F-point pivot<br/> 122 129 example: ORCA05</dd> 130 </dd> 123 131 </dl> 124 132 @sa For more information see @ref md_src_docsrc_6_perio 125 </dd> 126 </dl> 127 133 134 ## namvar 128 135 The **namvar** sub-namelist lists variables to be used.<br/> 129 By default all the variables of the widercoordinates file are used to create136 By default all the variables of the coarse/source coordinates file are used to create 130 137 the new coordinates file.<br/> 131 138 The interpolation methods to be used are defined in the configuration variables file (see 132 below). So you do not need to fill this sub-namelist too. 133 139 above). So you do not need to fill this sub-namelist too. 140 141 ## namnst 134 142 The **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 143 137 144 <ul> 138 <li>you can select area quite every where (excepted too close from the North 139 pole), and use the refinment factor you want.</li> 140 141 ~~~~~~~~~~~ 142 &namvar 145 <li> you could define sub domain with coarse grid indices</li> 146 147 ~~~~~~~~~~~ 148 &namnst 143 149 in_imin0 = 1070 144 150 in_imax0 = 1072 145 151 in_jmin0 = 607 146 152 in_jmax0 = 609 153 / 154 ~~~~~~~~~~~ 155 156 <li>or with coordinates</li> 157 158 ~~~~~~~~~~~ 159 &namnst 160 rn_lonmin0 = -97.9 161 rn_lonmax0 = -62.3 162 rn_latmin0 = 7.7 163 rn_latmax0 = 30.8 164 / 165 ~~~~~~~~~~~ 166 167 <li>you can select area quite every where (excepted too close from the North 168 pole), and use the refinment factor you want.</li> 169 170 ~~~~~~~~~~~ 171 &namnst 172 in_imin0 = 1070 173 in_imax0 = 1072 174 in_jmin0 = 607 175 in_jmax0 = 609 147 176 148 177 in_rhoi = 2 … … 158 187 159 188 ~~~~~~~~~~~ 160 &nam var189 &namnst 161 190 in_imin0 = 1402 162 191 in_imax0 = 62 … … 176 205 177 206 ~~~~~~~~~~~ 178 &nam var207 &namnst 179 208 in_imin0 = 0 180 209 in_imax0 = 0 … … 197 226 periodicity, as well as source file, indices and refinment used. 198 227 199 @sa For more information a bout howto create coordinates, see create_coord.f90228 @sa For more information and options to create coordinates, see create_coord.f90 200 229 201 230 <!-- ###################################################################### --> … … 224 253 / 225 254 226 &nam crs255 &namsrc 227 256 cn_coord0 = "PATH/coordinates_ORCA025.nc" 228 257 in_perio0 = 4 229 258 / 230 259 231 &nam fin260 &namtgt 232 261 cn_coord1 = "PATH/coord_fine.nc" 233 262 / … … 250 279 Let's get describe this namelist.<br/> 251 280 281 ## namlog, namcfg 252 282 First as previously, we have the **namlog** and **namcfg** sub-namelist (see above for more 253 283 explanation).<br/> 254 284 255 Then the **namcrs** sub-namelist set parameters of the wide 285 ## namsrc 286 Then the **namsrc** sub-namelist set parameters of the source/wide 256 287 coordinates file.<br/> 257 288 @note in all SIREN namelist: <br/> … … 259 290 **1** referred to the fine grid. 260 291 261 In the same way, the **namfin** sub-namelist set parameters of the fine 292 ## namtgt 293 In the same way, the **namtgt** sub-namelist set parameters of the target/fine 262 294 coordinates file.<br/> 263 295 @note in this namelist example, there is no need to set the variable *in_perio1* to define the NEMO … … 266 298 fill it. In other case, you should add it to the namelist. 267 299 300 ## namvar 268 301 The **namvar** sub-namelist lists variables to be used: 269 302 <dl> … … 286 319 </dl> 287 320 321 ## namnst 288 322 The **namnst** sub-namelist defines the subdomain refinment factor.<br/> 289 323 Of course those refinment factors have to be convenient with refinment … … 292 326 coordinates. 293 327 328 ## namout 294 329 Finally, this **namout** sub-namelist defines the output file.<br/> 295 330 … … 297 332 source file, indices, refinment and interpolation method used. 298 333 299 @sa For more information a bout howto create bathymetry, see334 @sa For more information and options to create bathymetry, see 300 335 create_bathy.f90 301 336 … … 322 357 / 323 358 324 &nam crs359 &namsrc 325 360 cn_bathy0 = "PATH/bathy_meter_ORCA025.nc" 326 361 in_perio0 = 4 327 362 / 328 363 329 &nam fin364 &namtgt 330 365 cn_bathy1 = "PATH/bathy_fine.nc" 331 366 / … … 343 378 / 344 379 ~~~~~~~~~~~~~~~~~~ 380 381 ## namlog, namcfg 345 382 In this namelist, you find again the **namlog**, **namcfg** describe above. 346 383 347 Then the **namcrs** sub-namelist sets parameters of the wider grid. 348 However this time, this is the coarse/wide grid Bathymetry wich have to be informed. 349 350 The **namfin** sub-namelist defines parameters of the fine grid Bathymetry. 384 ## namsrc 385 Then the **namsrc** sub-namelist sets parameters of the source/wide grid. 386 However this time, this is the source/wide grid Bathymetry wich have to be informed. 387 388 ## namtgt 389 The **namtgt** sub-namelist defines parameters of the target/fine grid Bathymetry. 351 390 @note here again you could add the *in_perio1* parameter if need be i.e. if your 352 391 fine grid Bathymetry was not created by SIREN. 353 392 393 ## namnst 354 394 The **namnst** sub-namelist defines the subdomain refinment factor. 355 395 356 396 ## nambdy 357 397 The **nambdy** sub-namelist defines the subdomain boundaries.<br/> 358 398 By 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 399 @sa For more information about boundaries, see @ref boundary 360 400 401 ## namout 361 402 Finally, this **namout** sub-namelist defines the output file.<br/> 362 403 363 @sa For more information a bout howto merge bathymetry, see404 @sa For more information and options to merge bathymetry, see 364 405 merge_bathy.f90 365 406 … … 390 431 / 391 432 392 &nam in433 &namsrc 393 434 cn_bathy = "PATH/bathy_merged.nc" 394 435 cn_coord = "PATH/coord_fine.nc" … … 447 488 Let's get describe this namelist more accurately.<br/> 448 489 490 ## namlog, namcfg 449 491 As previously, we have the **namlog** and **namcfg** describe above.<br/> 450 492 451 The **namin** sub-namelist defines the Bathymetry to be used. 493 ## namsrc 494 The **namsrc** sub-namelist defines the Bathymetry to be used. 452 495 Mainly SIREN need Bathymetry to create meshmask. 453 496 Here we also read coordinates directly on a file. … … 457 500 2. by default SIREN suppress closed sea/lake from the ORCA domain. 458 501 459 502 ## namhgr 460 503 The **namhgr** sub-namelist defines the horizontal grid. 461 504 the type of horizontal mesh is choose between :<ul> … … 468 511 </ul> 469 512 513 ## namzgr 470 514 The **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 515 516 ## namdmin 472 517 The **namdmin** sub-namelist defines the minimum ocean depth. It could be defines in meter (>0) or in number of level (<0). 473 518 519 ## namzco 474 520 The **namzco** sub-namelist defines parameters to compute z-coordinate vertical grid (**needed for all type of vertical grid**) 475 521 <!-- By default, those parameters are defined the same way than in GLORYS (i.e. 75 vertical levels).<br/> --> 476 522 523 ## namzps 477 524 The **namzps** sub-namelist defines extra parameters needed to define z-coordinates partial steps. 478 525 526 ## namsco 479 527 The **namsco** sub-namelist defines extra parameters needed to define sigma or hybrid coordinates (not needed here). 480 528 481 529 <!--The **namcla** sub-namelist defines cross land advection for exchanges through some straits only used for ORCA2 (see namgrd).--> 482 530 531 ## namlbc 483 532 The **namlbc** sub-namelist defines lateral boundary conditions at the coast. It is needed to modify the fmask. 484 533 534 ## namwd 485 535 The **namwd** sub-namelist defines the wetting and drying parameters if activated (see namzgr sub-namelist) 486 536 537 ## namgrd 487 538 The **namgrd** sub-namelist allows to use configuration 1D or to choose vertical scale factors (e3.=dk or old definition). 488 539 540 ## namout 489 541 Finally, this **namout** sub-namelist defines the number output file(s).<br/> 490 542 @note To create the domain_cfg file, you should put **in_msh=0**. 491 543 492 544 @sa For more information about how to create meshmask, see create_meshmask.f90 545 546 <!-- ###################################################################### --> 547 # Create layout (domain layout) # {#layout} 548 549 To run faster your configuration you may need to run it on multiprocessor. To do so you first need to know on which domain layout and so on how many processor you could do it. 550 .<br/> 551 552 To create/compute the domain layout, you have to run : 553 ~~~~~~~~~~~~~~~~~~ 554 ./SIREN/create_layout.exe create_layout.nam 555 ~~~~~~~~~~~~~~~~~~ 556 557 Here after is an example of namelist for *create_layout.exe*.<br/> 558 In this example, you compute the domain layout on 40 processors.<br/> 559 ~~~~~~~~~~~ 560 &namlog 561 / 562 563 &namcfg 564 cn_varcfg = "PATH/NEMOGCM/TOOLS/SIREN/cfg/variable.cfg" 565 cn_dimcfg = "PATH/NEMOGCM/TOOLS/SIREN/cfg/dimension.cfg" 566 / 567 568 &namvar 569 cn_varfile = "Bathymetry:PATH/bathy_merged.nc" 570 / 571 572 &namout 573 in_nproc = 40 574 / 575 ~~~~~~~~~~~ 576 577 Let's get describe this namelist more accurately.<br/> 578 579 ## namlog, namcfg 580 As previously, we have the **namlog** and **namcfg** describe above.<br/> 581 582 ## namvar 583 The **namvar** sub-namelist lists variables to be used. 584 Mainly SIREN need Bathymetry to compute the domain layout, or at least the mask of your domain. 585 586 ## namout 587 The **namout** sub-namelist defines the number of processor you want to work on. 588 589 @sa For more information and options to create layout, see create_layout.f90 493 590 494 591 <!-- ###################################################################### --> … … 517 614 / 518 615 519 &nam crs616 &namsrc 520 617 cn_coord0 = "PATH/coordinates_ORCA025.nc" 521 618 in_perio0 = 4 522 619 / 523 620 524 &nam fin621 &namtgt 525 622 cn_coord1 = "PATH/coord_fine.nc" 526 623 cn_bathy1 = "PATH/bathy_merged.nc" … … 550 647 Let's get describe this namelist more accurately.<br/> 551 648 649 ## namlog, namcfg 552 650 As previously, we have the **namlog** and **namcfg** sub-namelists, as well as 553 the **namcrs** sub-namelist to set parameters of the wide coordinates file (see above for more 651 652 ## namsrc 653 the **namsrc** sub-namelist to set parameters of the source/wide coordinates file (see above for more 554 654 explanation).<br/> 555 655 556 Then the **namfin** sub-namelist set parameters of the fine 656 ## namtgt 657 Then the **namtgt** sub-namelist set parameters of the target/fine 557 658 grid coordinates and bathymetry.<br/> 558 659 660 ## namzgr, namzps 559 661 The **namzgr** and **namzps** sub-namelists define respectively parameters for vertical grid 560 662 and partial step.<br> … … 563 665 @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 666 667 ## namvar 565 668 the **namvar** sub-namelist lists variables to be used.<br/> 566 669 Here we use *votemper* (temperature) get from *GLORYS_gridT.nc* file, and *vosaline* … … 571 674 ~~~~~~~~~~~~~~~~~~ 572 675 676 ## namnst 573 677 The **namnst** sub-namelist defines the subdomain refinment factor, as seen previously.<br/> 574 678 679 ## namout 575 680 Finally, this **namout** sub-namelist defines the output files.<br/> 576 681 Here we ask for output on 81 processors, with *restart_out.nc* as file "basename".<br/> … … 589 694 ~~~~~~~~~~~~~~~~~~ 590 695 591 @sa For more information a bout howto create initial state or other fields, see696 @sa For more information and options to create initial state or other fields, see 592 697 create_restart.f90 593 698 … … 617 722 / 618 723 619 &nam crs724 &namsrc 620 725 cn_coord0 = "PATH/coordinates_ORCA025.nc" 621 726 in_perio0 = 4 622 727 / 623 728 624 &nam fin729 &namtgt 625 730 cn_coord1 = "PATH/coord_fine.nc" 626 731 cn_bathy1 = "PATH/bathy_fine.nc" … … 656 761 Let's get describe this namelist more accurately.<br/> 657 762 763 ## namlog, namcfg 658 764 As previously, we have the **namlog** and **namcfg** sub-namelists, as well as 659 the **namcrs** sub-namelist to set parameters of the wide coordinates file (see above for more 765 766 ## namsrc 767 the **namcrs** sub-namelist to set parameters of the source/wide coordinates file (see above for more 660 768 explanation).<br/> 661 769 662 Then the **namfin** sub-namelist set parameters of the fine 770 ## namtgt 771 Then the **namtgt** sub-namelist set parameters of the target/fine 663 772 grid coordinates and bathymetry.<br/> 664 773 774 ## namzgr, namzps 665 775 The **namzgr** and **namzps** sub-namelists define respectively parameters for vertical grid 666 776 and partial step.<br> … … 669 779 @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 780 781 ## namvar 671 782 the **namvar** sub-namelist lists variables to be used.<br/> 672 783 Here we get *votemper* (temperature) from *GLORYS_gridT.nc* file, *vosaline* … … 675 786 height) from *GLORYS_grid2D.nc*. 676 787 788 ## namnst 677 789 The **namnst** sub-namelist defines the subdomain refinment factor.<br/> 678 790 791 ## nambdy 679 792 The **nambdy** sub-namelist defines the subdomain boundaries.<br/> 680 793 By default SIREN tries to create boundaries for each side (Boundary is created if sea point exist on the second row of each side).<br/> … … 691 804 ~~~~~~~~~~~~~~~~~~ 692 805 806 ## namout 693 807 Finally, this **namout** sub-namelist defines the output files.<br/> 694 808 Here we ask for output with *boundary_out.nc* as file "basename".<br/> … … 697 811 depending if boundary exist or not. 698 812 699 @sa For more information a bout howto create boundaries condition, see813 @sa For more information and options to create boundaries condition, see 700 814 create_boundary.F90 701 815 … … 705 819 To do so, go to the directory *NEMOGCM/CONFIG/*, and run: 706 820 ~~~~~~~~~~~~~~~~~~ 707 ./makenemo -n MY_CONFIG -d "O CE_SRC"821 ./makenemo -n MY_CONFIG -d "OPA_SRC" 708 822 ~~~~~~~~~~~~~~~~~~ 709 823 This creates your configuration "MY_CONFIG" in the directory *NEMOGCM/CONFIG*.<br/>
Note: See TracChangeset
for help on using the changeset viewer.