Commit 847f1cd5 authored by Santiago Ospina's avatar Santiago Ospina
Browse files

[Flux Reconstruction] Accumulate local vector in local engine

parent 148df3a1
......@@ -386,7 +386,7 @@ public:
// Load residual view into the local residual vector
for (unsigned int i = 0; i < lfsv_volume.size(); ++i)
r_vec[i] = rl(lfsv_volume,i);
r_vec[i] += rl(lfsv_volume,i);
auto& lfsu = lfsu_cache.localFunctionSpace();
......@@ -479,7 +479,7 @@ public:
// Load residual view into the local residual vector
for (unsigned int i = 0; i < lfsv_skeleton.size(); ++i){
r_vec[i+offset] += weight*rl(lfsv_skeleton,i);
r_vec[i+offset] += rl(lfsv_skeleton,i);
}
if constexpr (extended) {
......@@ -493,7 +493,7 @@ public:
// Load residual view into the local residual vector
for (unsigned int i = 0; i < lfsv_volume.size(); ++i){
r_vec[i] += weight*rl(lfsv_volume,i);
r_vec[i] += rl(lfsv_volume,i);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment