190 likes | 255 Views
Upgrade to last version of Compaq Visual Fortran. 13-10-04: 6.6c Upgrade patches from 6.5 to 6.6c are in \copernicoFileServersoftwareFortranPatches. Create Mohid_V4.0 workspace. Open the Developer Studio Select File... New Select Workspaces tab Create a blank workspace.
E N D
Upgrade to last version of Compaq Visual Fortran • 13-10-04: 6.6c • Upgrade patches from 6.5 to 6.6c are in \\copernico\FileServer\software\FortranPatches
Create Mohid_V4.0 workspace • Open the Developer Studio • Select File... New • Select Workspaces tab • Create a blank workspace
HDF library and modules • Get your HDF5 library (Libs) and modules from Source Safe and place them in the folder named Libs
Create Mohid Water project • Select File...New • Select Projects tab • Create a Fortran Console Application. Name it MohidSurfaceWater.
Mohid Water project settings • Select Project...Settings • Select Fortran tab • Select PreProcessor at the dropdown box • Write the path to the HDF libraries in “INCLUDE and USE” Paths text box • Check “Use FPP” check box 11
Mohid Water project settings • Select Project...Settings • Select Link tab • Select General at the dropdown box • Write kernel32.lib and hdf5.lib at the “Object/library modules” text box
Mohid Water project settings • Select Project...Settings • Select Link tab • Select Input at the dropdown box • Write the path to the HDF libraries “Additional library path” text box
Mohid modules files • Get Mohid files from Source Safe and add them to the project. To add to the project right-click the Source Files folder and select Add Files to Folder
All projects settings (obligatory) • Select Project...Settings • Select Fortran tab • Select Compilation Diagnostics at the dropdown box • Select all check boxes at the list (Argument Mismatch, Data Alignment,...) • Select Fortran95 at the Fortran Standards Checking
All projects settings • Select Tools...Options • Select Tabs tab • Select Fortran at the dropdown box • Select “Insert spaces” radio button
Note • There are several modules that must be deleted from the project • but not from the windows explorer. These files are INCLUDE files, • which means they must be placed in the same folder as the rest of • source code files. • mpif.f90 • GOTMVariables_in.f90 • GOTMVariables_out.f90
Debug, Release or MPI Specifications Project...Settings...Fortran...Preprocessor.... e.g. Para MohidWater D:\Projectos\Mohid_v4\Libs;
Mohid Water MPI project settings • Select Build...Configurations • Add a new Project Configuration named MPI in each project present in the workspace
Mohid Water MPI project settings • After performing all the previous settings • Select Project...Settings • Select Fortran tab • Select PreProcessor in the dropdown box • Write in the Predefined Preprocessor Symbols the keywords :_USE_MPI
Mohid Water MPI project settings • Select Project...Settings • Select Link tab • Select General at the dropdown box • Add mpich.Lib at the “Object/library modules” text box
Mohid Water project MPI settings • Select Project...Settings • Select Link tab • Select Input at the dropdown box • Verify the path to the where the mpich.lib is placed in “Additional library path” text box
[keyword1], [keyword2], ... Mohid Water optional compilation project settings • After performing all the previous settings • Select Project...Settings • Select Fortran tab • Select PreProcessor in the dropdown box • Write in the Predefined Preprocessor Symbols the keywords of modules to exclude from build. _LAGRANGIAN_ => excludes Modules Lagrangian + Jet + Oil _AIR_ => excludes Modules InterfaceWaterAir + Atmosphere _WAVES_ => excludes Module Waves _SEDIMENT => excludes Modules SedimentProperties + Consolidation KEYWORDS
Mohid Water optional compilation project settings • After performing all the previous settings • Select in the project tree Source Files, right-click and select Settings • Select General tabs • Select the modules that you wish to exclude from build • Check the “Exclude file from build” • Press OK