Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove all references to standalone h_ij matrix #25

Closed
j-c-cook opened this issue May 12, 2021 · 0 comments · Fixed by #30
Closed

Remove all references to standalone h_ij matrix #25

j-c-cook opened this issue May 12, 2021 · 0 comments · Fixed by #30

Comments

@j-c-cook
Copy link
Owner

The library makes use of a reduced segment response matrix that is inside of a struct

struct SegmentResponse {
~SegmentResponse() {} // destructor
int nSources;
int nSum;
vector < vector < double > > h_ij;
vector<gt::boreholes::Borehole> boreSegments;
SegmentResponse(int nSources, int nSum, int nt) : nSources(nSources), boreSegments(nSources),
h_ij(nSum, vector<double>(nt, 0)), nSum(nSum)
{} // constructor
// storage_mode = 1 is the reduced segment response vector
int storage_mode = 1;
// void ReSizeContainers(int n, int nt);
void get_h_value(double &h, int i, int j, int k);
void get_index_value(int &index, int i, int j);

There used to be an h_ij vector that stood alone and was passed around. It needs removed.

@j-c-cook j-c-cook linked a pull request May 15, 2021 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant