Skip to content

CoarsenRefStatus possibly reporting wrong time index #18

@jcc242

Description

@jcc242

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 lastly T0.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions