Skip to content

Commit

Permalink
remove file and fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
JaGeo committed Feb 7, 2025
1 parent a84ffaa commit 3b65b23
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
21 changes: 0 additions & 21 deletions docs/user/codes/script.py

This file was deleted.

22 changes: 21 additions & 1 deletion docs/user/codes/vasp.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ lobster = update_user_incar_settings(lobster, {"NPAR": 4})
run_locally(lobster, create_folders=True, store=SETTINGS.JOB_STORE)
```

There are currently three different ways available to run the workflow efficiently, as VASP and LOBSTER rely on a different parallelization (MPI vs. OpenMP).
There are currently three different ways available to run the workflow efficiently, as VASP and LOBSTER rely on a different parallelization (MPI vs. OpenMP).
One can use a job script (with some restrictions), or [Jobflow-remote](https://matgenix.github.io/jobflow-remote/) / [Fireworks](https://github.com/materialsproject/fireworks) for high-throughput runs.


Expand Down Expand Up @@ -420,8 +420,18 @@ lobster = update_user_incar_settings(lobster, {"NPAR": 4})
submit_flow(lobster, worker="my_worker", resources=resources, project="my_project")
```

The `LOBSTER_CMD` also needs an export of the threads.

```yaml
VASP_CMD: <<VASP_CMD>>
LOBSTER_CMD: OMP_NUM_THREADS=48 <<LOBSTER_CMD>>
```
#### Fireworks
Please first refer to the general documentation on running atomate2 workflows with fireworks: [https://materialsproject.github.io/atomate2/user/fireworks.html](https://materialsproject.github.io/atomate2/user/fireworks.html)
Specifically, you might want to change the `_fworker` for the LOBSTER runs and define a separate `lobster` worker within FireWorks:

```py
Expand Down Expand Up @@ -456,6 +466,16 @@ lpad = LaunchPad.auto_load()
lpad.add_wf(wf)
```


The `LOBSTER_CMD` can now be adapted to not include the number of threads:

```yaml
VASP_CMD: <<VASP_CMD>>
LOBSTER_CMD: <<LOBSTER_CMD>>
```

#### Analyzing outputs

Outputs from the automatic analysis with LobsterPy can easily be extracted from the database and also plotted:

```py
Expand Down

0 comments on commit 3b65b23

Please sign in to comment.