... | @@ -16,7 +16,7 @@ Below we provide examples of the compilation process on selected systems. |
... | @@ -16,7 +16,7 @@ Below we provide examples of the compilation process on selected systems. |
|
```bash
|
|
```bash
|
|
module load cmake
|
|
module load cmake
|
|
|
|
|
|
cd cold-atoms/lib-wdata/
|
|
cd wslda/lib-wdata/
|
|
g++ -O3 -c wdata.c -fPIC
|
|
g++ -O3 -c wdata.c -fPIC
|
|
ar crf libwdata.a wdata.o
|
|
ar crf libwdata.a wdata.o
|
|
cp libwdata.a visit-plugin/
|
|
cp libwdata.a visit-plugin/
|
... | @@ -44,7 +44,7 @@ Next execute on `daint101.cscs.ch`: |
... | @@ -44,7 +44,7 @@ Next execute on `daint101.cscs.ch`: |
|
module load daint-mc
|
|
module load daint-mc
|
|
module load Visit
|
|
module load Visit
|
|
|
|
|
|
cd cold-atoms/lib-wdata
|
|
cd wslda/lib-wdata
|
|
make
|
|
make
|
|
cp libwdata.a visit-plugin/
|
|
cp libwdata.a visit-plugin/
|
|
|
|
|
... | @@ -55,31 +55,37 @@ cmake -DCMAKE_BUILD_TYPE:STRING=Debug |
... | @@ -55,31 +55,37 @@ cmake -DCMAKE_BUILD_TYPE:STRING=Debug |
|
make
|
|
make
|
|
```
|
|
```
|
|
|
|
|
|
# Setting host files
|
|
# Opening file
|
|
|
|
When opening the file you need to select metadata file of W-DATA format, i.e file `*.wtxt`. Example is shown below.
|
|
|
|
![visit_open](uploads/0f29f39aac59e8df4c7b1289b6169243/visit_open.png)
|
|
|
|
|
|
After first start of VisIt it will create folder with settings. In case of linux system it is hidden folder `.visit` in your home directory. Copy to this folder files with configurations of [hosts](https://gitlab.fizyka.pw.edu.pl/gabrielw/wslda/-/tree/public/lib-wdata/visit-plugin/hosts):
|
|
Expand list of `Open file as type` in order to check is `wdata` plugin is installed.
|
|
```bash
|
|
*Note*: When you select `*.wtxt` file and click open VisIt should automatically use `wdata` plugin, as it is by default assigned to `wtxt` file extension.
|
|
[gabrielw@dell MyProjects]$ cd cold-atoms/lib-wdata/visit-plugin/
|
|
|
|
[gabrielw@dell visit-plugin]$ cp -r hosts/ ~/.visit/
|
|
|
|
[gabrielw@dell visit-plugin]$ ls ~/.visit/hosts/
|
|
|
|
host_dwarf66.xml host_rhea.xml
|
|
|
|
```
|
|
|
|
Edit xml file (with text editor) and set correct user name for target machine (if `userName=notset` then VisIt will use your local account user name):
|
|
|
|
```xml
|
|
|
|
<Field name="userName" type="string">notset</Field>
|
|
|
|
```
|
|
|
|
|
|
|
|
Having these files you should be able to connect to remote servers:
|
|
# Example plot
|
|
![visit](http://git2.if.pw.edu.pl/gabrielw/cold-atoms/uploads/e5ab355bdee659f10416bc0d71c3d8ed/visit.png)
|
|
Here you can download sample data here: [example-vortices.tar.gz](uploads/8d4c79e5eee8bae0636514fc9046c2b0/example-vortices.tar.gz)
|
|
|
|
|
|
To check if VisIt works correctly, try to open example data:
|
|
To check if VisIt works correctly, try to open example data:
|
|
1. File -> Open File
|
|
1. File -> Open File
|
|
2. Select as host: `dwarf66` (you will be asked for password)
|
|
3. Select wtxt file. As example you can use `run1c.wtxt` from sample data set.
|
|
3. Select file: `/home2/archive/visit/example-vortices/run1c.wtxt`
|
|
|
|
4. In `Plots` section: Add -> Pseudocolor -> `delta_abs`
|
|
4. In `Plots` section: Add -> Pseudocolor -> `delta_abs`
|
|
5. Click `Draw`. You should see:
|
|
5. Click `Draw`. In case of sample data you should see:
|
|
|
|
|
|
|
|
![exampleplot](uploads/4457298e49b90ecb5348cb79a0213bc5/exampleplot.png)
|
|
|
|
|
|
|
|
# Working in client-server mode
|
|
|
|
VisIt allows for connecting with remote servers and use them for data visualization and data analysis. In order to be able to work in client-server mode you need:
|
|
|
|
1. Install visit on remote system.
|
|
|
|
2. Install W-DATA plugin on remote system.
|
|
|
|
3. Create XML host file and store it on local computer (client).
|
|
|
|
|
|
|
|
After first usage of VisIt it will create folder with settings. In case of linux system it is hidden folder `.visit` in your home directory. In this folder you need to place appropriate host file. Examples of such files are provided in [hosts](https://gitlab.fizyka.pw.edu.pl/gabrielw/wslda/-/tree/public/lib-wdata/visit-plugin/hosts) folder:
|
|
|
|
You can also create a host file by using in VisIt: `Options->Host files`.
|
|
|
|
|
|
|
|
When a host file is provided to visit, assign to it server should be visible on the list of hosts in `Open file` dialog box:
|
|
|
|
![visit](uploads/1d58191b1d60e25821821d8b7c187974/visit.png)
|
|
|
|
|
|
|
|
|
|
![exampleplot](http://git2.if.pw.edu.pl/gabrielw/cold-atoms/uploads/0b80ee3750d7eee8dede4eaace7ca772/exampleplot.png)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|