Skip to content

Commit

Permalink
Merge pull request #54 from pyiron/add_dynamic
Browse files Browse the repository at this point in the history
Add dynamic resources
  • Loading branch information
jan-janssen authored Apr 11, 2022
2 parents 27f3d05 + 14c4468 commit bbfdfc1
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: Linux
runs-on: ubuntu-latest
env:
RELEASEVER: "0.0.19"
RELEASEVER: "0.0.20"
SPHINXDFT_DATA_VER: "0.0.1"
SPHINXDFT_DATA_BUILD: "0"
GPAW_DATA_VER: "0.9.20000"
Expand Down Expand Up @@ -43,6 +43,7 @@ jobs:
mv ../LICENSE resources
mv ../damask resources
mv ../templates resources
mv ../dynamic resources
mkdir resources/lammps/potentials
mv iprpy-data/share/iprpy/potentials_lammps.csv resources/lammps/potentials/potentials_lammps.csv
mv iprpy-data/share/iprpy/potential_LAMMPS resources/lammps/potentials/potential_LAMMPS
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: Linux
runs-on: ubuntu-latest
env:
RELEASEVER: "0.0.19"
RELEASEVER: "0.0.20"
SPHINXDFT_DATA_VER: "0.0.1"
SPHINXDFT_DATA_BUILD: "0"
GPAW_DATA_VER: "0.9.20000"
Expand Down Expand Up @@ -43,6 +43,7 @@ jobs:
mv ../LICENSE resources
mv ../damask resources
mv ../templates resources
mv ../dynamic resources
mkdir resources/lammps/potentials
mv iprpy-data/share/iprpy/potentials_lammps.csv resources/lammps/potentials/potentials_lammps.csv
mv iprpy-data/share/iprpy/potential_LAMMPS resources/lammps/potentials/potential_LAMMPS
Expand Down
5 changes: 5 additions & 0 deletions dynamic/MydynamicJob/bin/run_mydynamicjob_0.0.1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
number_of_cores=1
number_of_threads=1

cat input.txt > output.txt
5 changes: 5 additions & 0 deletions dynamic/MydynamicJob/bin/run_mydynamicjob_0.0.1_mpi.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
number_of_cores=$1
number_of_threads=$2

cat input.txt > output.txt
1 change: 1 addition & 0 deletions dynamic/MydynamicJob/input.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"a": 1, "b": [1, 2, 3]}
18 changes: 18 additions & 0 deletions dynamic/MydynamicJob/script.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import json
import os


def write_input(working_directory, input_dict):
# your code goes here

# json example
with open(os.path.join(working_directory, "input.txt"), "w") as f:
json.dump(input_dict, f)


def collect_output(working_directory):
# your code goes here

# json example
with open(os.path.join(working_directory, "output.txt"), "r") as f:
return json.load(f)

0 comments on commit bbfdfc1

Please sign in to comment.