05.03., 9:00 - 11:00: Due to updates GitLab will be unavailable for some minutes between 09:00 and 11:00.

Commit 3dfa666b authored by Leonhard Rannabauer's avatar Leonhard Rannabauer

added source to space time predictor

parent a1e8b7f3
......@@ -280,7 +280,17 @@ int {{codeNamespace}}::fusedSpaceTimePredictorVolumeIntegral{{nameSuffix}}(
lQi_next[{{idx(0,0,xyz,n)}}] -= tmpArray[n];
}
}
{% endif%}
{% endif %}
{% if useSource %}
//call source
for (int xyz = 0; xyz < {{nDof**nDim}}; xyz++) {
solver.{{solverName}}::algebraicSource_scalar(lQi+{{idx(0,0,xyz,0)}}, {% if nPar != 0 %}lPi+{{idxLPi(0,0,xyz,0)}}{% else %}nullptr{%endif%}, tmpArray, center, tStep);
#pragma omp simd aligned(lQi_next,tmpArray:ALIGNMENT)
for (int n = 0; n < {{nVarPad}}; n++) {
lQi_next[{{idx(0,0,xyz,n)}}] -= tmpArray[n];
}
}
{% endif %}
{% if usePointSources %}
//add ith Ps derivative to lQi_next
for (int it_t = 0; it_t < {{nDof}}; it_t++) {
......@@ -557,6 +567,17 @@ int {{codeNamespace}}::fusedSpaceTimePredictorVolumeIntegral{{nameSuffix}}(
}
{% endif %}
{% if useSource %}
//call source
for (int xyz = 0; xyz < {{nDof**nDim}}; xyz++) {
solver.{{solverName}}::algebraicSource_scalar(lQhi+{{idx(0,0,xyz,0)}}, {% if nPar != 0 %}lPi+{{idxLPi(0,0,xyz,0)}}{% else %}nullptr{%endif%}, tmpArray, center, tStep);
#pragma omp simd aligned(lduh,tmpArray:ALIGNMENT)
for (int n = 0; n < {{nVarPad}}; n++) {
lduh[{{idx(0,0,xyz,n)}}] -= tmpArray[n] * weights3[{{idxW3(0,0,xyz)}}];
}
}
{% endif %}
return -1; //no picard iteration in linear case
}
Markdown is supported
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