-
Notifications
You must be signed in to change notification settings - Fork 25
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
CoarsenRefStatus possibly reporting wrong time index #18
Comments
These changes seem to fix the issue: I'm not sure what the consequences are of calling
in |
I would not use 'idx' for the coarse point. It looks as though it would make sense to provide both the fine and corresponding coarse indexes in CoarsenRefStatus. So, I would add a 'c_idx' variable to the core in the CoarsenRefStatus section and add a braid_StatusGetCTIndex routine. Does that make sense? |
Hi All,
Thanks for finding this bug Josh!
Rob's suggestions make sense to me, that we use 'idx' for the fine index,
and a new core variable 'c_idx' for the coarse index. Then, there can be
two routines say, braid_StatusGetCTindex and braid_StatusGetFTindex, that
are supported in the coarsen and refine routines.
Cheers,
Jacob
…On Thu, Dec 20, 2018 at 12:55 PM Rob Falgout ***@***.***> wrote:
I would not use 'idx' for the coarse point. It looks as though it would
make sense to provide both the fine and corresponding coarse indexes in
CoarsenRefStatus. So, I would add a 'c_idx' variable to the core in the
CoarsenRefStatus section and add a braid_StatusGetCTIndex routine. Does
that make sense?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#18 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AEjD40W3ekCKHt9QmQvFz2csUR0pDAEqks5u6-sogaJpZM4Zct2p>
.
|
That makes sense, I'll look into it. |
@jcc242 Thanks! Jacob |
I set up a simple time domain with 5 points on the coarse time grid and uniformly tag the entire coarse time domain for refinement by some factor. I am doing spatial refinement as well.
During my spatial refinement function, the time index I get from braid_CoarsenRefStatusGetTIndex() appears to be giving me values that are wrong or invalid. It appears I am getting the following correspondence between time points and indices:
(Point, Index): (T0,3) (T1,0) (T2,1) (T3,2) (T4,3)
That is, the time index 3 is associated with the first time point of my coarse time domain, then counting up starts at T1.
Is this because the time index is not set by _braid_CoarsenRefStatusInit like it is in _braid_StepStatusInit, and so just using (or reusing) whatever value was set last into the struct? This theory corresponds to the order of calling refinement,
T1, T2, T3, T4
then lastlyT0
.Note that I am deducing what time point I am at by looking at the value returned from time, and the values of my state vector match the time so I feel comfortable with assuming the time is correct.
The text was updated successfully, but these errors were encountered: