180 likes | 200 Views
Create Mohid_V4.0 and MohidBase1.lib and MohidBase2.lib as in MohidSurfaceWater. SourceSafeMohid_v4TextsSetupWorkspace: How to set up a MOHID project.ppt. Create Mohid Land project. Select File...New Select Projects tab Create a Fortran Console Application. Name it MohidLand.
E N D
Create Mohid_V4.0 and MohidBase1.lib and MohidBase2.lib as in MohidSurfaceWater SourceSafe\Mohid_v4\Texts\SetupWorkspace: How to set up a MOHID project.ppt
Create Mohid Land project • Select File...New • Select Projects tab • Create a Fortran Console Application. Name it MohidLand.
Mohid Land project dependencies • Select Project...Dependencies • Select MohidBase1 and MohidBase2 check boxes
Mohid Land – MohidBase3 settings • Select SourceFiles folder in MohidLand project • Click the mouse’s right button • Select New Folder and name it MohidBase3
Mohid Land – Add files • Add files to the respective folders, by right clicking the mouse.
Mohid Land 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 Land 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
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
MohidLand is a Double Precision Project!! • At the moment, MohidLand needs to be build with Double Precision settings. • If no other projects are included in your workspace you can simply select MohidBase1, MohidBase2 and MohidLand in Project... Settings: • Select Fortran tab • Select Fortran data in dropdown box • Default Real Kind = 8 • If other projects are included in the workspace that don’t need to be built in Double Precision (like MohidSurfaceWater) follow the next slides.
Create MohidBase1 W32 Debug Double configuration • Select Build... Configurations • Add • Name it “Debug Double” and select “Copy settings from MohidBase1 - Win32 Debug”
Create MohidBase2 W32 Debug Double configuration • Select Build... Configurations • Add • Name it “Debug Double” and select “Copy settings from MohidBase2 - Win32 Debug”
Base1 and Base2 W32 Debug Double Settings • Select Project...Settings • Select Win32 Debug Double at the left-upper dropdownbox • Select both MohidBase1 and MohidBase2 projects • Select Fortran tab • Select Fortran Data at the dropdown box • Select Default Real Kind = 8
MohidBase2 W32 Debug Double Settings • Select Project...Settings • Select Win32 Debug Double at the left-upper dropdownbox • Select MohidBase2 project • Select Fortran tab • Select Preprocessor at the dropdown box • Write the path to the MohidBase1.lib in W32 Debug Double configuration. Hint: The path to MohidBase1.lib in W32 Debug Double configuration can be copied from Windows Explorer: ..MohidBase1\MohidBase1___Win32_Debug_Double
MohidLand Settings • Select Project...Settings • Select Win32 Debug at the left-upper dropdownbox • Select MohidLand project • Select Fortran tab • Select Preprocessor at the dropdown box • Write the path to the MohidBase1.lib and MohidBase2.lib in W32 Debug Double configuration. Hint: The path to MohidBase1.lib in W32 Debug Double configuration can be copied from Windows Explorer: ..MohidBase1\MohidBase1___Win32_Debug_Double
Build MohidBase1 – Win32 Debug Double • Select Project ... Set Active Project ... MohidBase1 • Select Win32 Debug Double Configuration from the Dropdown box. • Select Build... Build MohidBase1.lib
Build MohidBase2 – Win32 Debug Double • Select Project ... Set Active Project ... MohidBase2 • Select Win32 Debug Double Configuration from the Dropdown box. • Select Build... Build MohidBase2.lib
Build MohidLand • Select Project ... Set Active Project ... MohidLand • Select Win32 Debug Configuration from the Dropdown box. • Select Build... Build MohidLand.exe