Commit 303287b2 authored by Knut's avatar Knut

Merge remote-tracking branch 'origin/master' into output

parents 3ea70306 f0570014
@rem Script to build the getm executable uing CMake
@set old=%cd%
@echo Build directory:
@if "%build_dir%"=="" ( @set build_dir=%TEMP%\build\getm ) else ( @echo build_dir is set )
@echo %build_dir%
@chdir "%build_dir%"
@echo Default Fortran compiler is ifort
@set compiler=ifort
@echo Ready to build/compile:
@FOR %%c IN (Cartesian Spherical Curvilinear) DO (
@chdir "%%c"
@rem cmake --build . --clean-first --config Release --target INSTALL
@cmake --build . --config Release --target INSTALL
@chdir ..\
)
@pause
@chdir %old%
@rem Script to configure the getm executable uing CMake
@set old=%cd%
@rem echo %old%
@echo Build directory:
@if "%build_dir%"=="" ( @set build_dir=%TEMP%\build\getm ) else ( @echo build_dir is set )
@echo %build_dir%
@if not EXIST "%build_dir%\." ( @mkdir "%build_dir%" )
@chdir "%build_dir%"
@echo Base directories:
@set GETM_BASE=%USERPROFILE%\Documents\GETM\code
@set GOTM_BASE=%USERPROFILE%\Documents\GOTM\code
@set FABM_BASE=%USERPROFILE%\Documents\FABM\code
@echo %GETM_BASE%
@echo %GOTM_BASE%
@echo %FABM_BASE%
@echo Default Fortran compiler is ifort
@set compiler=ifort
@echo Install directory:
@set install_prefix=%APPDATA%\getm
@echo %install_prefix%
@echo Ready to configure:
FOR %%c IN (Cartesian Spherical Curvilinear) DO (
@IF NOT EXIST "%%c\." ( mkdir "%%c" )
@chdir "%%c"
cmake "%GETM_BASE%\src" ^
-DGETM_EMBED_VERSION=on ^
-DGOTM_BASE="%GOTM_BASE%" ^
-DGETM_USE_FABM=on ^
-DFABM_BASE="%FABM_BASE%" ^
-DCMAKE_Fortran_COMPILER=%compiler% ^
-DGETM_USE_PARALLEL=off ^
-DGETM_COORDINATE_TYPE=%%c ^
-DCMAKE_INSTALL_PREFIX="%install_prefix%"
@chdir ..\
)
@pause
@chdir %old%
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment