Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ can be written simply as:
```cpp
ddt(rho) = -V_dot_Grad(v, rho) - rho*Div(v);
ddt(p) = -V_dot_Grad(v, p) - g*p*Div(v);
ddt(v) = -V_dot_Grad(v, v) + ((Curl(B)^B) - Grad(p))/rho;
ddt(B) = Curl(v^B);
ddt(v) = -V_dot_Grad(v, v) + (cross(Curl(B),B) - Grad(p))/rho;
ddt(B) = Curl(cross(v,B));
```

The full code for this example can be found in the [orszag-tang
Expand Down
1 change: 1 addition & 0 deletions src/field/field3d.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1234,6 +1234,7 @@ Field2D DC(const Field3D &f, REGION rgn) {
Mesh *localmesh = f.getMesh();
Field2D result(localmesh);
result.allocate();
result.setLocation(f.getLocation());

const Region<Ind2D> &region = localmesh->getRegion2D(REGION_STRING(rgn));

Expand Down
3 changes: 2 additions & 1 deletion src/invert/laplace/impls/cyclic/cyclic_laplace.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,9 @@ const Field3D LaplaceCyclic::solve(const Field3D &rhs, const Field3D &x0) {
Mesh *mesh = rhs.getMesh();
Field3D x(mesh); // Result
x.allocate();
x.setLocation(location);

Coordinates *coord = mesh->getCoordinates();
Coordinates *coord = mesh->getCoordinates(location);

// Get the width of the boundary

Expand Down