Skip to content
Snippets Groups Projects
Commit 8a74ea1f authored by jonathan.froehlich's avatar jonathan.froehlich
Browse files

Updated installation

parent 2afddb2e
No related tags found
No related merge requests found
Pipeline #125097 failed
......@@ -10,20 +10,4 @@ include_directories(zlib)
add_subdirectory(zlib)
include_directories(openCARP)
add_subdirectory(openCARP)
if(BUILD_EXAMPLES)
# install carputils
install(DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/external/carputils"
DESTINATION share COMPONENT carputils
USE_SOURCE_PERMISSIONS
PATTERN ".*" EXCLUDE
)
# install openCARP examples
install(DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/external/tutorials"
DESTINATION share COMPONENT examples
USE_SOURCE_PERMISSIONS
PATTERN ".*" EXCLUDE
)
endif()
\ No newline at end of file
add_subdirectory(openCARP)
\ No newline at end of file
To install the openCARP codewithin M++, run the following commands:
### Installation
Make sure to install crucial packages on your machine:
```sudo apt-get install gengetopt```
### Downloading submodules:
The submodules used in openCARP have to be updated manually, as the repositories have a respectable file size.
They are updated with the following commands:
```
git -c submodule."opencarp/petsc".update=checkout submodule update --init --recursive
git -c submodule."opencarp/openCARP".update=checkout submodule update --init --recursive
```
### Installing PetSc
To install petsc, the following command should work:
```
cd petsc
./configure --prefix=../include/petsc --download-mpich --download-fblaslapack --download-metis --download-parmetis --download-hypre
make all
make install
```
### Installing openCARP
Make sure you are in the top-level `opencarp` again. Then run
```
cmake -S. -B_build -DDLOPEN=ON -DBUILD_EXTERNAL=ON -DCMAKE_BUILD_TYPE=Release
cd _build
make all
```
Now all code files are generated in the `openCARP` folder.
The compiled code can now be found in `_build/openCARP/bin`
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment