What process creates TEST.PASSED_*

General discussion about Elmer
Post Reply
putanowr
Posts: 7
Joined: 14 Dec 2020, 19:53
Antispam: Yes
Location: Cracow, Poland

What process creates TEST.PASSED_*

Post by putanowr »

Hi,

When running
make test
all my parallel tests fail.

While investigating the problem I have experimented with fem/tests/AdvReactDB and concluded that the problem is missing TEST.PASSED_6 file.
The question is what process creates this file as looking into CMake scripts gave me no answer.

Facts: Test run by cmake fail, but running ElmerSolver by hand looks OK. Below I show the screen output of the two cases.
I will appreciate any hint.

Best regards,
Roman

-------------------------------- Running ctest:
putanowr@krakus:~/work/ELMER/build/fem/tests/AdvReactDB$ ctest -V -R AdvReactDB_np6

[... skip some output ..]
2: ======================================= HERE:
2: -- BINARY_DIR = /home/prac/putanowr/work/ELMER/build
2: -- Extra library directories
2: HHHHHHH: /usr/bin/mpiexec.hydra -np 6 /home/prac/putanowr/work/ELMER/build/fem/src/ElmerSolver_mpi
2: CMake Error at /home/prac/putanowr/work/ELMER/elmerfem/cmake/Modules/test_macros.cmake:158 (FILE):
2: FILE failed to open for reading (No such file or directory):
2:
2: /home/prac/putanowr/work/ELMER/build/fem/tests/AdvReactDB/TEST.PASSED_6
2: Call Stack (most recent call first):
2: /home/prac/putanowr/work/ELMER/elmerfem/fem/tests/AdvReactDB/runtest.cmake:4 (RUN_ELMER_TEST)
2:
2:
1/1 Test #2: AdvReactDB_np6 ...................***Failed 2.20 sec

0% tests passed, 1 tests failed out of 1

------------------------------------------------------------ Running ElmerSolver directly:
putanowr@krakus:~/work/ELMER/build/fem/tests/AdvReactDB$ /usr/bin/mpiexec.hydra -np 6 /home/prac/putanowr/work/ELMER/build/fem/src/ElmerSolver_mpi

This produces quite verbose output, where I could read:

CompareToReferenceSolution: PASSED all 1 tests!
ElmerSolver: *** Elmer Solver: ALL DONE ***

The execution status echo $? is 0.
raback
Site Admin
Posts: 4841
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: What process creates TEST.PASSED_*

Post by raback »

Hi

This is written by the ElmerSolver if there is a "Reference Norm" defined in the SIF file. Then it makes a comparison and writes a file TEST_PASSED_#np. The content of this file is simply 1 for success and 0 for failure to pass the test. If there are multiple criteria in same SIF file then all must be met for a succesful test.

-Peter
putanowr
Posts: 7
Joined: 14 Dec 2020, 19:53
Antispam: Yes
Location: Cracow, Poland

Re: What process creates TEST.PASSED_*

Post by putanowr »

Hi,
Thanks for explanation.

But is it normal that call:

putanowr@krakus:~/work/ELMER/build/fem/tests/AdvReactDB$ /usr/bin/mpiexec.hydra -np 6 /home/prac/putanowr/work/ELMER/build/fem/src/ElmerSolver_mpi

produces TEST.PASSED file ?
From what you say I guess it should produce TEST.PASSED_6 but it doesn't.

Regards,
Roman
putanowr
Posts: 7
Joined: 14 Dec 2020, 19:53
Antispam: Yes
Location: Cracow, Poland

Re: What process creates TEST.PASSED_*

Post by putanowr »

Hi,

Sorry for the noise.
Using mpirun instead of mpiexec cures the problem.
I need to find why the later was picked while configuring elmer build and not the former.

Regards
Roman
Post Reply