Changes between Version 2 and Version 3 of doc/app/userint/subd


Ignore:
Timestamp:
Sep 15, 2010 9:02:25 AM (14 years ago)
Author:
suehring
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/app/userint/subd

    v2 v3  
    44The exact definition of these subdomains has to be made by the user within the user-defined subroutine {{{user_init}}}. The subdomains are defined with a mask array named {{{rmask}}}, which has to be given the value ''1.0'' for all horizontal grid points belonging to the user-defined subdomain and the value ''0.0'', where grid points do not belong to the user-defined subdomain. In the model {{{rmask}}} is declared as:
    55{{{
    6 REAL :: rmask(nys-1:nyn+1,nxl-1:nxr+1,0:9) .
     6REAL :: rmask(nysd:nynd,nxld:nxrd,0:9) .
    77}}}
    8 The first two indices are the grid point indices in y and x-direction. With parallel model runs {{{nxl}}}, {{{nxr}}}, {{{nys}}} and {{{nyn}}} are the array bounds of the respective subdomain (don't confuse this with the user-defined subdomain!) on the respective processor. With runs on one processor {{{nys}}} = {{{nxl}}} = ''0'' and {{{nxr}}} = [../../inipar#nx nx] and {{{nyn}}} = [../../inipar#ny ny]. The third index determines the user-defined subdomain. The total model domain carries the index ''0'', the user-defined subdomains have the values ''1'' to ''9''.\\\\
     8The first two indices are the grid point indices in y and x-direction, including the ghost points (see the corresponding description [#parallelization Parallelization]. With parallel model runs {{{nxl}}}, {{{nxr}}}, {{{nys}}} and {{{nyn}}} are the array bounds ({{{nxld, nxrd, nysd, nynd}}} the array bounds of the respective subdomain (don't confuse this with the user-defined subdomain!) on the respective processor. With runs on one processor {{{nys}}} = {{{nxl}}} = ''0'' and {{{nxr}}} = [../../inipar#nx nx] and {{{nyn}}} = [../../inipar#ny ny]. The third index determines the user-defined subdomain. The total model domain carries the index ''0'', the user-defined subdomains have the values ''1'' to ''9''.\\\\
    99The following example should illustrate this. Two subdomains are defined by the user. The first is determined by all grid points which lie within a circle whose center is equal to the (horizontal) center of the model domain and whose diameter is equal to half of the total horizontal domain size (square total domain assumed). The second subdomain should be defined by all points outside of this domain. This may be obtained by the following lines of code in [..\int#user_init user_init]:
    1010{{{