Skip to content
Snippets Groups Projects
Commit 4964b814 authored by Petr Strakos's avatar Petr Strakos
Browse files

test code text

parent d2d096bc
Branches
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ In situ visualization is a possibility how to visualize your data while your com ...@@ -6,7 +6,7 @@ In situ visualization is a possibility how to visualize your data while your com
To leverage the possibilities of the in situ visualization by Catalyst library, you have to write an adaptor code that will use the actual data from your simulation and process them in the way they can be passed to ParaView for visualization. We provide a simple example of such simulator/adaptor code that bind together to provide the in situ visualization. To leverage the possibilities of the in situ visualization by Catalyst library, you have to write an adaptor code that will use the actual data from your simulation and process them in the way they can be passed to ParaView for visualization. We provide a simple example of such simulator/adaptor code that bind together to provide the in situ visualization.
Detailed description of the Catalyst API can be found [here][catalyst_guide]. We restrict ourselves to provide more of an overall description of the code parts together with building description, and startup description to run it all on the cluster. Detailed description of the Catalyst API can be found [here][catalyst_guide]. We restrict ourselves to provide more of an overall description of the code together with specifications for building, and explanation about how to run the code on the cluster.
## Installed Version ## Installed Version
...@@ -15,7 +15,7 @@ The Catalyst library is part of the ParaView module. More about ParaView can be ...@@ -15,7 +15,7 @@ The Catalyst library is part of the ParaView module. More about ParaView can be
## Usage ## Usage
All code concerning the simulator/adaptor are available to download from [here][code]. It is a package that contains following files: CMakeLists.txt, FEAdaptor.h, FEAdaptor.cxx, FEDataStructures.h, FEDataStructures.cxx, FEDriver.cxx and feslicescript.py. All code concerning the simulator/adaptor are available to download from [here][code]. It is a package with the following files: CMakeLists.txt, FEAdaptor.h, FEAdaptor.cxx, FEDataStructures.h, FEDataStructures.cxx, FEDriver.cxx and feslicescript.py.
First unpack the [code][code]. You can do it by First unpack the [code][code]. You can do it by
...@@ -23,8 +23,7 @@ First unpack the [code][code]. You can do it by ...@@ -23,8 +23,7 @@ First unpack the [code][code]. You can do it by
$ tar xvf package_name $ tar xvf package_name
``` ```
Use CMake to manage the build process but before that load the appropriate modules (CMake, compiler, ParaView) by
Use CMake to manage the build process but first load the appropriate modules (CMake, compiler, ParaView) by
```console ```console
$ ml CMake intel/2017a ParaView/5.6.0-intel-2017a-mpi $ ml CMake intel/2017a ParaView/5.6.0-intel-2017a-mpi
...@@ -37,15 +36,27 @@ $ cmake ../ ...@@ -37,15 +36,27 @@ $ cmake ../
``` ```
Now you can build the simulator/adaptor code using make Now you can build the simulator/adaptor code using make
```console ```console
$ make $ make
``` ```
It will generate the CxxFullExampleAdaptor executable file. This can be later run together with ParaView and provide the in situ visualization. It will generate the CxxFullExampleAdaptor executable file. This can be later run together with ParaView and it will provide the in situ visualization example.
## Code explanation ## Code explanation
Provided example is a simple MPI program. Main executing part is written in FEDriver.cxx. It is a simulator code that creates computational grid
```javascript
#include ahoj.h
int main() {
return 0;
}
```
mpirun -n 2 ./CxxFullExample 30 30 30 ../SampleScripts/feslicescript.py mpirun -n 2 ./CxxFullExample 30 30 30 ../SampleScripts/feslicescript.py
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment