You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The submodule is not checked out during a normal git clone. Thus, we do it this way.
17
-
#### 3. Move to build directory
19
+
20
+
### 3. Move to build directory
18
21
> mkdir -p build
19
22
20
23
> cd build
21
24
22
25
We will use a subfolder within the project root as a build directory. Of course this can be changed to another directory.
23
-
#### 4. Run cmake
26
+
27
+
### 4. Run cmake
24
28
> cmake ..
25
29
26
30
This command will both configure the project as well as build SG++.
27
31
Note that with this setup SG++ will only be built when the cmake command is called.
28
32
Thus, if the SG++ submodule itself is set to another commit, the cmake command needs to be run again.
29
33
30
-
####5. Run make
34
+
### 5. Run make
31
35
> make
32
36
33
37
This command will build the actual example application. It will not build SG++ again in order to save compilation time.
34
38
35
-
## How to modify the build
39
+
## How to modify the SG++ build
36
40
The SG++ version used can simply be changed by going to the (checked out) submodule folder external_dependencies/SGpp and changing the commit there as one would in a normal git repository.
37
41
38
42
Most likely you want to change the configuration used by SG++, for example by deactivating modules you do not need or by activating a wrapper for another language like Python.
@@ -43,9 +47,9 @@ To deactivate a module, edit the scons command, which is called in the CMakelist
43
47
To see all ways to configure scons for SG++, go to the (checked out) submodule directory and run
44
48
> scons -h
45
49
46
-
or visit [SG++ Github page](https://github.com/SGpp/SGpp) for more information.
50
+
or visit the [SG++ Github page](https://github.com/SGpp/SGpp) for more information.
47
51
48
52
49
53
## About the utilized example
50
54
The application itself shows how to integrate functions in SG++, using both direct integration of a sparse grid function and the use of Monte Carlo integration.
51
-
It is heavily based on the SG++ example [quadrature.cpp](https://github.com/SGpp/SGpp/blob/master/base/examples/quadrature.cpp). However, unlike the quadrature example alone, this repository further shows how to build your own projects utilizing SG++.
55
+
It is heavily based on the SG++ example [quadrature.cpp](https://github.com/SGpp/SGpp/blob/master/base/examples/quadrature.cpp). However, unlike the quadrature example alone, this repository further shows how to build your own projects utilizing SG++.
0 commit comments