We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd68345 commit c31de8dCopy full SHA for c31de8d
fenris-solid/src/materials.rs
@@ -268,7 +268,8 @@ where
268
let J = F.determinant();
269
270
if J <= T::zero() {
271
- todo!("How to address non-positive J? (J = {})", J);
+ // TODO: How to address this? Might have to address in the API itself?
272
+ OMatrix::<T, D, D>::repeat(T::from_f64(f64::NAN).unwrap())
273
} else {
274
let logJ = J.ln();
275
let F_inv = F
@@ -292,7 +293,8 @@ where
292
293
294
295
296
297
298
299
300
0 commit comments