|
|
Via the terminal
|
|
|
Via the terminal, assuming you have set up a machine-specific public key associated with your GitLab account (https://gitlab.com/profile/keys), also see https://docs.gitlab.com/ee/ssh/README.html.
|
|
|
|
|
|
```{r, engine='bash', count_lines}
|
|
|
Markuss-Air:CPIB pmzmro$ mkdir OpenSimRoot
|
|
|
Markuss-Air:CPIB pmzmro$ cd OpenSimRoot/
|
|
|
Markuss-Air:OpenSimRoot pmzmro$ git init
|
|
|
Initialized empty Git repository in /Users/pmzmro/Documents/CPIB/OpenSimRoot/.git/
|
|
|
Markuss-Air:OpenSimRoot pmzmro$
|
|
|
Markuss-Air:OpenSimRoot pmzmro$ git clone git@gitlab.com:rootmodels/OpenSimRoot.git
|
|
|
Cloning into 'OpenSimRoot'...
|
|
|
remote: Counting objects: 1327, done.
|
|
|
remote: Compressing objects: 100% (19/19), done.
|
|
|
remote: Total 1327 (delta 7), reused 0 (delta 0)
|
|
|
Receiving objects: 100% (1327/1327), 1.99 MiB | 1.43 MiB/s, done.
|
|
|
Resolving deltas: 100% (849/849), done.
|
|
|
Checking connectivity... done.
|
|
|
```
|
|
|
|
|
|
This creates a directory called OpenSimRoot (so you don't actually need an empty directory to clone into). To build OpenSimRoot, navigate to OpenSimRoot/StaticBuild/ and execute "make":
|
|
|
|
|
|
```
|
|
|
Markuss-Air:OpenSimRoot pmzmro$ ls
|
|
|
OpenSimRoot
|
|
|
Markuss-Air:OpenSimRoot pmzmro$ cd OpenSimRoot/
|
|
|
Markuss-Air:OpenSimRoot pmzmro$ ls
|
|
|
LICENSE executeBeforeCommitToTest.sh
|
|
|
OpenSimRoot public
|
|
|
README.md runTests.sh
|
|
|
build.sh runTestsEngine.sh
|
|
|
cleanup.sh runTestsModules.sh
|
|
|
Markuss-Air:OpenSimRoot pmzmro$ pwd
|
|
|
/Users/pmzmro/Documents/CPIB/OpenSimRoot/OpenSimRoot
|
|
|
Markuss-Air:OpenSimRoot pmzmro$ cd OpenSimRoot/
|
|
|
Markuss-Air:OpenSimRoot pmzmro$ ls
|
|
|
StaticBuild scripts src tests
|
|
|
Markuss-Air:OpenSimRoot pmzmro$ ls scripts/
|
|
|
plot vtk2jpg.py
|
|
|
Markuss-Air:OpenSimRoot pmzmro$ ls src/
|
|
|
cli engine export import math modules tools
|
|
|
Markuss-Air:OpenSimRoot pmzmro$ cd StaticBuild/
|
|
|
Markuss-Air:StaticBuild pmzmro$ ls
|
|
|
StaticBuild objects.mk sources.mk
|
|
|
makefile readme.txt src
|
|
|
Markuss-Air:StaticBuild pmzmro$ less readme.txt
|
|
|
Markuss-Air:StaticBuild pmzmro$ make
|
|
|
Building file: ../src/tools/StringExtensions.cpp
|
|
|
Invoking: GCC C++ Compiler
|
|
|
g++ -std=c++1y -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/tools/StringExtensions.d" -MT"src/tools/StringExtensions.o" -o "src/tools/StringExtensions.o" "../src/tools/StringExtensions.cpp"
|
|
|
Finished building: ../src/tools/StringExtensions.cpp
|
|
|
...
|
|
|
Finished building target: OpenSimRoot
|
|
|
```
|
|
|
|
|
|
This creates the executable "OpenSimRoot" in the StaticBuild directory:
|
|
|
|
|
|
```
|
|
|
Markuss-Air:StaticBuild pmzmro$ ./OpenSimRoot -h
|
|
|
Usage: OpenSimRoot [OPTIONS] [FILE]
|
|
|
OpenSimRoot simulates a model defined in FILE
|
|
|
|
|
|
-f, --file specify simulation file, default last argument
|
|
|
-h, --help or /? print this help message
|
|
|
-v be verbose with warnings
|
|
|
-q be quite with warnings
|
|
|
-l, --list print list of registered functions
|
|
|
-V, --verify Experimental function for verifying input files
|
|
|
|
|
|
Examples:
|
|
|
OpenSimRoot -h Prints this message
|
|
|
OpenSimRoot runModel.xml Runs the SimRoot model
|
|
|
|
|
|
Support at j.postma@fz-juelich.de
|
|
|
Licensed to you under the GPLv3 license.
|
|
|
|
|
|
There are no warnings.
|
|
|
Simulation took (hours:minutes:seconds): 0:0:0
|
|
|
``` |
|
|
\ No newline at end of file |