~emmanuel-lambert/python-meep/intec

« back to all changes in this revision

Viewing changes to tests/two_dimensional.py

  • Committer: emmanuel.lambert at ugent
  • Date: 2009-11-23 10:23:17 UTC
  • Revision ID: emmanuel.lambert@intec.ugent.be-20091123102317-m00vrwyw0m6kpcmm
further merging with NS / replacing tests dir with default tests and creating new 'tests-intec' subdir

Show diffs side-by-side

added added

removed removed

Lines of Context:
263
263
    s=structure(v, epsilon, no_pml(), identity(), splitting)
264
264
    master_printf("Periodic test using %d chunks...\n", splitting);
265
265
 
266
 
    f=fields_complex(s)
 
266
    f=fields(s)
267
267
    f.use_bloch(vec(0.1,0.7))
268
268
    f.add_point_source(Hz, 0.7, 2.5, 0.0, 4.0, vec(0.3,0.5), 1.0)
269
269
    f.add_point_source(Ez, 0.8, 0.6, 0.0, 4.0, vec(1.299,0.401), 1.0)
270
 
    f1=fields_complex(s1)
 
270
    f1=fields(s1)
271
271
    f1.use_bloch(vec(0.1,0.7))
272
272
    f1.add_point_source(Hz, 0.7, 2.5, 0.0, 4.0, vec(0.3,0.5), 1.0)
273
273
    f1.add_point_source(Ez, 0.8, 0.6, 0.0, 4.0, vec(1.299,0.401), 1.0)
306
306
    s=structure(v, epsilon, no_pml(), identity(), splitting)
307
307
    master_printf("Periodic 2D TM test using %d chunks...\n", splitting);
308
308
 
309
 
    f=fields_complex(s)
 
309
    f=fields(s)
310
310
    f.use_bloch(vec(0.1,0.7))
311
311
    f.add_point_source(Ez, 0.8, 0.6, 0.0, 4.0, vec(1.299,0.401), 1.0)
312
 
    f1=fields_complex(s1)
 
312
    f1=fields(s1)
313
313
    f1.use_bloch(vec(0.1,0.7))
314
314
    f1.add_point_source(Ez, 0.8, 0.6, 0.0, 4.0, vec(1.299,0.401), 1.0)
315
315
    
341
341
 
342
342
master_printf('Testing 2D ....\n')
343
343
 
 
344
 
344
345
for s in range(2,4):
345
346
    if not test_pml(EPS,s):
346
347
        abort("error in test_pml vacuum\n")