CEED / libCEED

CEED Library: Code for Efficient Extensible Discretizations
https://libceed.org
BSD 2-Clause "Simplified" License
203 stars 47 forks source link

Overwriting Restriction #1663

Open jeremylt opened 2 months ago

jeremylt commented 2 months ago

For some nodal operators such as the BC operators in Ratel (and I think level transfer operators for multigrid?), it would be convenient to have a way to apply a CeedElemRestriction in CEED_TRANSPOSE that overwrites instead of summing into the target vector. Lots of ways to approach it, and I'm pondering on which I prefer. Feel free to comment

jrwrigh commented 2 months ago

I kinda lean towards an MPI-esque naming scheme. Maybe a CeedElemRestrictionSetReduceMode()? Where the mode can either be ADD or REPLACE?

jeremylt commented 1 month ago

ADD and INSERT would be my inclination, but yea, I like that approach