Requirement

Aug 9, 2012 (mlevy)

At each time step, CVMix needs to provide the model with updated viscosity and diffusivity coefficients.

Design Solution

Aug 9, 2012 (mlevy)

There are two options on the table for how to handle the output:

  1. Memory Copy -- CVMix will allocate memory for the diffusivity and viscosity coefficients, and the model will copy these values out after CVMix runs.
  2. Pointers -- CVMix will use pointers to store the address where the model stores the coefficients, and update them directly.
Implementation

Aug 9, 2012 (mlevy)

Doug posted a strong argument in favor of the pointer option in ?Pointers vs. Arrays; I plan on providing a stand-alone driver with memory copies (using a vmix_get() routine that corresponds to the previously mentioned vmix_put()) for the next tag (#03), and would be interested in discussing how pointers could be used in that framework once the tag exists.

  • No labels