Hello !
I have a problem with mpirun .When i execute mpirun -np 2 python program.py ,i get 2 prints instead of 1 and the results are different with execution of python program.py .In other words multithreading gives different results in comparison to one thread!
The problem i am solving is a NonLinear and the code is :
sol=Function(system)
F=a1+a2+a3+a4+a5-l1-l2-l3-l4-l5
R=action(F,sol)
DR=derivative(R,sol)
problem=NonlinearVariationalProblem(R,sol,J=DR,form_compiler_parameters=ffc_options)
solver=NonlinearVariationalSolver(problem)
prm = solver.parameters
prm['newton_solver']['linear_solver'] = 'gmres'
prm['newton_solver']['absolute_tolerance'] = 1E-7
prm['newton_solver']['relative_tolerance'] = 1E-7
prm['newton_solver']['preconditioner'] = 'hypre_euclid'
prm['newton_solver']['relaxation_parameter'] = 1.0
I haven't written any code for parallel execution.
Can you give me any help of what should i do in order to get it work?
Thanks in advance!