Different results on 32bit and 64bit system
I am trying to calculate magnetostatic problem in the b-conforming
formulation, my problem is defined as follows:
[code]
mesh = Mesh("coilshiel
subdomains = MeshFunction(
PN = FunctionSpace(mesh, "Nedelec 1st kind H(curl)", 1)
v0 = TestFunction(PN)
u0 = TrialFunction(PN)
# Define functions
zero = Expression(("0.0", "0.0", "0.0"), degree=1)
# Dirichlet boundary
class DirichletBounda
def inside(self, x, on_boundary):
return on_boundary
# Boundary condition
bc = DirichletBC(PN, zero, DirichletBounda
class CurrentExpressi
def eval_data(self, value, data):
if subdomains[
else:
def dim(self):
return 3
J = CurrentExpressi
class MuExpression0(
def eval_data(self, value, data):
mu0 = 4*pi*1e-7
if subdomains[
else:
def dim(self):
return 0
Mu = MuExpression0()
a = inner(curl(v0), curl(u0))/Mu*dx
L = -inner(J, v0)*dx
problem = VariationalProb
u = problem.solve()
plot(curl(u))
[/code]
When solving this system on my "atom" netbook with
32bit version of ubuntu 10.10 with dolfin 9.8, I get
a reasonable result.
Problem is, that on 64bit version of
the same software (core 2 duo processor) the result
looks like vectors pointing in random directions and
is definitely wrong
I use packages from ubuntu repositories, PETSc LU solver, umfpack.
Do you know, what could be the reason for this behavior?
Best regards
Stepan
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Stepan Roucka
- Solved:
- Last query:
- Last reply: