Git Product home page Git Product logo

Comments (6)

pwolfram avatar pwolfram commented on September 26, 2024 1

Addressed by #14

from mpas-model.

pwolfram avatar pwolfram commented on September 26, 2024

cc @bradyrx @maltrud

from mpas-model.

pwolfram avatar pwolfram commented on September 26, 2024

Closed by #14

from mpas-model.

bradyrx avatar bradyrx commented on September 26, 2024

@pwolfram,

A (maybe) bug found in the global cell ID. Currently, the default particle to globalCellID returns a 1-based index of nCell that the particle is in. I imagine this is due to you pulling from the Fortran code.

Thus, a Python user has to adjust the globalID output to get at the actual cell the particle is within. Not doing so causes drastically different answers, since cells aren't ordered in an "orange peel" fashion to my knowledge.

Perhaps this isn't a bug and rather a design decision. Is the average user analyzing in, e.g. MATLAB and Fortran, or in something 0-based like Python? Something to consider.

from mpas-model.

pwolfram avatar pwolfram commented on September 26, 2024

@bradyrx, all indices in MPAS are 1-index and do need the index -= 1 approach in python prior to their use. This was a pre-existing, across the board design decision that was made. Good catch on this -- it will cause quite a difference if the -1 is not included!

from mpas-model.

bradyrx avatar bradyrx commented on September 26, 2024

@pwolfram , this and #4 should be incorporated into the make_particle_file.py file so that this information is included in the init file.

from mpas-model.

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.