With only 7GB RAM, there is no way of using a direct solver to run the above code, as Stein already said (if it has over 5 million dofs).
Additionally, using 24 processes for 5 million dofs is likely overkill, see for instance
With only 7GB RAM, there is no way of using a direct solver to run the above code, as Stein already said (if it has over 5 million dofs).
Additionally, using 24 processes for 5 million dofs is likely overkill, see for instance