-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace cubic interpolation with Band-Limited Interpolation (#151)
* Standardise the interpolation notation * Replace interpolation functions (#144) * Replace interpolation calls in omp loop L#1171-1193 * Successfully replace split-field interpolation (pending Mac brew fix) * Highlight fieldsample for extraction * Remove debug variables * Remove old interpolation call to bandlimited method * Use simpler notation in loop * replace 3D interpolation, iterator.cpp L4545 * Replace all calls on L4545 * Replace all interpolation calls * Reduce code bloat by moving up class hierachy * Remove old interpolation function files * Change extraction logic to avoid seg-faults * Reintroduce functionality, found error * Now everything seems to work * Interpolation is working! * Cleanup unused functions * Fix typo in MagneticSplitField's Hz-interpolation proceedure * Code formatting * Apply suggestions from code review Have avoided renaming functions, as that needs to be done consistently on my local branch. Co-authored-by: Sam Cunliffe <[email protected]> * Update tdms/include/field.h Missed one Co-authored-by: Sam Cunliffe <[email protected]> * Rename TE/TM functions to full-names * Random indent offset fix * TE/TM to full names (@samcunliffe) * Fix missing template * Adding a `CellCoordinate` class to group `i,j,k` (#149) * CellCoordinate into every declaration in field.h that has i,j,k * Field (and subclass) methods only take CellCoordinates now * Pragma once for cell_coordinate * Update tests to use cell_coordinate * CellCoordinate into every declaration in field.h that has i,j,k * Field (and subclass) methods only take CellCoordinates now * Pragma once for cell_coordinate * Update tests to use cell_coordinate * Catch stray j variable * Add docstrings to CellCoordinate * @samcunliffe's line shortening * Catch offset change in function definition * Remove additional logger statement * Interpolation method as a toggle (#199) * Add command line option to toggle interpolation method * Docment command-line option * Actually add ability to toggle behaviour * Update interpolation determination test * Sam's suggestions * Fix main test merge in Co-authored-by: willGraham01 <[email protected]> * Cubic interpolation fix in arc_01 2D-simulation * Update system tests (#202) * Create new test class, update test_arc01 * Use a config file to organise the tests * Parameterise, and add pytest-check * More tests going in, urls still broken * Update all links to Zenodo sandbox * Remove separate test files - they're all in one now * Update to latest sandbox version * Update to point to published Zenodo * Add docstrings and help * Add pyyaml to requirements.txt Co-authored-by: Sam Cunliffe <[email protected]>
- Loading branch information
1 parent
063f4a1
commit a60f7be
Showing
35 changed files
with
1,207 additions
and
2,389 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
* @author William Graham ([email protected]) | ||
* @brief Class declaration for Yee cell coordinates | ||
*/ | ||
#pragma once | ||
|
||
class CellCoordinate { | ||
|
||
|
@@ -11,11 +12,22 @@ class CellCoordinate { | |
int cell_i = 0, cell_j = 0, cell_k = 0; | ||
|
||
public: | ||
/** | ||
* @brief Construct a new Cell Coordinate object | ||
* | ||
* @param i,j,k The cell index to assign | ||
*/ | ||
CellCoordinate(int i = 0, int j = 0, int k = 0) { | ||
cell_i = i; | ||
cell_j = j; | ||
cell_k = k; | ||
}; | ||
/** | ||
* @brief Construct a new Cell Coordinate object, passing in a contiguous block of memory | ||
* | ||
* @param indices The indices of the cell index to assign, in the order i,j,k | ||
* @param buffer_start First index to read the indices from | ||
*/ | ||
CellCoordinate(int *indices, int buffer_start = 0) { | ||
cell_i = indices[buffer_start]; | ||
cell_j = indices[buffer_start + 1]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.