forked from StudioInfinity/dyna3
Compare commits
No commits in common. "2bae8d3df9de198deeb148040ad2c39d35c2b7d3" and "c73008d70235c72bec89f40078b850040c1a7d1a" have entirely different histories.
2bae8d3df9
...
c73008d702
2 changed files with 5 additions and 16 deletions
|
@ -18,16 +18,6 @@ pub fn AddRemove() -> View {
|
||||||
// this call is batched to avoid redundant realizations.
|
// this call is batched to avoid redundant realizations.
|
||||||
// it updates the element list and the regulator list,
|
// it updates the element list and the regulator list,
|
||||||
// which are both tracked by the realization effect
|
// which are both tracked by the realization effect
|
||||||
/* TO DO */
|
|
||||||
// it would make more to do the batching inside
|
|
||||||
// `insert_element_default`, but that will have to wait
|
|
||||||
// until Sycamore handles nested batches correctly.
|
|
||||||
//
|
|
||||||
// https://github.com/sycamore-rs/sycamore/issues/802
|
|
||||||
//
|
|
||||||
// the nested batch issue is relevant here because the
|
|
||||||
// assembly loaders in the test assembly chooser use
|
|
||||||
// `insert_element_default` within larger batches
|
|
||||||
state.assembly.insert_element_default::<Sphere>();
|
state.assembly.insert_element_default::<Sphere>();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
use nalgebra::{Const, DMatrix, DVector, DVectorView, Dyn, SymmetricEigen};
|
use nalgebra::{Const, DMatrix, DVector, DVectorView, Dyn, SymmetricEigen};
|
||||||
use std::fmt::{Display, Error, Formatter};
|
use std::fmt::{Display, Error, Formatter};
|
||||||
|
use web_sys::{console, wasm_bindgen::JsValue}; /* DEBUG */
|
||||||
/* DEBUG */
|
|
||||||
#[cfg(not(feature = "dev"))]
|
|
||||||
use sycamore::prelude::console_log;
|
|
||||||
|
|
||||||
// --- elements ---
|
// --- elements ---
|
||||||
|
|
||||||
|
@ -170,8 +167,10 @@ impl ConfigSubspace {
|
||||||
|
|
||||||
/* DEBUG */
|
/* DEBUG */
|
||||||
// print the eigenvalues
|
// print the eigenvalues
|
||||||
#[cfg(not(feature = "dev"))]
|
#[cfg(all(target_family = "wasm", target_os = "unknown"))]
|
||||||
console_log!("Eigenvalues used to find kernel:{}", eig.eigenvalues);
|
console::log_1(&JsValue::from(
|
||||||
|
format!("Eigenvalues used to find kernel:{}", eig.eigenvalues)
|
||||||
|
));
|
||||||
|
|
||||||
// express the basis in the standard coordinates
|
// express the basis in the standard coordinates
|
||||||
let basis_std = proj_to_std * &basis_proj;
|
let basis_std = proj_to_std * &basis_proj;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue