Giter Site home page Giter Site logo

Comments (4)

lesommer avatar lesommer commented on June 1, 2024

The natural approach is probably to create a generic_3d_grid class in oocgcm.core.

Some of the methods that work in generic_2d_grid will need to eventually be externalized so that we can reuse them in generic_3d_grid (e.g : change_grid_location).

It is probably safer to start by duplicating the methods available in generic_2d_grid, write the unit test and then rationalize the duplications.

any timeline for this functionnality on you side ?

from oocgcm.

apatlpo avatar apatlpo commented on June 1, 2024

This is not critical for us, it can wait a few weeks.
We will eventually perform vertical and volume integrations.

from oocgcm.

simon3122 avatar simon3122 commented on June 1, 2024

Hi Julien,
we were wondering with Aurelien what was your timeline about the implementation of the vertical grid in oocgcm?
we'll soon have to deal with it and if you don't have much time to do it we could give it a shot provided we agree on the overall structure of the code / way to proceed.
cheers

from oocgcm.

apatlpo avatar apatlpo commented on June 1, 2024

Hi all,

The following commit ce67ffd is a first draft at implementing vertical coordinates in oocgcm.
It's heavily inspired from what was done for the horizontal.
A thorough clean up of the code will follow soon (leftovers parts from the horizontal code remain).

Some food for thought:
Doing this I got a bit worried about how grids are treated in the current version of the code.
For nemo's z levels application, I think the present structure will do fine.
But for other vertical coordinate systems such as terrain following ones, horizontal and vertical
grids are intimately related (think about pressure gradient computation typically) and I don't think
the present structure will handle these situations well.
In these cases the vertical grid object will have to directly build upon the horizontal one (which may be
common among different grid systems) and I don't think we'll get around having one object that
relies on both grids.

cheers

from oocgcm.

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.