Skip to content
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 the new initialisation options to the Regent version #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LonelyCat124
Copy link
Collaborator

I've not tested correctness of this, which I'll do later by comparing checksums with another build once I can get SFP to clone the repo. I'm going to make it ready to review as I think this shouldn't cause issues.

Copy link
Collaborator

@sergisiso sergisiso left a comment

Choose a reason for hiding this comment

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

@LonelyCat124 Just one suggestion regarding the init ordering but everything else looks fine.

init_east(east_region[int2d({0,0})], TIDAL_MASK)
else
init_east(east_region[int2d({0,0})], SOLID_BOUNDARY)
end

init_north(north_region[int2d({0,0})])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Note that I changed the order of boundary order inits to west north east south. This affects the value of the NE corner, so it may be better to change it here as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmm if the value of the NE corner has changed I need to do a bit more work than reordering, as the east_region and north_region declarations are defined to be non-overlapping, so ordering is irrelevant (and they can execute in parallel). I'll have another look in a bit and check this matches still.

Copy link
Member

Choose a reason for hiding this comment

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

It's only the value of the T-mask in the boundary region, not inside the simulation domain (in case that helps you).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think not - it shouldn't be a big change either way, the simulation domain is all initialised by init_centre (or the launcher since that is also done in parallel).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I had forgotten about this - I'll try to look at this soon and fix it so this can be merged.

Copy link
Member

Choose a reason for hiding this comment

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

Having just reviewed Sergi's new PR, I see this one is still open. Do you (eventually) want to proceed with it @LonelyCat124 ?

Copy link
Collaborator Author

@LonelyCat124 LonelyCat124 Sep 7, 2022

Choose a reason for hiding this comment

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

I have forgotten what I needed to do - I think it would be good to do in principle but I don't remember what options I needed to add.

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

Successfully merging this pull request may close these issues.

4 participants