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

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

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

revision 5558 by caltinay, Wed Mar 25 02:13:05 2015 UTC revision 5559 by caltinay, Wed Mar 25 05:32:01 2015 UTC
# Line 573  class TestMT2DModelTEMode(unittest.TestC Line 573  class TestMT2DModelTEMode(unittest.TestC
573  @unittest.skipIf(not HAVE_RIPLEY, "Ripley module not available")  @unittest.skipIf(not HAVE_RIPLEY, "Ripley module not available")
574  class TestMT2DModelTMMode(unittest.TestCase):  class TestMT2DModelTMMode(unittest.TestCase):
575      def test_API(self):      def test_API(self):
576          domain=ripRectangle(25, 25, d1=mpisize)          domain=ripRectangle(25, 25, d0=mpisize)
577          omega=2.          omega=2.
578          x=[ [0.2,0.5], [0.3,0.5] ]          x=[ [0.2,0.5], [0.3,0.5] ]
579          Z_XY=[ complex(1.2,1.5), complex(1.3,2.5) ]          Z_XY=[ complex(1.2,1.5), complex(1.3,2.5) ]
# Line 604  class TestMT2DModelTMMode(unittest.TestC Line 604  class TestMT2DModelTMMode(unittest.TestC
604          k=cmath.sqrt(1j*omega*mu0/RHO)  # Hx=exp(k*z)          k=cmath.sqrt(1j*omega*mu0/RHO)  # Hx=exp(k*z)
605          NE=101          NE=101
606          L=1          L=1
607          domain=ripRectangle(NE,NE, d1=mpisize)          domain=ripRectangle(NE,NE, d0=mpisize)
608    
609          Z0=0.5          Z0=0.5
610          H=1./NE          H=1./NE
# Line 671  class TestMT2DModelTMMode(unittest.TestC Line 671  class TestMT2DModelTMMode(unittest.TestC
671    
672          L=1          L=1
673          NE=101          NE=101
674          domain=ripRectangle(NE,NE, d1=mpisize)          domain=ripRectangle(NE,NE, d0=mpisize)
675    
676          Z0=0.5          Z0=0.5
677          IMP=RHO*k*(cmath.exp(k*(Z0-L))-cmath.exp(-k*(Z0-L)))/(cmath.exp(k*(Z0-L))+cmath.exp(-k*(Z0-L)))          IMP=RHO*k*(cmath.exp(k*(Z0-L))-cmath.exp(-k*(Z0-L)))/(cmath.exp(k*(Z0-L))+cmath.exp(-k*(Z0-L)))

Legend:
Removed from v.5558  
changed lines
  Added in v.5559

  ViewVC Help
Powered by ViewVC 1.1.26