Changeset 212 for palm/trunk/DOC/app/chapter_3.5.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.5.html
r62 r212 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2 2 <html><head> 3 <meta http-equiv="CONTENT-TYPE" content="text/html; charset=windows-1252"><title>PALM 4 chapter 3.5.5</title> <meta name="GENERATOR" content="StarOffice 7 (Win32)"> <meta name="AUTHOR" content="Siegfried Raasch"> <meta name="CREATED" content="20040802;14050943"> <meta name="CHANGED" content="20041117;12180008"> <meta name="KEYWORDS" content="parallel LES model"> <style> 3 <meta http-equiv="CONTENT-TYPE" content="text/html; charset=windows-1252"><title>PALM chapter 3.5.5</title> <meta name="GENERATOR" content="StarOffice 7 (Win32)"> <meta name="AUTHOR" content="Siegfried Raasch"> <meta name="CREATED" content="20040802;14050943"> <meta name="CHANGED" content="20041117;12180008"> <meta name="KEYWORDS" content="parallel LES model"> <style> 5 4 <!-- 6 5 @page { size: 21cm 29.7cm } … … 12 11 </font></h3><p style="line-height: 100%;">Users 13 12 can add their own (modified) user-interface to a PALM-run by carrying 14 out the following steps:</p><ol><li>Copy the default15 (empty) user-interface (file<span style="font-family: Courier New,Courier,monospace;">16 user_ interface.f90</span>)to a directory of your choice, e.g.:<br><br><span style="font-family: Courier New,Courier,monospace;"> 13 out the following steps:</p><ol><li>Copy the appropriate default 14 (empty) user-interface files<span style="font-family: Courier New,Courier,monospace;"> 15 user_***.f90</span> to a directory of your choice, e.g.:<br><br><span style="font-family: Courier New,Courier,monospace;"> 17 16 cd ~/palm/current_version</span><br style="font-family: Courier New,Courier,monospace;"><span style="font-family: Courier New,Courier,monospace;"> 18 17 mkdir -p USER_CODE/example</span><br style="font-family: Courier New,Courier,monospace;"><span style="font-family: Courier New,Courier,monospace;"> 19 cp trunk/SOURCE/user_ interface.f90 20 USER_CODE/example /user_example.f90</span><br></li><li>Set18 cp trunk/SOURCE/user_***.f90 19 USER_CODE/example<br><br><span style="font-family: Times New Roman,Times,serif; font-weight: bold;">Attention: do not change the filenames!</span><br></span><br></li><li>Set 21 20 an additional path in the configuration file<span style="font-family: Courier New,Courier,monospace;"> 22 21 .mrun.config </span>to allow <span style="font-weight: bold;">mrun 23 </span>to find and include th is file:<br><br><span style="font-family: Courier New,Courier,monospace;"> 22 </span>to find and include these files:<br><br><span style="font-family: Courier New,Courier,monospace;"> 24 23 %add_source_path 25 24 $base_directory/USER_CODE/$fname</span><br><br>The 26 25 default configuration file (<span style="font-family: Courier New,Courier,monospace;">trunk/SCRIPTS/.mrun.config.default</span>) 27 already includes this setting.< /li><li>Modify the interface28 routines according to your needs.< /li><li>Start a PALM run26 already includes this setting.<br></li><li>Modify the interface 27 routines according to your needs.<br></li><li>Start a PALM run 29 28 by executing<br><br><span style="font-family: Courier New,Courier,monospace;"> 30 mrun -d example ...</span><br><br>The file <span style="font-family: Courier New,Courier,monospace;">31 user_ example.f90 </span>will be automatically compiled within32 the job and will replace PALM‘s default user-interface.<br></li></ol>The29 mrun -d example ...</span><br><br>The files<span style="font-family: Courier New,Courier,monospace;"> 30 user_***.f90 </span>will be automatically compiled within 31 the job and will replace the respective PALM‘s default user-interface routines.<br></li></ol>The 33 32 above method with including<span style="font-family: Courier New,Courier,monospace;"> $fname </span>in 34 33 the additional source path allows to use different user-interfaces for … … 39 38 “<span style="font-family: Courier New,Courier,monospace;">-d 40 39 abcd</span>“, “<span style="font-family: Courier New,Courier,monospace;">-d cdef</span>“, 41 etc.<br><br><span style="font-weight: bold;">The 42 modified user-interface file cannot be pre-compiled by using mbuild!</span><br><br>While 40 etc.<br><br>If the user wants to add additional routines, he/she can a) put them into the default user-interface file <span style="font-family: Courier New,Courier,monospace;">user_additional_routines.f90</span> 41 or b) can create new files in the additional source directory. These 42 files must have names different from the default PALM source code 43 files. In case of b), the user must also copy the default makefile into 44 the additional source directory:<br><br><span style="font-family: Courier New,Courier,monospace;"> cp trunk/SOURCE/Makefile 45 USER_CODE/example</span><br><br>The makefile must be modified appropriately followinf the "make"-rules in order to allow the new files to be compiled.<br><br><span style="font-weight: bold;">The 46 modified user-interface files cannot be pre-compiled by using mbuild!</span><br><br>While 43 47 programming user-defined code, 44 48 errors are frequently made. Possible ways of error
Note: See TracChangeset
for help on using the changeset viewer.