Closed justinlaughlin closed 2 months ago
I think this fixed it? To test
git clone git@github.com:GLVis/glvis-js.git
cd glvis-js
git checkout ci-build-10626571587
open examples/basic.html # or open with a browser
# open glvis-data/streams/quadrature-lor.saved and press Q
I can confirm Q
works now. Thanks @justinlaughlin!
Yes, works for me too 😉 🚀 I agree it would be better to unify the code with
glvis.cpp
, but there are some subtleties different, so it is not that easy. However, I noticed thatupdateStream()
has a hardcoded check forsolution
, so that needs to be fixed for mesh and quadrature 🤔
updateStream()
uses StreamState::SetNewMeshAndSolution
which it looks like you updated already 🙂. I went ahead and removed the check; I don't see any downstream calls specific to data_type
. I tested the build ci-build-10706880188
and it seems okay to me.
Eventually, we should refactor
aux_js.cpp
a bit so that there isn't so much repeated code withglvis.cpp
. For now, this is just following the same design pattern to see if we can get quadrature support inglvis-js
.