Thanks Johan! That works :) K
> On Friday 18 September 2009 15:43:34 KVS wrote: >> Public bug reported: >> >> Hi, >> I just build FEniCS with Dorsal and tried to run the poisson.py demo. >> Running "python demo.py" works fine, but "mpirun -n 2 python demo.py" >> does >> not. See text below. Is there an easy fix? > > What version of linux do you use? > > This looks like the same problem I had a while ago (with jaunty), where > mpirun > use ssh to submit the different jobs. The problem is that the script is > executed without the necessary paths. You need to forward these. > > My workaround was to set the following alias: > > alias mpirun='mpirun -x PYTHONPATH -x LD_LIBRARY_PATH -x > PKG_CONFIG_PATH\ > -x PATH -x DISPLAY' > > you might also need to put: > > Host * > ForwardAgent yes > ForwardX11 yes > > in your .ssh/config file to get plotting to work. > > Johan > >> Kristian >> >> k...@flekktvetann:~/fenics/dolfin/demo/pde/poisson/python$ python demo.py >> Solving linear variational problem >> Matrix of size 1089 x 1089 has 7361 nonzero entries. >> Applying boundary conditions to linear system. >> Solving linear system of size 1089 x 1089 (PETSc LU solver, petsc). >> Plot active, press 'q' to continue. >> >> k...@flekktvetann:~/fenics/dolfin/demo/pde/poisson/python$ mpirun -n 2 >> python demo.py k...@flekktvetann's password: >> Traceback (most recent call last): >> File "demo.py", line 20, in <module> >> from dolfin import * >> ImportError: No module named dolfin >> Traceback (most recent call last): >> File "demo.py", line 20, in <module> >> from dolfin import * >> ImportError: No module named dolfin >> >> ** Affects: dolfin >> Importance: Undecided >> Status: New >> > > -- > Poisson demo in parallel > https://bugs.launchpad.net/bugs/432491 > You received this bug notification because you are a direct subscriber > of the bug. > > Status in DOLFIN: New > > Bug description: > Hi, > I just build FEniCS with Dorsal and tried to run the poisson.py demo. > Running "python demo.py" works fine, but "mpirun -n 2 python demo.py" does > not. > See text below. Is there an easy fix? > > Kristian > > k...@flekktvetann:~/fenics/dolfin/demo/pde/poisson/python$ python demo.py > Solving linear variational problem > Matrix of size 1089 x 1089 has 7361 nonzero entries. > Applying boundary conditions to linear system. > Solving linear system of size 1089 x 1089 (PETSc LU solver, petsc). > Plot active, press 'q' to continue. > > k...@flekktvetann:~/fenics/dolfin/demo/pde/poisson/python$ mpirun -n 2 > python demo.py > k...@flekktvetann's password: > Traceback (most recent call last): > File "demo.py", line 20, in <module> > from dolfin import * > ImportError: No module named dolfin > Traceback (most recent call last): > File "demo.py", line 20, in <module> > from dolfin import * > ImportError: No module named dolfin > Kristian -- Poisson demo in parallel https://bugs.launchpad.net/bugs/432491 You received this bug notification because you are subscribed to DOLFIN. Status in DOLFIN: Invalid Bug description: Hi, I just build FEniCS with Dorsal and tried to run the poisson.py demo. Running "python demo.py" works fine, but "mpirun -n 2 python demo.py" does not. See text below. Is there an easy fix? Kristian k...@flekktvetann:~/fenics/dolfin/demo/pde/poisson/python$ python demo.py Solving linear variational problem Matrix of size 1089 x 1089 has 7361 nonzero entries. Applying boundary conditions to linear system. Solving linear system of size 1089 x 1089 (PETSc LU solver, petsc). Plot active, press 'q' to continue. k...@flekktvetann:~/fenics/dolfin/demo/pde/poisson/python$ mpirun -n 2 python demo.py k...@flekktvetann's password: Traceback (most recent call last): File "demo.py", line 20, in <module> from dolfin import * ImportError: No module named dolfin Traceback (most recent call last): File "demo.py", line 20, in <module> from dolfin import * ImportError: No module named dolfin _______________________________________________ DOLFIN-dev mailing list [email protected] http://www.fenics.org/mailman/listinfo/dolfin-dev
