Dear Dumux community,

what is the best way of getting the degrees of freedom of a problem?

int dof = gridGeometry->numDofs();

returns the DOF of one MPI process. I can estimate using

int n = gridGeometry->numDofs();
n = gridGeometry->gridView().comm().sum(n);
std::cout << "The DOF are less then: " << n << " \n" << std::flush;

Cheers,

Daniel



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

Reply via email to