14 |
|
|
15 |
""" |
""" |
16 |
|
|
17 |
# from esys.escript import * |
from esys.escript import * |
18 |
# from esys.linearPDEs import * |
from esys.linearPDEs import * |
19 |
# import esys.finley as pdelib |
import esys.finley as pdelib |
|
from escript.escript import * |
|
|
from escript.linearPDEs import * |
|
|
import finley.finley as pdelib |
|
20 |
from time import time |
from time import time |
21 |
|
|
22 |
from numarray import * |
from numarray import * |
86 |
|
|
87 |
# Solve for Approximate Solution |
# Solve for Approximate Solution |
88 |
tm=time() |
tm=time() |
89 |
u_approx = mypde.getSolution(preconditioner=prec_id,iter_max=10000) |
u_approx = mypde.getSolution(verbose=True,preconditioner=prec_id,iter_max=10000) |
90 |
tm=time()-tm |
tm=time()-tm |
91 |
|
|
92 |
# Report Results |
# Report Results |
146 |
|
|
147 |
# Solve for Approximate Solution |
# Solve for Approximate Solution |
148 |
tm=time() |
tm=time() |
149 |
u_approx = mypde.getSolution(preconditioner=prec_id,iter_max=10000) |
u_approx = mypde.getSolution(verbose=True,preconditioner=prec_id,iter_max=10000) |
150 |
tm=time()-tm |
tm=time()-tm |
151 |
|
|
152 |
# Report Results |
# Report Results |