fix for nil model-changed christoffel

This commit is contained in:
Zeno Rogue 2023-08-07 20:04:17 +02:00
parent 07aa843f18
commit 097ded1bd0
1 changed files with 4 additions and 4 deletions

View File

@ -803,10 +803,10 @@ EX namespace nilv {
convert_tangent_ref(P, V, model_used, nmHeis);
convert_tangent_ref(P, T, model_used, nmHeis);
auto res = christoffel(P, V, T, nmHeis);
convert_tangent_ref(P, res, nmHeis, model_used);
// this is acceleration, not tangent, so:
res[2] += (model_used-nmHeis) * V[0] * V[1];
return res;
auto T1 = T + res;
convert_tangent_ref(P + V, T1, nmHeis, model_used);
return T1 - Transported;
}
}