Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • wslda wslda
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • wtools
  • wsldawslda
  • Wiki
  • Integration with VisIt

Integration with VisIt · Changes

Page history
Create Integration with VisIt authored Dec 10, 2020 by Gabriel Wlazłowski's avatar Gabriel Wlazłowski
Show whitespace changes
Inline Side-by-side
Integration-with-VisIt.md 0 → 100644
View page @ 3023e255
# VisIt
Download and install [VisIt, version 3.1.x or 2.13.x](https://wci.llnl.gov/simulation/computer-codes/visit/executables).
In order to be able to visualize results produced by W-SLDA Toolkit you need to compile the plugin.
The plugin must be placed on a system where VisIt server will be launched.
[Video tutorial (YouTube)](https://youtu.be/K00h3sMbV-Q) showing how to install VisIt and connect it with a remote machine.
# Installing W-data plugin on your local system
Follow instruction from this [file](https://gitlab.fizyka.pw.edu.pl/gabrielw/wslda/-/tree/public/lib-wdata/visit-plugin/README.txt).
Below we provide examples of the compilation process on selected systems.
## Compiling plugin on [Andes](https://docs.olcf.ornl.gov/systems/andes_user_guide.html)
```bash
module load cmake
cd cold-atoms/lib-wdata/
g++ -O3 -c wdata.c -fPIC
ar crf libwdata.a wdata.o
cp libwdata.a visit-plugin/
cd visit-plugin/
/sw/andes/visit/bin/xml2cmake -v 3.1 -clobber wdata.xml
rm CMakeCache.txt
cmake -DCMAKE_BUILD_TYPE:STRING=Debug
make
```
## Compiling plugin on [Daint](https://www.cscs.ch/computers/piz-daint/)
Before you start compilation **make sure that you can connect without typing password** from `ela.cscs.ch` to `daint101.cscs.ch`:
```bash
[gabrielw@dell ~]$ ssh ela.cscs.ch
Enter passphrase for key '/home/gabrielw/.ssh/id_ed25519':
[gabrielw@ela1 ~]$ ssh daint101.cscs.ch
gabrielw@daint101:~>
```
If not use `ssh-keygen` & `ssh-copy-id daint101.cscs.ch`.
Next execute on `daint101.cscs.ch`:
```bash
module load daint-mc
module load Visit
cd cold-atoms/lib-wdata
make
cp libwdata.a visit-plugin/
cd visit-plugin
xml2cmake -clobber wdata.xml
rm CMakeCache.txt
cmake -DCMAKE_BUILD_TYPE:STRING=Debug
make
```
# Setting host files
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):
```bash
[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:
![visit](http://git2.if.pw.edu.pl/gabrielw/cold-atoms/uploads/e5ab355bdee659f10416bc0d71c3d8ed/visit.png)
To check if VisIt works correctly, try to open example data:
1. File -> Open File
2. Select as host: `dwarf66` (you will be asked for password)
3. Select file: `/home2/archive/visit/example-vortices/run1c.wtxt`
4. In `Plots` section: Add -> Pseudocolor -> `delta_abs`
5. Click `Draw`. You should see:
![exampleplot](http://git2.if.pw.edu.pl/gabrielw/cold-atoms/uploads/0b80ee3750d7eee8dede4eaace7ca772/exampleplot.png)
Clone repository
  • API version
  • Automatic interpolations
  • Auxiliary tools
  • Browsing the code
  • Broyden algorithm
  • C and CUDA
  • Campaign of calculations
  • Checking correctness of settings
  • Chemical potentials control
  • Code & Results quality
  • Common failures of static codes
  • Common failures of time dependent codes
  • Computation domain
  • Configuring GPU machine
  • Constraining densities and potentials
View All Pages