Dear Ana,

you’d have to explain more. What you are trying to achieve is not clear to me.

The Newton itself doesn’t really care about parallelism. The assembler 
assembles on the gridview it is given (usually the gridview of one process 
(maybe you read your grid on all processes and don’t distribute it (i.e. don’t 
call loadBalance); then it would assemble on the whole grid on all processes) 
it is given and the linear solver handles all the communication during solve.

Parts that should only run on one process, you can of course wrap in a «if 
comm.rank() == process_idx». Or you can make a subcommunicator of one process 
and give that to the grid on construction, again depending on what you are 
trying to achieve.

Best
Timo



Timo
16. jun. 2022 kl. 18:53 skrev Ana Carolina Loyola <[email protected]>:


Hello,
I am working on a multi-domain problem in Dumux 3.2 and I am aware that I can 
not solve the system in parallel when using multi-domain. However, there are 
some things in the code that I would like to parallelize. Is there a way of 
"tricking" the NewtonSolver class so it won't know that I am working with 
several processors and will solve the system with only one of them ?

Thanks in advance,

Ana
_______________________________________________
DuMux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux
_______________________________________________
DuMux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to