Skip to content

Set location in LaplaceCyclic::solve() and DC() - #1368

Merged
johnomotani merged 4 commits into
masterfrom
cyclicAndDCLocation
Nov 16, 2018
Merged

Set location in LaplaceCyclic::solve() and DC()#1368
johnomotani merged 4 commits into
masterfrom
cyclicAndDCLocation

Conversation

@johnomotani

Copy link
Copy Markdown
Contributor

Merge bugfix from #1367 to master also.

bendudson
bendudson previously approved these changes Nov 13, 2018
x.setLocation(location);

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

@d7919 d7919 Nov 13, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A minor change but rhs.getCoordinates() might be preferred here.

@d7919

d7919 commented Nov 14, 2018

Copy link
Copy Markdown
Member

Are the other Laplacian implementations setting the location correctly?

Neater than previous mesh->getCoordinates(location) calls.
Pass the location to delp2solver in LaplaceNaulin.

Set location of result in solve() method of LaplaceXY, LaplaceXZcyclic
and LaplaceXZpetsc.
@johnomotani

Copy link
Copy Markdown
Contributor Author

Are the other Laplacian implementations setting the location correctly?

Good point. Sorry I didn't check properly the first time around. There were indeed a few more places that location needed setting (see 7965a62).

I guess this kind of issue is telling us we need more tests... sorry I don't have time to design them at the moment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants