Test failed for test case 3 (Contact) in Elmer/Ice

Extension of Elmer in computational glaciology
Post Reply
enigne
Posts: 4
Joined: 03 Sep 2014, 17:31
Antispam: Yes

Test failed for test case 3 (Contact) in Elmer/Ice

Post by enigne »

Hi everyone,

I'm trying to run the test of Elmer/Ice (the latest version) in the directory ".//elmerice/Tests". The third test case which is called "Contact" failed and the prompt is

Code: Select all

test 3 :                   Contact At line 99 of file Compare.f90 (unit = 40, file = './DATA/valid_Contact.txt')
Fortran runtime error: End of file
tail: cannot open `difference.txt' for reading: No such file or directory
tail: cannot open `difference.txt' for reading: No such file or directory
tail: cannot open `difference.txt' for reading: No such file or directory
		        [FAILED]
File [difference.txt] not found: look at [File_log/Output_Contact.log] for details
and the file "Output_Contact.log" mentioned in the prompt contains only the following one line message which I could not find the variable "nb_line".

Code: Select all

 ERROR: nb_line is not the same
I also run the "Contact" case and the solutions at the first time step seems like a sudden jump and after that the cavity process begin to move to the right.

It is the pure Elmer/Ice from sourcefourge and I haven't change any code.

Thanks a lot.
Cheng Gong
tzwinger
Site Admin
Posts: 99
Joined: 24 Aug 2009, 12:20
Antispam: Yes

Re: Test failed for test case 3 (Contact) in Elmer/Ice

Post by tzwinger »

Hi,
unfortunately, I am not able to reproduce your error.
Could you try to go into the subdirectory of this test and run it manually and send the output. To that end, you have to declare the following variables (provided you are running bash)

Code: Select all

export ELMER_GRID="ElmerGrid"
export FORT="elmerf90"
export ELMER_SOLVER="ElmerSolver"
and run it

Code: Select all

make run &> output
If you then could display us the contents of the file output, in order that we get a better clue on what goes wrong?

Best wishes,

Thomas
enigne
Posts: 4
Joined: 03 Sep 2014, 17:31
Antispam: Yes

Re: Test failed for test case 3 (Contact) in Elmer/Ice

Post by enigne »

Hi,

Thank you for replying. I have the same settings of the variables for my bash.
The output of the test case are in the following
output.txt
The output of Contact case
(91.25 KiB) Downloaded 2069 times
Best wishes,
Cheng Gong
Martina
Posts: 39
Joined: 17 Apr 2013, 14:06
Antispam: Yes

Re: Test failed for test case 3 (Contact) in Elmer/Ice

Post by Martina »

Hi,
apparently you have another sif-file as the one in the svn.
You use:

Code: Select all

Timestep Intervals = 20
 Output Intervals = 1
 Timestep Sizes = 1
In the svn is

Code: Select all

Timestep Intervals = 2
Output Intervals = $interval
Timestep Sizes = 0.005
If I use the svn-version the test runs fine, if I change to your settings I can reproduce your error (exactly the same messages).
The error with nb_lines comes from Compare.f90 and makes reference to the fact that your output file has (because of the different number of timesteps) more lines than valid_Contact.txt, to which it is compared. And hence no file differences.txt can be produced.

I don't know where these changes come from since I can't find them even in an older version in the svn?

Martina
Last edited by Martina on 05 Sep 2014, 16:38, edited 2 times in total.
tzwinger
Site Admin
Posts: 99
Joined: 24 Aug 2009, 12:20
Antispam: Yes

Re: Test failed for test case 3 (Contact) in Elmer/Ice

Post by tzwinger »

So your case went through - something then went wrong outside the run.
Reading your error message from before, my suspicion is, that perhaps your permissions for the test subdirectory are such that you are not allowed to write anything into it. If you do a

Code: Select all

chmod -R u+rwX contact
does it help?

Best Regards,

Thomas
enigne
Posts: 4
Joined: 03 Sep 2014, 17:31
Antispam: Yes

Re: Test failed for test case 3 (Contact) in Elmer/Ice

Post by enigne »

Hi Martina and Thomas

Yes, you are right. The SIF file is not the same as the one on svn. I thought I made the checkout on svn but seems it was the one I have changed.
And also the authority to write in the folder helps the test to pass.
Thank you so much.

Cheng Gong
Post Reply