Commit 94285bc1 authored by Elisa Rebolini's avatar Elisa Rebolini
Browse files

test prop

parent b7104bfd
Pipeline #12407 passed with stage
in 25 minutes and 24 seconds
......@@ -64,3 +64,13 @@ if(ENABLE_MPI)
add_runtest(CuO_03450_smallbatch_MPIload)
add_runtest(CuO_03450_smallbatch_noMPIload)
endif()
if(ENABLE_DEV)
add_test(
NAME prop_CuO_02204
COMMAND python3 ${CMAKE_SOURCE_DIR}/test/CuO_02204/test_prop --binary-dir=${CMAKE_BINARY_DIR} --work-dir=${CMAKE_BINARY_DIR}/test/CuO_02204 --verbose --log=${CMAKE_BINARY_DIR}/test/CuO_02204/runtest.stderr.logprop)
set_tests_properties(prop_CuO_02204 PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/test/CuO_02204)
endif()
......@@ -306,7 +306,8 @@ Program proprietes
deallocate(shtblkdet, nblkdet, deter_index)
deallocate(det)
deallocate(psi, ener)
deallocate(whichprop)
if (nprop.ne.0) deallocate(whichprop)
call gettime(tend,wend)
......
This diff is collapsed.
#!/usr/bin/env python
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..'))
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from runtest_relaxse import Filter, TestRun
test = TestRun(__file__, sys.argv)
f = Filter()
f.add(string = ' 41 41',
abs_tolerance = 1.0e-10)
f.add(string = '45 42',
abs_tolerance = 1.0e-6)
test.run(['cuo.input'], {'propout': f}, prop=True)
sys.exit(test.return_code)
#!/usr/bin/env python
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..'))
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from runtest_relaxse import Filter, TestRun
test = TestRun(__file__, sys.argv)
f = Filter()
f.add(string = 'Energies :',
abs_tolerance = 1.0e-10)
f.add(string = '|Hv-Ev| :',
abs_tolerance = 1.0e-6)
test.run(['cuo.input'], {'out': f})
sys.exit(test.return_code)
......@@ -34,9 +34,12 @@ class TestRun(runtest.TestRun):
runtest.TestRun.__init__(self, _file, argv)
self.return_code = 0
def run(self, inp_files, f=None, args='', mpi='', accepted_errors=[]):
def run(self, inp_files, f=None, args='', mpi='', prop=False, accepted_errors=[]):
launch_script = os.path.normpath(os.path.join(self.binary_dir,'relaxse.x'))
if prop:
launch_script = os.path.normpath(os.path.join(self.binary_dir,'prop.x'))
else:
launch_script = os.path.normpath(os.path.join(self.binary_dir,'relaxse.x'))
if self.skip_run:
sys.stdout.write('\nskipping actual run\n')
else:
......
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