Conversation
8f7aefd to
5c6e72f
Compare
d2534d6 to
8b44697
Compare
jedbrown
left a comment
There was a problem hiding this comment.
Thanks for taking the lead on this.
e338f3a to
b18e302
Compare
|
The Julia CI issue seems to be related the Release/Dev test split. |
634576b to
d27cf79
Compare
|
Fun new OCCA backend bug! The OCCA backend attempts to fully build and validate an Operator as part of its process for destroying an Operator, resulting in t508 failing. I'm investigating how best to fix this. There is no reason whatsoever to validate the operator fields as a prerequsite to destroying an Operator. |
|
Ok, the OCCA backend is pretty opaque to me and my C++ is not too great. I'll probably need help to fix this the right way. We could also just skip that test for OCCA and file another issue against the backend to be fixed sometime in the future. |
b8d1006 to
9335683
Compare
|
While we're here, any objections to raising these to the public API level? CEED_EXTERN int CeedOperatorGetNumElements(CeedOperator op, CeedInt *num_elem);
CEED_EXTERN int CeedOperatorGetNumQuadraturePoints(CeedOperator op,
CeedInt *num_qpts);maybe also this one? CEED_EXTERN int CeedOperatorGetQFunction(CeedOperator op, CeedQFunction *qf); |
Just need to clarify what happens if you call those on a composite operator. Either it consults each of its sub-operators and aggregates the result or it returns error (or something out of band, like |
6ebdb00 to
c4ba7f8
Compare
Add ceedversion_ge, which performs the same comparison as the macro CEED_VERSION_GE. Non-release builds compare as infinity.
…ements, NumQuadraturePoints] to public API
20c434f to
e78171e
Compare
|
Ok, this all should be fine to merge now - I think I'll talk a bit about our modern interfaces in my PSAAP slides |
| let slice = unsafe { | ||
| std::slice::from_raw_parts( | ||
| &ptr as *const bind_ceed::CeedElemRestriction as *const crate::ElemRestriction, | ||
| 1 as usize, | ||
| ) | ||
| }; | ||
| ElemRestrictionOpt::Some(&slice[0]) |
There was a problem hiding this comment.
I found this safe and less contorted way to do this. https://docs.rs/ref-cast/1.0.6/ref_cast/
Co-authored-by: Jed Brown <jed@jedbrown.org>
I also want to add this to the Rust interface to make my mini-app development in Rust easier.