Comments (5)
Maybe we should take a step back and think about what our goal is? What do we want from this system? Will this simplify the MITgcm algorithm?
from oceananigans.jl.
I think broadcasting for same-field operators, e.g. CellField .+ CellField
would be really useful and make the code more readable. The simplification here is fewer loops to look at which is a big plus I think.
But cross-field broadcasting is a bit trickier so might be better to leave it unimplemented especially as it's not a very common operation, I only use it when adding f .* v
to Gu
or f .* u
to Gv
. Without it you would have to explicitly write u .+ avgx(avgy(v))
so if you forget it then it might make finding the bug a bit harder. With it, you can just write u .+ v
with the averaging happening behind the scenes, so you might apply it by mistake without realizing it. Another potentially difficult bug to find.
I feel like everyone has a different opinion on this but in my mind, I'm thinking this would make the code easier to read and write (short-term), and ultimately easier to extend by users (long-term).
I just sometimes use issues leave random TODO notes and ramble.
from oceananigans.jl.
Will not implement cross-field operations for now, e.g. FaceFieldX .+ CellField
. Too complex and rarely used.
from oceananigans.jl.
Reopening as this is becoming relevant for online diagnostics which may need a lot of these operations. E.g. w*T
as @glwagner points out.
from oceananigans.jl.
This was resolved in PR #463.
from oceananigans.jl.
Related Issues (20)
- Allow single column grids with a specific location HOT 1
- Error when using `OpenBoundaryCondition` with `HydrostaticFreeSurfaceModel` HOT 35
- Using `LagrangianParticles` with `Flat` topology hits wrong function dispatch when computing fractional indices HOT 1
- More / more flexible Smagorinsky models HOT 8
- Outdated docs on background diffusivity/viscosity HOT 1
- Are `GradientBoundaryCondition`s set by the outward normal component or the coordinate-aligned component? HOT 1
- Segmentation Fault when trying to run a script HOT 22
- Post-Checkpoint Output Saving Interval Issue HOT 16
- `Mem.free` is deprecated HOT 1
- Add in documentation for user defined vertical diffusivity profile in the hydrostatic model HOT 3
- Error in AveragedTimeInterval Output HOT 32
- Documentation 2.0 HOT 3
- Egregious errors in `NonhydrostaticModel` simulations on `ImmersedBoundaryGrid` when nonhydrostatic pressure is not separated HOT 21
- `cell_advection_timescale` (and CFL) does not account for `Flat` topologies HOT 1
- Support passing keyword arguments to `jldopen` when using `FieldTimeSeries` HOT 1
- `PartialCellBottom` needs to be adapted correctly for the GPU when using a `HydrostaticFreeSurfaceModel` HOT 4
- Performance benchmarks section of the README is super out of date HOT 3
- `view` fails on a `Field` indexed from `FieldTimeSeries`
- Ocenanigans license HOT 5
- Reducing parameter space usage by `LatitudeLongitudeGrid` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oceananigans.jl.