Commit a22bf598 authored by Lukas Riedel's avatar Lukas Riedel

fix testing of randomfield generator

* change name and dataset of queried file
* execute parallel test with two nodes explicitly because extensions have to match numProc
parent 6f9304f0
......@@ -12,9 +12,9 @@ from dorie.utilities.text_to_bool import text_to_bool
@evaluation_script
def evaluate(iniinfo,runtime):
h5_path = iniinfo["generator.fft.outputPath"] + "/YField.h5"
h5_path = iniinfo["generator.fft.outputPath"] + "/yfield.stoch.h5"
with h5py.File(h5_path, 'r') as f:
y_data = np.array(f.get("/YField"), dtype=np.float64)
y_data = np.array(f.get("/stochastic"), dtype=np.float64)
print("Operating on file: {}".format(h5_path))
......
......@@ -21,5 +21,3 @@ outputPath = fft_fields | unique
N = 2048 2048, 128 128 128 | expand dim
variance = 0.2
correlationLengths = .004 .005, .05 .06 .08 | expand dim
newEV = true
newField = true
......@@ -2,7 +2,7 @@ include ${CMAKE_BINARY_DIR}/doc/default_files/parfield.ini
__name = correlation_parallel
_test_command = pfg
_test_command_options = --parallel -m=--allow-run-as-root
_test_command_options = --parallel 2 -m=--allow-run-as-root
_asset_path = "${CMAKE_CURRENT_LIST_DIR}"
_data_path = {_asset_path}/parfield-data
_evaluation = correlation
......@@ -23,5 +23,3 @@ outputPath = correlation_parallel | unique
N = 2048 2048, 128 128 128 | expand dim
variance = 0.2
correlationLengths = .004 .005, .05 .06 .08 | expand dim
newEV = true
newField = true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment