Skip to content

Conversation

@jeremylt
Copy link
Member

@jeremylt jeremylt commented Jan 14, 2026

@zatkins-dev this should simplify some of the logging logic, as we won't have to have different view logic for each Ceed*

We can now:

CeedObjectView((CeedObj)foo, stdout);

I'll be doing other stuff for the next few days, so feel free to tinker with this if you like. No worries if not - I'll finish it next week sometime

@jeremylt jeremylt self-assigned this Jan 14, 2026
@jeremylt jeremylt force-pushed the jeremy/ceed-object branch 2 times, most recently from 0d04399 to 4a7536e Compare January 14, 2026 20:57
@jeremylt
Copy link
Member Author

I should probably add tests or exclude the new viewing functionality from tests? Its not super likely to ever break

@jeremylt
Copy link
Member Author

Thoughts - Do we also want CeedObjectDestroy ? (Easy to add) And do we want the view tabs to be added to the CeedObject? I'm thinking yes for both

@zatkins-dev
Copy link
Collaborator

Thoughts - Do we also want CeedObjectDestroy ? (Easy to add) And do we want the view tabs to be added to the CeedObject? I'm thinking yes for both

I would say yes for both

Comment on lines +32 to +38
int CeedObjectCreate(Ceed ceed, int (*view_function)(CeedObject, FILE *), CeedObject obj) {
obj->ceed = NULL;
if (ceed) CeedCall(CeedReferenceCopy(ceed, &obj->ceed));
obj->ViewFunction = view_function;
obj->ref_count = 1;
return CEED_ERROR_SUCCESS;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Note: I understand why, but this is technically a different interface (taking a CeedObject instead of a CeedObject *) than other *Create methods in libCEED. Do we want to add a note that this function that obj is the address of a CeedObject_private (more accurate than the current wording)?

@jrwrigh
Copy link
Collaborator

jrwrigh commented Jan 17, 2026

I think another addition here might be to add a name field to CeedObject though I think that can be in a follow-on PR.

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