Solved the forcing function boundary problem.
This commit is contained in:
@@ -508,7 +508,7 @@ 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)
|
||||
const AcReal3 ff_hel_im, const AcReal forcing_phase, const AcReal kaver)
|
||||
{
|
||||
|
||||
for (int i = 0; i < num_devices; ++i) {
|
||||
@@ -526,6 +526,9 @@ acForcingVec(const AcReal forcing_magnitude, const AcReal3 k_force, const AcReal
|
||||
loadDeviceConstant(devices[i], AC_ff_hel_imx, ff_hel_im.x);
|
||||
loadDeviceConstant(devices[i], AC_ff_hel_imy, ff_hel_im.y);
|
||||
loadDeviceConstant(devices[i], AC_ff_hel_imz, ff_hel_im.z);
|
||||
|
||||
loadDeviceConstant(devices[i], AC_kaver, kaver);
|
||||
|
||||
}
|
||||
|
||||
return AC_SUCCESS;
|
||||
|
Reference in New Issue
Block a user