GithubHelp home page GithubHelp logo

Comments (9)

alexfikl avatar alexfikl commented on August 29, 2024 1

What sort of meshes are these? I've only been able to trigger that if there was actually something weird with the mesh.

You can work around it from the outside by setting node_vertex_consistency_tolerance in the mesh constructor:

node_vertex_consistency_tolerance=None,

By default it uses 1.0e+3 * eps, I think.

from meshmode.

inducer avatar inducer commented on August 29, 2024 1

Could we use the size of the bounding box of each element individually?

I like that idea. Since this is an element-scale error, comparing to another element-scale quantity is likely a better idea (and more robust) than anything to do with the overall mesh size.

@majosm, could you do a PR?

from meshmode.

matthiasdiener avatar matthiasdiener commented on August 29, 2024

We have seen it most recently with this: https://github.com/illinois-ceesd/drivers_y2-isolator/tree/main/data/3D/eightX_injection

from meshmode.

alexfikl avatar alexfikl commented on August 29, 2024

Hm, I don't think the gmsh reader has a way to pass down the tolerance (most things in mesh.generation do), so this might need a bit of work.

EDIT: It does by setting mesh_construction_kwargs!

output_file_name="output.msh", mesh_construction_kwargs=None,

from meshmode.

alexfikl avatar alexfikl commented on August 29, 2024

@matthiasdiener I just tried that mesh with just

from meshmode.mesh.io import read_gmsh
mesh = read_gmsh("isolator.msh")

and it didn't throw an error for me, weirdly. What version of gmsh are you using?

EDIT: Also, the mesh that I get from calling make_mesh.sh seems to be different than the one that's in the repo, but both read just fine.

from meshmode.

matthiasdiener avatar matthiasdiener commented on August 29, 2024

These errors seem to be dependent on rank numbers as well. I tried https://github.com/illinois-ceesd/drivers_y2-isolator/test_mesh/lazy/oneX with 32 ranks, which does not trigger the assertion above, but 64 ranks trigger it.

from meshmode.

alexfikl avatar alexfikl commented on August 29, 2024

These errors seem to be dependent on rank numbers as well. I tried illinois-ceesd/drivers_y2-isolator/test_mesh/lazy/oneX with 32 ranks, which does not trigger the assertion above, but 64 ranks trigger it.

Do the partitions look reasonable?

The error in the check is relative tol * size, where size is the bounding box of the mesh and tol ~ 1.0e-13. The only way I can see that failing like in your original report is if the size is very small for some reason.. Hm..

from meshmode.

majosm avatar majosm commented on August 29, 2024

Seems like we should change the definition of size to make it independent of partitioning? Could we use the size of the bounding box of each element individually?

from meshmode.

majosm avatar majosm commented on August 29, 2024

@matthiasdiener Can you try #316 on some of your isolator runs? (It should be independent of partitioning now; just want to make sure the tolerance isn't too tight.)

from meshmode.

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.