-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mesh object #95
Add mesh object #95
Conversation
this is to prevent circular dependencies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think mesh
class made things a lot better. I left a lot of comments, mostly minor or easy to fix stuff. The most important point is the n
variable in tds_solve
. The suggested changes in the PR will probably cause some issues with tridiagonal solves, but the fix is easy and doesn't require any big structural changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few more points we might want to discuss in our meeting today
Still WIP, but so far the main changes are
|
I believe it is now ready to be reviewed/merged. |
I can checkout and test the PR on CUDA to make sure. Is it okay if I push into this PR some commits to fix if there are any minor issues we didn't catch by eye on the CUDA backend? I think we still don't have the automatic formatting set up, so can you run fprettify manually if you haven't done so? |
yes, go ahead with testing with cuda (and pushing here). And good point about fpretiffy, I will run that |
At the current stage it compiles and tests are passing, however the TGV case is failing on CUDA backend. I'll look into this and let you know when its all sorted. Working a bit on the new mesh and allocator made me realise that they're a bit tangled to each other, for now it should be alright, but I think we need to look into separating them in a better way maybe. I can open an issue to point out the things we can try later. |
It was a really weird bug... For some reason, the I had to remove the calls to Any thoughts why there was such a behaviour? First I thought it was due to |
I would like to implement something quick with We use The only case where it will be relevant is when we ask for So if you're not planning to use Or if you think the |
Yes, indeed. I implemented |
Okay, renamed the existing Then implemented a Also implemented a |
Looks good to me. A bit of a shame the logic of |
This PR implements the ideas discussed in #91
The current progress is the following:
The code function
mesh%get_n
isn't finalised yet because I am a bit unsure of the actual result it should return depending on the periodicity of the BC and thedata_loc
(VERT
,CELL
, etc.)@pbartholomew08 or @semi-h could you have a look at it?
closes #91