Git Product home page Git Product logo

Comments (3)

lucduron avatar lucduron commented on May 30, 2024

Dear Keith,

Thank you for reporting this performance issue, which might occur as I do not have as many boundaries (or islands) in my meshes.
The cost of build_ipobo is probably also related to the complex implementation of iter_on_boundaries (maybe we can do better).
Do you have in ADCIRC mesh format the information to build the IPOBO table? Or would you like to set the table to 0 and compute it afterwards (in BlueKenue for example)?
Concerning the proposal of adding an argument to provide the IPOBO table, it is a good idea and I think it should be in from_triangulation, as some verifications can be done (at least shape of the array).

Best Regards,
Luc

from pyteltools.

krober10nd avatar krober10nd commented on May 30, 2024

Hey Luc,

Thanks for your timely response.

I can calculate the IPOBO table in Python directly from the IKLE table (I call it entities in my codes). I have some code that perhaps could be inherited here.

https://github.com/CHLNDDEV/oceanmesh/blob/master/oceanmesh/edges.py#L114

This function computes the edges of the boundary of a mesh in winding order and can handle meshes with many boundaries. Then it should be walk the edges, increment a counter, and load this into the right position in the IPOBO table.

I can draft up PR shortly.

from pyteltools.

lucduron avatar lucduron commented on May 30, 2024

I close this issue, because I merged your pull request (thank you!).

SerafinHeader.from_triangulation has now an option to provide an IPOBO table (and avoid the call to SerafinHeader.build_ipobo). Moreover the IPOBO table seems to useless (not read) for Telemac...

from pyteltools.

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.