Difference between revisions of "Compiling SCHISM on Windows"
Schismguest (talk | contribs) |
Schismguest (talk | contribs) |
||
| Line 25: | Line 25: | ||
<LI> Current SCHSIM cmake system doesn't work very well on Windows, I have seen TVD_LIM preprocessor was not set correctly in the resulting project. To make the project compiled, in the solution explorer of MS Visual Studio, right click project ''hydro to show property pages, go to ''Fortran->''Preprocessor->''Preprocessor Definitions to make sure you have the correct TVD_LIM defined, For instance "TVD_SB" if you choose SB option for TVD_LIM. | <LI> Current SCHSIM cmake system doesn't work very well on Windows, I have seen TVD_LIM preprocessor was not set correctly in the resulting project. To make the project compiled, in the solution explorer of MS Visual Studio, right click project ''hydro to show property pages, go to ''Fortran->''Preprocessor->''Preprocessor Definitions to make sure you have the correct TVD_LIM defined, For instance "TVD_SB" if you choose SB option for TVD_LIM. | ||
| − | Also,I found third party lib path for the project '' | + | Also,I found third party lib path for the project 'pschsim' has to be adjust manually in Visual Studio. |
</UL> | </UL> | ||
Revision as of 13:44, 19 July 2018
Here are the tools and libraries I used to build parallel SCHSIM on Windows
- MS Visual Studio 2010
- MS HPC package 2008, which can be downloaded at here
- Intel Compiler
- SVN 1.6.16
- CMAKE 3.02
- Prebuild third party libs, which are here here This zip file contains HDF5,netCDF4 and parmetis.
Here are the steps to build it
- Edit the CMAKE Windows cache file in SCHSIM source code\cmake\SCHSIM.local.cmake.win. You may turn on/off extra modules in this file, and you must set TVD_LIM option to build hydro. You also need to edit the location of third party libs. Here is a example File:SCHSIM.local.cmake.win.txt
- Create a directory for SCHSIM build, say v5.6.1_build. Start Windows cmd from this folder, type the command line below to generate
MS Visual Studio 2010 project.
-
"cmake -C ..\v5.6.1\cmake\SCHISM.local.cmake.win -DCMAKE_BUILD_TYPE:STRING=Release -G"Visual Studio 10 Win64" --build . Z:\schism\v5.6.1\src"
- Current SCHSIM cmake system doesn't work very well on Windows, I have seen TVD_LIM preprocessor was not set correctly in the resulting project. To make the project compiled, in the solution explorer of MS Visual Studio, right click project hydro to show property pages, go to Fortran->Preprocessor->Preprocessor Definitions to make sure you have the correct TVD_LIM defined, For instance "TVD_SB" if you choose SB option for TVD_LIM. Also,I found third party lib path for the project 'pschsim' has to be adjust manually in Visual Studio.