Search found 103 matches

by spacedout
28 Mar 2021, 20:53
Forum: General
Topic: Mulling over mpi and per element calculations
Replies: 3
Views: 504

Re: Mulling over mpi and per element calculations

I didn't me to offend anybody. I was just hoping to get a confirmation of my suspicion that the major computational cost in ElmerSolver is by far the solution of Ax = b which itself can be iterated several times in the non linear case. The mere assignment of source variables is insignificant by comp...
by spacedout
25 Mar 2021, 18:33
Forum: General
Topic: Mulling over mpi and per element calculations
Replies: 3
Views: 504

Mulling over mpi and per element calculations

Hi everybody Since I now understand that all processors keep a separate copy of the data space as well, I realize they will duplicate assignments on field variables in all existing Elmer solvers in the manner: DO t=1,Solver % NumberOfActiveElements ! get element info Element => GetActiveElement(t) n...
by spacedout
24 Mar 2021, 18:17
Forum: General
Topic: ElmerSolver_mpi stuck in a loop
Replies: 17
Views: 1729

Re: ElmerSolver_mpi stuck in a loop

In the same spirit, I found this on StackOverFlow: QUOTE MPI array syncronization Asked 11 years, 5 months ago Each of your two MPI tasks is working on a different copy of the array. You need to explicitly merge the two arrays using something like MPI_Send() and MPI_Recv() or one of the more complex...
by spacedout
24 Mar 2021, 06:53
Forum: General
Topic: ElmerSolver_mpi stuck in a loop
Replies: 17
Views: 1729

Re: ElmerSolver_mpi stuck in a loop

I\m a yoyo. I'm coming back to my second to last post: we cannot have IF( ParEnv % MyPe == 0 ) field variable assignment code ENDIF i.e. all processors must execute exactly the same field variable assignment code which unfortunately wastes a lot of time. I proved this statement in the following easy...
by spacedout
23 Mar 2021, 18:37
Forum: General
Topic: ElmerSolver_mpi stuck in a loop
Replies: 17
Views: 1729

Re: ElmerSolver_mpi stuck in a loop

Sorry Peter but I overlooked the second page in the posts to this thread and so I was not aware that you had replied, Anyhow my last post confirms your last post. Now you ask What is it I am trying to achieve ? Well, everything was OK in my solvers until I started adding a IF( ParEnv % MyPe /= 0 )RE...
by spacedout
23 Mar 2021, 05:54
Forum: General
Topic: ElmerSolver_mpi stuck in a loop
Replies: 17
Views: 1729

Re: ElmerSolver_mpi stuck in a loop

I further simplified volt.F90 by shortening it to SUBROUTINE AirElectrodePotential( Model,Solver,dt,TransientSimulation ) USE DefUtils TYPE(Solver_t) :: Solver TYPE(Model_t) :: Model REAL(KIND=dp) :: dt LOGICAL :: TransientSimulation TYPE(Variable_t), POINTER :: vtufgVar vtufgVar => VariableGet( Sol...
by spacedout
21 Mar 2021, 19:22
Forum: General
Topic: ElmerSolver_mpi stuck in a loop
Replies: 17
Views: 1729

Re: ElmerSolver_mpi stuck in a loop

Good day kevinarden I have attached a barebones mesh and program. Download all 3 files in the same folder and execute ElmerGrid 1 2 rect.grd ElmerGrid 2 2 rect -partdual -metiskway 2 elmerf90 volt.F90 -o volt.so mpirun -np 2 ElmerSolver_mpi case.sif within that folder. The program will freeze almost...
by spacedout
20 Mar 2021, 05:37
Forum: General
Topic: ElmerSolver_mpi stuck in a loop
Replies: 17
Views: 1729

Re: ElmerSolver_mpi stuck in a loop

For case.sif, I added Max Output Level = 20 Max Output Partition = 2 in the Simulation section and with its Solver 1 Equation = "potential" Variable = -global Whatever Exported Variable 1 = -global setflag Exec Solver = Always Procedure = "volt" "voltage" End Solver 2 E...
by spacedout
19 Mar 2021, 22:19
Forum: General
Topic: ElmerSolver_mpi stuck in a loop
Replies: 17
Views: 1729

Re: ElmerSolver_mpi stuck in a loop

I did ElmerGrid 2 2 meshdirname -partdual -metiskway 2 and output shows no errors and claims it was successful I can see the 2 partitions under subfolder partitioning.2 of folder meshdirname If case .sif contains something like Header Mesh DB "." "meshdirname/partitioning.2" End ...
by spacedout
19 Mar 2021, 06:04
Forum: General
Topic: ElmerSolver_mpi stuck in a loop
Replies: 17
Views: 1729

ElmerSolver_mpi stuck in a loop

Good morning I think the code is running in an infinite loop when I execute mpirun -np 2 ElmerSolver_mpi case.sif where case.sif contains Solver 1 Equation = "potential" Variable = -global Whatever Exported Variable 1 = -global setflag Exec Solver = Always Procedure = "volt" &quo...