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

auto_write cellLevel_, pointLevel_, and level0Edge_ #9

Closed
wants to merge 2 commits into from
Closed

Conversation

luanmingyi
Copy link
Contributor

@luanmingyi luanmingyi commented Jul 30, 2020

Dear developers,

In the hexRef.C, the variables cellLevel_, pointLevel_, and level0Edge_ are set to NO_READ and NO_WRITE. While that set will cause the refined mesh can not be unrefined when recalculating from the breakpoint, because of missing the level message. If you think my opinion is reasonable, you can consider this pull request.

Best wishes.

@jheylmun
Copy link
Collaborator

jheylmun commented Aug 6, 2020

There are a couple of different constructors for the hexRef class. When the levels and level0Edge fields are not provided they are set to READ_IF_PRESENT. Only when the lists are provided are the fields set to NO_READ. You should be able to restart simulations and have the refinement continue as expected. I just double checked with the Riemann2D case.

@jheylmun jheylmun closed this Aug 6, 2020
@jheylmun
Copy link
Collaborator

jheylmun commented Aug 6, 2020

The fields are also written by explicitly calling cellLevel_.write(), pointLevel_.write(), and level0Edge_.write() in the hexRef::write() function. If you look in the timeName/polyMesh folder everything will be there.

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.

2 participants