Skip to content

Commit

Permalink
Merge branch 'update.solver_module.function' into update.solver_module
Browse files Browse the repository at this point in the history
  • Loading branch information
aoymt committed Aug 4, 2024
2 parents f4c1309 + 423e1ab commit df381c2
Show file tree
Hide file tree
Showing 5 changed files with 1,016 additions and 0 deletions.
23 changes: 23 additions & 0 deletions extra/function/tests/mapper/do.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh

export PYTHONPATH=../../src:$PYTHONPATH

sh ./prepare.sh

#time python3 simple.py
time mpiexec -np 4 python3 simple.py

resfile=output/ColorMap.txt
reffile=ref_ColorMap.txt

echo diff $resfile $reffile
res=0
diff $resfile $reffile || res=$?
if [ $res -eq 0 ]; then
echo TEST PASS
true
else
echo TEST FAILED: $resfile and $reffile differ
false
fi

17 changes: 17 additions & 0 deletions extra/function/tests/mapper/input.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[base]
dimension = 2
output_dir = "output"

[algorithm]
seed = 12345

[algorithm.param]
max_list = [6.0, 6.0]
min_list = [-6.0, -6.0]
num_list = [31, 31]

[solver]

[runner]
[runner.log]
interval = 20
3 changes: 3 additions & 0 deletions extra/function/tests/mapper/prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

rm -rf ./output
Loading

0 comments on commit df381c2

Please sign in to comment.