abarret / clotting_model

An IBAMR implementation of Fogelson and Guy, 2008
2 stars 0 forks source link

Added function to compute convolution. #4

Closed abarret closed 2 years ago

abarret commented 2 years ago

This computes a convolution of (alpha * a + beta * b) and a function phi(r) at a specified cell index. Note that phi is assumed to be of the form phi(r) = phi(x)*phi(y) (like IB delta functions).

@jmcragun, take a look and feel free to merge if this makes sense to you.

jmcragun commented 2 years ago

Can I call this function from ActivatedPlateletSource.cpp simply by locally including it or would the setup process be more applied?

abarret commented 2 years ago

Can I call this function from ActivatedPlateletSource.cpp simply by locally including it or would the setup process be more applied?

Yeah. You need to include the header utility_functions.h to get the definition of the function, and then the linker will fill in the definition.