ReduceVecScal calls added. For Alfven speeds.

This commit is contained in:
Miikka Vaisala
2020-09-11 15:54:53 +08:00
parent b815b62aa7
commit 94d1d053bc
3 changed files with 56 additions and 4 deletions

View File

@@ -126,6 +126,15 @@ acReduceVec(const ReductionType rtype, const VertexBufferHandle a, const VertexB
return result;
}
AcReal
acReduceVecScal(const ReductionType rtype, const VertexBufferHandle a, const VertexBufferHandle b,
const VertexBufferHandle c, const VertexBufferHandle d)
{
AcReal result;
acNodeReduceVecScal(nodes[0], STREAM_DEFAULT, rtype, a, b, c, d, &result);
return result;
}
AcResult
acStoreWithOffset(const int3 dst, const size_t num_vertices, AcMesh* host_mesh)
{