Can move forcing vector information now from the host to device.

next step in to generate random waves in the CPU with a chosen degree of helicity etc.
This commit is contained in:
Miikka Vaisala
2019-06-26 17:41:39 +08:00
parent 231a8aa06e
commit be0e46c814
4 changed files with 41 additions and 22 deletions

View File

@@ -158,6 +158,19 @@ extern "C" {
FUNC(AC_angl_uu), \
FUNC(AC_lnrho_edge),\
FUNC(AC_lnrho_out),\
/* Forcing parameters. User configured. */\
FUNC(AC_forcing_magnitude),\
/* Forcing parameters. Set by the generator. */\
FUNC(AC_forcing_phase),\
FUNC(AC_k_forcex),\
FUNC(AC_k_forcey),\
FUNC(AC_k_forcez),\
FUNC(AC_ff_hel_rex),\
FUNC(AC_ff_hel_rey),\
FUNC(AC_ff_hel_rez),\
FUNC(AC_ff_hel_imx),\
FUNC(AC_ff_hel_imy),\
FUNC(AC_ff_hel_imz),\
/* Additional helper params */\
/* (deduced from other params do not set these directly!) */\
FUNC(AC_G_CONST),\
@@ -373,6 +386,11 @@ AcResult acQuit(void);
unless otherwise stated. */
AcResult acSynchronize(void);
/** Tool for loading forcing vector information into the device memory
*/
AcResult acForcingVec(const AcReal forcing_magnitude, const AcReal3 k_force, const AcReal3 ff_hel_re,
const AcReal3 ff_hel_im, const AcReal forcing_phase);
/* End extern "C" */
#ifdef __cplusplus
}