Changeset 212 for palm/trunk/DOC/app/chapter_3.5.html
- Timestamp:
- Nov 11, 2008 9:09:24 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/DOC/app/chapter_3.5.html
r62 r212 16 16 2.0</a> and the technical documentation are usually not 17 17 sufficient 18 and must be supplemented by the rigorous study of the source code of 19 the model. Programming experiences with FORTRAN95 and if necessary 18 and must be supplemented by a rigorous study of the model's source code. Programming experiences with FORTRAN95 and if necessary 20 19 experiences with the parallelization tool MPI are absolutely 21 nec cessary! </p>20 necessary! </p> 22 21 <p style="line-height: 100%;">Changes of the standard 23 22 model code by the … … 43 42 pre-defined names, which must not be changed by the user. Their basic 44 43 versions are a component of the standard model 45 code and they are all included in the source code file46 <tt><font style="font-size: 10pt;" size="2">user_ interface.f90</font></tt><font style="font-size: 10pt;" size="2">.</font>44 code and can be found in the source code files 45 <tt><font style="font-size: 10pt;" size="2">user_***.f90</font></tt><font style="font-size: 10pt;" size="2">.</font> 47 46 <font color="#000000">The</font> basic versions 48 47 accomplish nearly no … … 50 49 user as required. Actions which are already accomplished in these 51 50 basic versions by default should not be changed. Here is an example 52 of such a basic version : </p>51 of such a basic version (file <span style="font-family: Courier New,Courier,monospace;">user_init.f90</span>): </p> 53 52 <p style="line-height: 100%;"> </p> 54 53 <pre style="line-height: 100%;"><font color="#000000"><font style="font-size: 10pt;" size="2">SUBROUTINE user_init</font></font><br><br><font color="#000000"><font style="font-size: 10pt;" size="2">!------------------------------------------------------------------------------</font></font><br><font color="#000000"><font style="font-size: 10pt;" size="2">!</font></font><br><font color="#000000"><font style="font-size: 10pt;" size="2">!</font></font><br><font color="#000000"><font style="font-size: 10pt;" size="2">! Description:</font></font><br><font color="#000000"><font style="font-size: 10pt;" size="2">! -----------</font></font><br><font color="#000000"><font style="font-size: 10pt;" size="2">! Execution of user-defined initializing actions</font></font><br><font color="#000000"><font style="font-size: 10pt;" size="2">!------------------------------------------------------------------------------</font></font><br><font color="#000000"><font style="font-size: 10pt;" size="2">!</font></font><br><br><font color="#000000"> <font style="font-size: 10pt;" size="2">USE control_parameters</font></font><br><font color="#000000"> <font style="font-size: 10pt;" size="2">USE user</font></font><br><br><font color="#000000"> <font style="font-size: 10pt;" size="2">IMPLICIT NONE</font></font><br><br><font color="#000000"><font style="font-size: 10pt;" size="2">!</font></font><br><font color="#000000"><font style="font-size: 10pt;" size="2">!-- Here the user defined initializing actions follow:</font></font><br><br><br><font color="#000000"><font style="font-size: 10pt;" size="2">END SUBROUTINE user_init</font></font></pre><p style="line-height: 100%;">The communication (handling of … … 67 66 appears in the example 68 67 above. This is a 69 user-defined module (it is located at 70 the beginning of the file <tt><font style="font-size: 10pt;" size="2">user_interface.f90</font></tt>) 68 user-defined module (it can be found in file <tt><font style="font-size: 10pt;" size="2">user_module.f90</font></tt>) 71 69 and can be used for communication between the user-defined routines. In 72 70 this module own variables can be declared as desired. It 73 is not used outside of the user code. </p>71 is not used (and should not be used!) outside of the user code. </p> 74 72 <p style="line-height: 100%;">A very typical request of 75 73 users is the … … 79 77 for calculating and output of such quantities (see <a href="chapter_3.5.4.html">3.5.4</a>).</p><p style="line-height: 100%;">As already mentioned, the 80 78 contents of 81 the file <tt><font style="font-size: 10pt;" size="2">user_interface.f90</font></tt> 82 can be used as a basis for extensions. However the file should not be 83 manipulated directly (it is anyway write protected by default), but it 84 should be 85 copied to another file. User write permits for this new file must be 86 declared by means of the unix command <tt><font style="font-size: 10pt;" size="2">chmod</font></tt>. 79 the files <tt><font style="font-size: 10pt;" size="2">user_***.f90</font></tt> 80 can be used as a basis for extensions. However these files should not be 81 manipulated directly. Instead, a copy should be used. 87 82 </p> 88 83 <p style="line-height: 100%;">The following sections
Note: See TracChangeset
for help on using the changeset viewer.