GLVis / glvis

Lightweight OpenGL tool for accurate and flexible finite element visualization
http://glvis.org
BSD 3-Clause "New" or "Revised" License
249 stars 51 forks source link

Scalar fields with MapType INTEGRAL do not display properly #248

Closed mlstowell closed 1 year ago

mlstowell commented 1 year ago

The problem is two-fold. First, loading the GridFunction in StreamState uses GridFunction::GetNodalValues which contains an MFEM_ASSERT requiring MapType VALUE. Second, the range used in the colorbar is based on minimum and maximum values in the vector of degrees of freedom.

The first problem must be solved in MFEM's GridFunction implementation. The second can be addressed in GLVis's VisualizationSceneSolution3d::FindNewValueRange.

tzanio commented 1 year ago

Thanks for looking into this @mlstowell. See also https://github.com/mfem/mfem/issues/1037