Giter Site home page Giter Site logo

periodic_box.prm fails about aspect HOT 11 CLOSED

geodynamics avatar geodynamics commented on June 11, 2024
periodic_box.prm fails

from aspect.

Comments (11)

bangerth avatar bangerth commented on June 11, 2024

Isn't it correct, though, that in that case there matrix does and should have a null space? Do we need to impose constraints for the testcase to remove the nullspace?

from aspect.

tjhei avatar tjhei commented on June 11, 2024

What we have done successfully in the past is to:

  1. ignore the nullspace during assembly/solve with GMRES staying in the same subspace
  2. remove the nullspace as a postprocess

from aspect.

bangerth avatar bangerth commented on June 11, 2024

Good point. So what do we do here?

from aspect.

tjhei avatar tjhei commented on June 11, 2024

Before we mark this as resolved, I have one more data point:

Take tests/depth_average_01.prm, increase global refinement by one and switch back to Q4 -> crash. This can be fixed by either switching to Q1 or by setting cheap solver steps = 0. Crazy.

from aspect.

bangerth avatar bangerth commented on June 11, 2024

The way I read the discussion over on the deal.II testcase I created is that this is really a failure in Trilinos to compute things relative, not absolute. I think we need to do something like this in the Trilinos solver wrappers:

  const double scaling_factor = 1./rhs.l2_norm();
  rhs *= scaling_factor;
  solution *= scaling_factor;
  ... do as before...
  rhs /= scaling_factor;
  solution /= scaling_factor;

I'll have to try something along these lines in the coming week.

We could also fix this in ASPECT, but I think it should go into deal.II.

from aspect.

tjhei avatar tjhei commented on June 11, 2024

@bangerth, all this won't solve our issue here though. If you switch to our CG implementation, you will get

The iterative (top left) solver in BlockSchurPreconditioner::vmult did not converge. It reported the following error:
Iterative method reported convergence failure in step 10000. The residual in the last step was 0.107138.

from aspect.

bangerth avatar bangerth commented on June 11, 2024

Well, the change might fix depth_average, not periodic_box. I think these are separate issues.

I don't really know what to do here :-(

from aspect.

tjhei avatar tjhei commented on June 11, 2024

Ideas:

  1. figure out how to do diagonal strengthening or something for the coarse KLU.
  2. give ML the constant mode for the displacement
  3. fix the displacement to make the system uniquely solvable (somewhat complicated)

from aspect.

bangerth avatar bangerth commented on June 11, 2024

I think you're going to have an extremely hard time to figure out the null space just from the domain and the description of what the boundary conditions are. It's sort of a pattern matching problem that humans are good at but that are difficult to put into rules :-(

from aspect.

ian-r-rose avatar ian-r-rose commented on June 11, 2024

For what it's worth, a PETSc build of Aspect runs this test without crashing.

from aspect.

gassmoeller avatar gassmoeller commented on June 11, 2024

closed by #328

from aspect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.