/[escript]/trunk/downunder/test/python/run_dcforward.py
ViewVC logotype

Diff of /trunk/downunder/test/python/run_dcforward.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5399 by caltinay, Wed Dec 17 01:35:43 2014 UTC revision 5400 by jduplessis, Wed Dec 17 02:59:38 2014 UTC
# Line 78  class TestDCResistivityForward(unittest. Line 78  class TestDCResistivityForward(unittest.
78              runName=os.path.join(WORKDIR, "dcResPolePole%d-%d"%(lc,lc/lcDiv))              runName=os.path.join(WORKDIR, "dcResPolePole%d-%d"%(lc,lc/lcDiv))
79              domGen=DCResDomGenerator(extents, electrodeDict,lc=lc,tmpDir=WORKDIR,bufferThickness=bufferThickness,prism=None)              domGen=DCResDomGenerator(extents, electrodeDict,lc=lc,tmpDir=WORKDIR,bufferThickness=bufferThickness,prism=None)
80              dom = domGen.getDom(mshName=runName+".msh")              dom = domGen.getDom(mshName=runName+".msh")
81              #if mpirank==0: os.unlink(runName+".msh")              if mpirank==0:
82                    os.unlink(runName+".msh")
83          totalApparentRes = 130.          totalApparentRes = 130.
84          primaryConductivity=Scalar(1/100., ContinuousFunction(dom))          primaryConductivity=Scalar(1/100., ContinuousFunction(dom))
85          secondaryConductivity=Scalar(1/130., ContinuousFunction(dom))          secondaryConductivity=Scalar(1/130., ContinuousFunction(dom))
# Line 117  class TestDCResistivityForward(unittest. Line 118  class TestDCResistivityForward(unittest.
118              runName=os.path.join(WORKDIR, "dcResSchlum%d-%d"%(lc,lc/lcDiv))              runName=os.path.join(WORKDIR, "dcResSchlum%d-%d"%(lc,lc/lcDiv))
119              domGen=DCResDomGenerator(extents, electrodeDict,lc=lc,tmpDir=WORKDIR,bufferThickness=bufferThickness,prism=None)              domGen=DCResDomGenerator(extents, electrodeDict,lc=lc,tmpDir=WORKDIR,bufferThickness=bufferThickness,prism=None)
120              dom = domGen.getDom(mshName=runName+".msh")              dom = domGen.getDom(mshName=runName+".msh")
121              #if mpirank==0: os.unlink(runName+".msh")              if mpirank==0:
122                    os.unlink(runName+".msh")
123          totalApparentResVal = 130.          totalApparentResVal = 130.
124          primaryConductivity=Scalar(1/100., ContinuousFunction(dom))          primaryConductivity=Scalar(1/100., ContinuousFunction(dom))
125          secondaryConductivity=Scalar(1/130., ContinuousFunction(dom))          secondaryConductivity=Scalar(1/130., ContinuousFunction(dom))
# Line 170  class TestDCResistivityForward(unittest. Line 172  class TestDCResistivityForward(unittest.
172              runName=os.path.join(WORKDIR, "dcResdipdip%d-%d"%(lc,lc/lcDiv))              runName=os.path.join(WORKDIR, "dcResdipdip%d-%d"%(lc,lc/lcDiv))
173              domGen=DCResDomGenerator(extents, electrodeDict,lc=lc,tmpDir=WORKDIR,bufferThickness=bufferThickness,prism=None)              domGen=DCResDomGenerator(extents, electrodeDict,lc=lc,tmpDir=WORKDIR,bufferThickness=bufferThickness,prism=None)
174              dom = domGen.getDom(mshName=runName+".msh")              dom = domGen.getDom(mshName=runName+".msh")
175              #if mpirank==0: os.unlink(runName+".msh")              if mpirank==0:
176                    os.unlink(runName+".msh")
177          n=5          n=5
178          totalApparentResVal = 130.          totalApparentResVal = 130.
179          primaryConductivity=Scalar(1/100., ContinuousFunction(dom))          primaryConductivity=Scalar(1/100., ContinuousFunction(dom))
# Line 223  class TestDCResistivityForward(unittest. Line 226  class TestDCResistivityForward(unittest.
226              domGen=DCResDomGenerator(extents, electrodeDict,lc=lc,tmpDir=WORKDIR,bufferThickness=bufferThickness,prism=None)              domGen=DCResDomGenerator(extents, electrodeDict,lc=lc,tmpDir=WORKDIR,bufferThickness=bufferThickness,prism=None)
227              runName=os.path.join(WORKDIR, "wenner%d-%d"%(lc,lc/lcDiv))              runName=os.path.join(WORKDIR, "wenner%d-%d"%(lc,lc/lcDiv))
228              dom = domGen.getDom(mshName=runName+".msh")              dom = domGen.getDom(mshName=runName+".msh")
229              #if mpirank==0: os.unlink(runName+".msh")              if mpirank==0:
230                    os.unlink(runName+".msh")
231          totalApparentRes = 130.          totalApparentRes = 130.
232          primaryConductivity=Scalar(1/100., ContinuousFunction(dom))          primaryConductivity=Scalar(1/100., ContinuousFunction(dom))
233          secondaryConductivity=Scalar(1/130., ContinuousFunction(dom))          secondaryConductivity=Scalar(1/130., ContinuousFunction(dom))
# Line 273  class TestDCResistivityForward(unittest. Line 277  class TestDCResistivityForward(unittest.
277              runName=os.path.join(WORKDIR, "dcRespoldip%d-%d"%(lc,lc/lcDiv))              runName=os.path.join(WORKDIR, "dcRespoldip%d-%d"%(lc,lc/lcDiv))
278              domGen=DCResDomGenerator(extents, electrodeDict,lc=lc,tmpDir=WORKDIR,bufferThickness=bufferThickness,prism=None)              domGen=DCResDomGenerator(extents, electrodeDict,lc=lc,tmpDir=WORKDIR,bufferThickness=bufferThickness,prism=None)
279              dom = domGen.getDom(mshName=runName+".msh")              dom = domGen.getDom(mshName=runName+".msh")
280              #if mpirank==0: os.unlink(runName+".msh")              if mpirank==0:
281                    os.unlink(runName+".msh")
282          n=5          n=5
283          totalApparentResVal = 130.          totalApparentResVal = 130.
284          primaryConductivity   =  Scalar(1/100., ContinuousFunction(dom))          primaryConductivity   =  Scalar(1/100., ContinuousFunction(dom))

Legend:
Removed from v.5399  
changed lines
  Added in v.5400

  ViewVC Help
Powered by ViewVC 1.1.26