<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.wiki.mohid.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=145.1.198.57&amp;*</id>
		<title>MohidWiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.wiki.mohid.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=145.1.198.57&amp;*"/>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Special:Contributions/145.1.198.57"/>
		<updated>2026-04-05T00:42:16Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Compiling_with_IFC&amp;diff=128</id>
		<title>Compiling with IFC</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Compiling_with_IFC&amp;diff=128"/>
				<updated>2008-10-24T07:04:49Z</updated>
		
		<summary type="html">&lt;p&gt;145.1.198.57: /* Release and Debug settings */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Please follow these instructions step by step and until the end:&lt;br /&gt;
&lt;br /&gt;
== Creating a new project ==&lt;br /&gt;
#Make sure you have installed in your computer Microsoft Visual Studio .NET 2003 and Intel Fortran Compiler 9.0. If you don’t have both installed, please install them&lt;br /&gt;
#Open Microsoft Visual Studio .NET 2003. &lt;br /&gt;
#Select '''&amp;quot;New Project&amp;quot;'''. &lt;br /&gt;
#Select Intel® FORTRAN Projects and then '''&amp;quot;Console Application&amp;quot;''' (Figure 12). Call the project, for example, &amp;quot;MohidWater&amp;quot;. Click OK.&lt;br /&gt;
#A window appears. Select option '''&amp;quot;Empty project&amp;quot;'''. Click OK.&lt;br /&gt;
#An empty project is created. Get all FORTRAN code files from SourceSafe and add them to the project. Right-click in the Source Files folder (in the project tree), and select &amp;quot;Add...Add Existing Item...&amp;quot;. Add all the files containing the [[modules]].&lt;br /&gt;
&lt;br /&gt;
== Release and Debug settings ==&lt;br /&gt;
Please follow the steps below and set them EXACTLY as they are presented. Do not make additional changes in the settings unless you’re testing some optimizations. Note that settings under &amp;quot;Debug&amp;quot; and &amp;quot;Release&amp;quot; configurations are slightly different. You can select &amp;quot;Release&amp;quot; configuration and apply this settings first and then do the same for &amp;quot;Debug&amp;quot; configuration or select &amp;quot;All configurations&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
#Now select &amp;quot;Project...Properties&amp;quot; and start editing your compilation settings.&lt;br /&gt;
#In &amp;quot;Fortran...General&amp;quot;, define the path to the folder where the HDF5 libraries will be placed, in the &amp;quot;Additional Include Directories&amp;quot; text box. Also set &amp;quot;Optimization&amp;quot; to '''&amp;quot;Maximize Speed plus Higher Level Optimizations&amp;quot;'''.&lt;br /&gt;
#In &amp;quot;Fortran...Optimization&amp;quot; define &amp;quot;I/O Buffering&amp;quot; to '''Yes''', and if you have an Intel Pentium 4 (R) processor, set &amp;quot;Use Intel(R) Processor Extensions&amp;quot; and set '''&amp;quot;Intel Pentium 4 (R) and compatible Intel processors&amp;quot;'''. Also set &amp;quot;Require Intel(R) Processor Extensions&amp;quot; to '''&amp;quot;Intel Pentium 4 (R) and compatible Intel processors&amp;quot;'''.&lt;br /&gt;
#In &amp;quot;Fortran...Preprocessor&amp;quot; set &amp;quot;Preprocessor Source File&amp;quot; to '''Yes''' and define again, in the Additional Include Directories text box, the path to the folder where the HDF5 libraries will be placed.&lt;br /&gt;
#In &amp;quot;Fortran...Language&amp;quot;, set the &amp;quot;Fixed Form Line Length&amp;quot; to '''&amp;quot;132 columns&amp;quot;'''&lt;br /&gt;
#In &amp;quot;Fortran...Diagnostics&amp;quot;, set &amp;quot;Warn For Non-Standard Fortran&amp;quot; to '''&amp;quot;Fortran 95&amp;quot;'''. Also, set the &amp;quot;Warn For Undeclared Symbols&amp;quot; to '''&amp;quot;Yes&amp;quot;''', &amp;quot;Warn For Unused Variables&amp;quot; to '''&amp;quot;Yes&amp;quot;''' and &amp;quot;Warn When Truncating Source Code Line&amp;quot; to '''&amp;quot;Yes&amp;quot;'''.&lt;br /&gt;
#In &amp;quot;Linker...General&amp;quot;, set &amp;quot;Enable Incremental Link&amp;quot; to '''&amp;quot;No&amp;quot;''' and &amp;quot;Supress Startup Banner&amp;quot; to '''&amp;quot;Yes&amp;quot;'''. Again in the Additional Include Directories text box, the path to the folder where the HDF5 libraries will be placed.&lt;br /&gt;
#Get the HDF5 libraries from SourceSafe, and place them in the folder you’ve specified previously. Note that the Intel compiler use different HDF5 libraries than the Compaq compiler. &lt;br /&gt;
#In &amp;quot;Linker.. Input&amp;quot;, write down the names of the libraries in the &amp;quot;Additional Dependencies&amp;quot; text box. The names are: &lt;br /&gt;
 '''hdf5.lib hdf5_hl.lib hdf5c.lib hdf5f90.lib szlib.lib zlib.lib'''&lt;br /&gt;
&lt;br /&gt;
TO 2005:&lt;br /&gt;
&lt;br /&gt;
 '''hdf5.lib hdf5_f90cstub.lib hdf5_fortran_frank.lib szlib.lib zlib.lib'''&lt;br /&gt;
&lt;br /&gt;
== Specific Debug settings ==&lt;br /&gt;
Select the &amp;quot;Debug&amp;quot; configuration and change the following settings groups:&lt;br /&gt;
#In &amp;quot;Fortran...General&amp;quot;, set &amp;quot;Supress Startup Banner&amp;quot; to '''&amp;quot;Yes&amp;quot;''', &amp;quot;Debug Information Format&amp;quot; to '''&amp;quot;Full&amp;quot;''' and &amp;quot;Optimization&amp;quot; to '''&amp;quot;Disable&amp;quot;'''.&lt;br /&gt;
#In &amp;quot;Fortran...Optimization&amp;quot;, set &amp;quot;Optimization&amp;quot; to '''&amp;quot;Disable&amp;quot;''' and &amp;quot;I/O Buffering&amp;quot; to '''Yes'''.&lt;br /&gt;
&lt;br /&gt;
== Build Solution ==&lt;br /&gt;
#Select &amp;quot;Build...Build Solution&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 '''IMPORTANT NOTE: you must copy &amp;quot;zlib1.dll&amp;quot; which is in the Source Safe folder “IntelLibs”, to'''&lt;br /&gt;
 '''&amp;quot;C:\Windows\system\&amp;quot; in order for the model to run.'''&lt;br /&gt;
&lt;br /&gt;
== Optional compilation settings ==&lt;br /&gt;
#To perform optional compilation, just add the compilation pre-processor keywords in &amp;quot;Properties...Fortran...PreProcessor&amp;quot;, in the &amp;quot;Preprocessor Definitions&amp;quot; text box.&lt;br /&gt;
&lt;br /&gt;
=== Exclude modules ===&lt;br /&gt;
Some modules can be completely excluded from compilation. If your simulations do not use these modules you can use this pre-processor keywords.&lt;br /&gt;
&lt;br /&gt;
 '''_LAGRANGIAN_'''	   excludes Modules Lagrangian + Jet + Oil&lt;br /&gt;
 '''_AIR_'''	           excludes Modules InterfaceWaterAir + Atmosphere&lt;br /&gt;
 '''_WAVES_'''	           excludes Module Waves&lt;br /&gt;
 '''_SEDIMENT_'''	   excludes Modules SedimentProperties + Consolidation&lt;br /&gt;
&lt;br /&gt;
=== Other options ===&lt;br /&gt;
Other keywords can also be used.&lt;br /&gt;
&lt;br /&gt;
 '''_USE_MPI'''           includes MPI code&lt;br /&gt;
 '''_SHORT_LINE_LENGTH''' sets line_length = 64  (default line_length is 256)&lt;br /&gt;
 '''_LONG_LINE_LENGTH'''  sets line_length = 1024(default line_length is 256)&lt;br /&gt;
 '''_GUI_'''              includes GUI code&lt;br /&gt;
&lt;br /&gt;
== Other IFC integrations ==&lt;br /&gt;
&lt;br /&gt;
For .NET Visual Studio 2005, In Linker -&amp;gt; Input -&amp;gt; Ignore Specific Library write down '''libc''' instead of '''libc.lib'''.&lt;br /&gt;
&lt;br /&gt;
[[Category:Programming]]&lt;br /&gt;
[[Category:Compiling]]&lt;/div&gt;</summary>
		<author><name>145.1.198.57</name></author>	</entry>

	</feed>