Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oskooi committed Jul 5, 2021
1 parent a43d124 commit 304a402
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/fields.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ fields_chunk::~fields_chunk() {
}

static void split_into_tiles(grid_volume gvol, std::vector<grid_volume> &result) {
size_t base_nowned_min = 1000;
const size_t base_nowned_min = 1000;
if (gvol.nowned_min() < base_nowned_min) {
result.push_back(gvol);
return;
Expand Down
2 changes: 1 addition & 1 deletion src/meep.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@ class fields_chunk {

double a, Courant, dt; // resolution a, Courant number, and timestep dt=Courant/a
grid_volume gv;
std::vector<grid_volume> gvs; // subregions for cache-tiled execution of step_curl
std::vector<grid_volume> gvs; // subdomains for cache-tiled execution of step_curl
volume v;
double m; // angular dependence in cyl. coords
bool zero_fields_near_cylorigin; // fields=0 m pixels near r=0 for stability
Expand Down
4 changes: 2 additions & 2 deletions src/step_db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ bool fields_chunk::step_db(field_type ft) {
for (int iz = 0; iz <= gv_sub.nz(); ++iz) {
ptrdiff_t idx = ir * sr + iz;
f_rderiv_int[idx] =
f_rderiv_int[idx - sr] +
rinv * (f_p[idx] * (ir + ir0) - f_p[idx - sr] * ((ir - 1) + ir0));
f_rderiv_int[idx - sr] +
rinv * (f_p[idx] * (ir + ir0) - f_p[idx - sr] * ((ir - 1) + ir0));
}
}
f_p = f_rderiv_int;
Expand Down

0 comments on commit 304a402

Please sign in to comment.