Skip to content
Snippets Groups Projects
Commit f1f04654 authored by Ludovic Noels's avatar Ludovic Noels
Browse files

number of lines in achived files

parent f68381c5
No related branches found
No related tags found
1 merge request!229Master
...@@ -205,7 +205,7 @@ mysolver.archivingNodeDisplacement(73,2,nstepArchForce) ...@@ -205,7 +205,7 @@ mysolver.archivingNodeDisplacement(73,2,nstepArchForce)
mysolver.solve() mysolver.solve()
check = TestCheck() check = TestCheck()
check.equal(-7.725560e+03,mysolver.getArchivedForceOnPhysicalGroup("Edge", 61, 1),1.e-4) check.equal(-7.525179e+03,mysolver.getArchivedForceOnPhysicalGroup("Edge", 61, 1),1.e-4)
......
...@@ -189,4 +189,4 @@ mysolver.archivingIPOnPhysicalGroup("Face", 700, IPField.LOCAL_POROSITY,IPField. ...@@ -189,4 +189,4 @@ mysolver.archivingIPOnPhysicalGroup("Face", 700, IPField.LOCAL_POROSITY,IPField.
mysolver.solve() mysolver.solve()
check = TestCheck() check = TestCheck()
check.equal(-1.889379e+03,3,mysolver.getArchivedForceOnPhysicalGroup("Edge", 1400, 0),1.e-6) check.equal(-2.558598e+03,mysolver.getArchivedForceOnPhysicalGroup("Edge", 1400, 0),1.e-6)
...@@ -198,7 +198,7 @@ check = TestCheck() ...@@ -198,7 +198,7 @@ check = TestCheck()
import csv import csv
data = csv.reader(open('IPVolume11val_LOCAL_POROSITYMax.csv'), delimiter=';') data = csv.reader(open('IPVolume11val_LOCAL_POROSITYMax.csv'), delimiter=';')
porosity = list(data) porosity = list(data)
check.equal(5.856826e-01,float(porosity[-1][1]),1e-6) check.equal(5.473613e-01,float(porosity[-1][1]),1e-6)
...@@ -169,7 +169,7 @@ check = TestCheck() ...@@ -169,7 +169,7 @@ check = TestCheck()
import csv import csv
data = csv.reader(open('IPVolume29val_DAMAGEMean.csv'), delimiter=';') data = csv.reader(open('IPVolume29val_DAMAGEMean.csv'), delimiter=';')
porosity = list(data) porosity = list(data)
check.equal(2.759742e-02,float(porosity[-1][1]),1e-6) check.equal(2.758505e-02,float(porosity[-1][1]),1e-6)
......
...@@ -73,7 +73,7 @@ mysolver.solve() ...@@ -73,7 +73,7 @@ mysolver.solve()
# perform some check (pay attention that only rank 0 really perform the check) # perform some check (pay attention that only rank 0 really perform the check)
try: try:
import linecache import linecache
linedisp = linecache.getline('NodalDisplacement1comp0_part3.csv',26050) linedisp = linecache.getline('NodalDisplacementPhysical5Num1comp0_part3.csv',26050)
except: except:
print('Cannot read the results in the files') print('Cannot read the results in the files')
import os import os
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment