This project builds LIS and uses it from a small Fortran program.
linearSolver
|-- build.bat Builds the complete project
|-- Makefile Compiles and links the Fortran program
|-- ext
| |-- build_ext.bat Builds all external libraries
| `-- lis
| |-- build_lis.bat Builds LIS
| `-- ... LIS source code
|-- src\main.F90 Fortran test program
`-- build Generated when the project is built
|-- obj Intermediate compiler files
`-- bin Executable
Open Command Prompt in the main project folder and run:
build.batThe main build script:
- Builds the external libraries.
- Calls
nmakeusing the rootMakefile. - The Makefile compiles
src\main.F90and links it with LIS.
If ext\lis\win\lis.lib already exists, LIS is not rebuilt. Delete that file
before running build.bat if you want to force a new LIS build.
After building, run:
build\bin\lis_test.exeThe last line should be:
LIS smoke test passed.