Skip to content

Commit 04ba96c

Browse files
authored
Merge pull request #331 from GLVis/glvis-4.4-dev
Final changes for glvis-4.4
2 parents 962cec2 + 94ef773 commit 04ba96c

13 files changed

+41
-75
lines changed

CHANGELOG

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
https://glvis.org
1010

1111

12-
Version 4.3.3 (development)
13-
===========================
12+
Version 4.4 released on May 1, 2025
13+
===================================
1414

1515
- Added more flexible representations for color palette and textures, enabling
1616
specification at both compile and run time. Run time palettes are specified
@@ -23,20 +23,19 @@ Version 4.3.3 (development)
2323
- Palettes can now also be specified with explicit alpha channels. See the
2424
example file share/palettes-variable-opacity.txt.
2525

26-
- Added loading of data collections (VisIt, Sidre, FMS and Conduit) through
27-
parameters '-visit', '-sidre', '-fms' and '-conduit' respectively. The name
28-
of the field can be specified through '-g' or '-q' for a quadrature field.
29-
Optionally, the cycle and protocol can be provided through 'dc-cycle' and
30-
'dc-prot' parameters respectively. Note GLVis must be compiled with MFEM
31-
configured with the associated libraries.
32-
33-
- Fixed a bug where discrete textures would not repeat.
26+
- Added loading of MFEM data collections (VisIt, Sidre, FMS and Conduit) through
27+
command line arguments '-visit', '-sidre', '-fms' and '-conduit' respectively.
28+
The field to plot can be specified using '-g' or '-q' for a quadrature field.
29+
Optionally, the cycle and protocol can be provided through the 'dc-cycle' and
30+
'dc-prot' parameters. Note that GLVis must be built using MFEM configured with
31+
the associated libraries.
3432

3533
- Added support for 1D/2D data (mesh and grid function) using scalar finite
36-
elements with up to 3 vector dimensions
34+
elements with up to 3 vector dimensions.
3735

38-
- Added support for 1D/2D vector finite elements with 3 range dimensions
39-
(requires MFEM v4.8).
36+
- Added support for 1D/2D vector finite elements with 3 range dimensions.
37+
38+
- Fixed a bug where discrete textures would not repeat.
4039

4140

4241
Version 4.3.2 released on Sep 27, 2024

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
</p>
44

55
<p align="center">
6-
<a href="https://github.com/GLVis/glvis/releases/latest"><img alt="Release" src="https://img.shields.io/badge/release-v4.3.2-success.svg"></a>
6+
<a href="https://github.com/GLVis/glvis/releases/latest"><img alt="Release" src="https://img.shields.io/badge/release-v4.4-success.svg"></a>
77
<a href="https://github.com/GLVis/glvis/actions/workflows/builds.yml"><img alt="Build" src="https://github.com/GLVis/glvis/actions/workflows/builds.yml/badge.svg"></a>
88
<a href="https://github.com/glvis/glvis/blob/master/LICENSE"><img alt="License" src="https://img.shields.io/badge/License-BSD-success.svg"></a>
99
<a href="https://glvis.github.io/doxygen/html/index.html"><img alt="Doxygen" src="https://img.shields.io/badge/code-documented-success.svg"></a>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
https://glvis.org
1010

11-
<a href="https://github.com/GLVis/glvis/releases/latest"><img alt="Release" src="https://img.shields.io/badge/release-v4.3.2-success.svg"></a>
11+
<a href="https://github.com/GLVis/glvis/releases/latest"><img alt="Release" src="https://img.shields.io/badge/release-v4.4-success.svg"></a>
1212
<a href="https://github.com/GLVis/glvis/actions/workflows/builds.yml"><img alt="Build" src="https://github.com/GLVis/glvis/actions/workflows/builds.yml/badge.svg"></a>
1313
<a href="https://github.com/glvis/glvis/blob/master/LICENSE"><img alt="License" src="https://img.shields.io/badge/License-BSD-success.svg"></a>
1414
<a href="https://glvis.github.io/doxygen/html/index.html"><img alt="Doxygen" src="https://img.shields.io/badge/code-documented-success.svg"></a>

glvis.cpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,11 +1409,9 @@ int main (int argc, char *argv[])
14091409
#endif
14101410
// variables for command line arguments
14111411
const char *visit_coll = string_none;
1412-
//const char *paraview_coll = string_none; // reader not implemented
14131412
const char *sidre_coll = string_none;
14141413
const char *fms_coll = string_none;
14151414
const char *conduit_coll = string_none;
1416-
//const char *adios2_coll = string_none; // reader not implemented
14171415
int np = 0;
14181416
bool save_stream = false;
14191417
const char *stream_file = string_none;
@@ -1448,8 +1446,6 @@ int main (int argc, char *argv[])
14481446
"Vector solution (vertex values) file to visualize.");
14491447
args.AddOption(&visit_coll, "-visit", "--visit-datafiles",
14501448
"VisIt collection to load");
1451-
//args.AddOption(&paraview_coll, "-paraview", "--paraview-datafiles",
1452-
// "ParaView collection to load");
14531449
#ifdef MFEM_USE_SIDRE
14541450
args.AddOption(&sidre_coll, "-sidre", "--sidre-datafiles",
14551451
"Sidre collection to load");
@@ -1462,10 +1458,6 @@ int main (int argc, char *argv[])
14621458
args.AddOption(&conduit_coll, "-conduit", "--conduit-datafiles",
14631459
"Conduit collection to load");
14641460
#endif // MFEM_USE_CONDUIT
1465-
#ifdef MFEM_USE_ADIOS2
1466-
//args.AddOption(&adios2_coll, "-adios2", "--adios2-datafiles",
1467-
// "ADIOS2 collection to load");
1468-
#endif // MFEM_USE_ADIOS2
14691461
args.AddOption(&dc_protocol, "-dc-prot", "--data-collection-protocol",
14701462
"Protocol of the data collection to load");
14711463
args.AddOption(&dc_cycle, "-dc-cycle", "--data-collection-cycle",
@@ -1579,11 +1571,6 @@ int main (int argc, char *argv[])
15791571
mesh_file = visit_coll;
15801572
input |= INPUT_DATA_COLL;
15811573
}
1582-
/*else if (paraview_coll != string_none)
1583-
{
1584-
mesh_file = paraview_coll;
1585-
input |= INPUT_DATA_COLL;
1586-
}*/
15871574
else if (sidre_coll != string_none)
15881575
{
15891576
mesh_file = sidre_coll;
@@ -1599,11 +1586,6 @@ int main (int argc, char *argv[])
15991586
mesh_file = conduit_coll;
16001587
input |= INPUT_DATA_COLL;
16011588
}
1602-
/*else if (adios2_coll != string_none)
1603-
{
1604-
mesh_file = adios2_coll;
1605-
input |= INPUT_DATA_COLL;
1606-
}*/
16071589

16081590
if (np > 0)
16091591
{
@@ -1787,10 +1769,6 @@ int main (int argc, char *argv[])
17871769
{
17881770
coll_type = DataCollectionReader::CollType::VISIT;
17891771
}
1790-
/*else if (paraview_coll != string_none)
1791-
{
1792-
coll_type = DataCollectionReader::CollType::PARAVIEW;
1793-
}*/
17941772
else if (sidre_coll != string_none)
17951773
{
17961774
coll_type = DataCollectionReader::CollType::SIDRE;
@@ -1803,10 +1781,6 @@ int main (int argc, char *argv[])
18031781
{
18041782
coll_type = DataCollectionReader::CollType::CONDUIT;
18051783
}
1806-
/*else if (adios2_coll != string_none)
1807-
{
1808-
coll_type = DataCollectionReader::CollType::ADIOS2;
1809-
}*/
18101784

18111785
if (input & INPUT_GRID_FUNC)
18121786
{

lib/coll_reader.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ int DataCollectionReader::ReadSerial(CollType ct, const char *coll_file,
2828
data.SetDataCollectionField(dc, ti, field, quad, component);
2929
}
3030
break;
31-
//case CollType::PARAVIEW: // reader not implemented
32-
// data.SetDataCollectionField(new ParaViewDataCollection(coll_file), ti, field,
33-
// quad, component);
34-
// break;
3531
#ifdef MFEM_USE_SIDRE
3632
case CollType::SIDRE:
3733
{
@@ -61,12 +57,6 @@ int DataCollectionReader::ReadSerial(CollType ct, const char *coll_file,
6157
}
6258
break;
6359
#endif // MFEM_USE_CONDUIT
64-
#ifdef MFEM_USE_ADIOS2
65-
//case CollType::ADIOS2: // reader not implemented
66-
// data.SetDataCollectionField(new ADIOS2DataCollection(coll_file), ti, field,
67-
// quad, component);
68-
// break;
69-
#endif // MFEM_USE_ADIOS2
7060
default:
7161
cerr << "Unknown collection type. Exit" << endl;
7262
exit(1);

lib/coll_reader.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ class DataCollectionReader
2626
enum class CollType
2727
{
2828
VISIT,
29-
PARAVIEW,
29+
PARAVIEW, // not currently implemented
3030
SIDRE,
3131
FMS,
3232
CONDUIT,
33-
ADIOS2,
33+
ADIOS2, // not currently implemented
3434
};
3535

3636
DataCollectionReader(DataState &data_) : data(data_) { }

lib/data_state.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ struct DataState
8787
@see SetMesh(std::unique_ptr<mfem::Mesh> &&pmesh) */
8888
void SetMesh(mfem::Mesh *mesh);
8989

90-
/// Set a mesh (unqiue pointer version)
90+
/// Set a mesh (unique pointer version)
9191
/** Sets the mesh and resets grid/quadrature functions if they do not use
9292
the same one. */
9393
void SetMesh(std::unique_ptr<mfem::Mesh> &&pmesh);

lib/sdl_windows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct SdlWindowsPlatform::Impl
2525
};
2626

2727
SdlWindowsPlatform::SdlWindowsPlatform()
28-
: m_impl(new Impl)
28+
: m_impl(new Impl)
2929
{
3030
m_impl->signal_evt = CreateEventA(nullptr, false, false, "");
3131
if (m_impl->signal_evt == NULL)

makefile

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,15 @@ Ccc = $(strip $(CC) $(CFLAGS) $(GL_OPTS))
250250

251251
# generated with 'echo lib/gl/*.c* lib/*.c*', does not include lib/*.m (Obj-C)
252252
ALL_SOURCE_FILES = \
253-
lib/gl/renderer.cpp lib/gl/renderer_core.cpp lib/gl/renderer_ff.cpp \
254-
lib/gl/shader.cpp lib/gl/types.cpp lib/aux_js.cpp lib/aux_vis.cpp \
255-
lib/coll_reader.cpp lib/data_state.cpp lib/file_reader.cpp lib/font.cpp \
256-
lib/gl2ps.c lib/gltf.cpp lib/material.cpp lib/openglvis.cpp lib/palettes.cpp \
257-
lib/palettes_base.cpp lib/sdl.cpp lib/sdl_helper.cpp lib/sdl_main.cpp \
258-
lib/stream_reader.cpp lib/threads.cpp lib/vsdata.cpp lib/vssolution.cpp \
259-
lib/vssolution3d.cpp lib/vsvector.cpp lib/vsvector3d.cpp
253+
lib/gl/renderer.cpp lib/gl/renderer_core.cpp lib/gl/renderer_ff.cpp \
254+
lib/gl/shader.cpp lib/gl/types.cpp lib/aux_js.cpp lib/aux_vis.cpp \
255+
lib/coll_reader.cpp lib/data_state.cpp lib/file_reader.cpp \
256+
lib/font.cpp lib/gl2ps.c lib/gltf.cpp lib/material.cpp \
257+
lib/openglvis.cpp lib/palettes.cpp lib/palettes_base.cpp lib/sdl.cpp \
258+
lib/sdl_helper.cpp lib/sdl_main.cpp lib/sdl_windows.cpp \
259+
lib/sdl_x11.cpp lib/stream_reader.cpp lib/threads.cpp lib/vsdata.cpp \
260+
lib/vssolution.cpp lib/vssolution3d.cpp lib/vsvector.cpp \
261+
lib/vsvector3d.cpp
260262
OBJC_SOURCE_FILES = $(if $(NOTMAC),,lib/sdl_mac.mm)
261263
DESKTOP_ONLY_SOURCE_FILES = \
262264
lib/gl/renderer_ff.cpp lib/threads.cpp lib/gl2ps.c lib/sdl_x11.cpp
@@ -268,15 +270,17 @@ COMMON_SOURCE_FILES = $(filter-out \
268270

269271
# generated with 'echo lib/gl/*.h* lib/*.h*'
270272
HEADER_FILES = \
271-
lib/gl/attr_traits.hpp lib/gl/platform_gl.hpp lib/gl/renderer.hpp \
272-
lib/gl/shader.hpp lib/gl/renderer_core.hpp lib/gl/renderer_ff.hpp \
273-
lib/gl/types.hpp lib/aux_vis.hpp lib/coll_reader.hpp lib/data_state.hpp \
274-
lib/file_reader.hpp lib/font.hpp lib/geom_utils.hpp lib/gl2ps.h \
275-
lib/logo.hpp lib/material.hpp lib/openglvis.hpp lib/palettes.hpp \
276-
lib/palettes_base.hpp lib/sdl.hpp lib/sdl_helper.hpp lib/sdl_mac.hpp \
277-
lib/sdl_main.hpp lib/sdl_x11.hpp lib/stream_reader.hpp lib/threads.hpp \
278-
lib/visual.hpp lib/vsdata.hpp lib/vssolution.hpp lib/vssolution3d.hpp \
279-
lib/vsvector.hpp lib/vsvector3d.hpp
273+
lib/gl/attr_traits.hpp lib/gl/platform_gl.hpp lib/gl/renderer.hpp \
274+
lib/gl/shader.hpp lib/gl/renderer_core.hpp lib/gl/renderer_ff.hpp \
275+
lib/gl/types.hpp lib/aux_vis.hpp lib/coll_reader.hpp \
276+
lib/data_state.hpp lib/file_reader.hpp lib/font.hpp \
277+
lib/geom_utils.hpp lib/gl2ps.h lib/gltf.hpp lib/logo.hpp \
278+
lib/material.hpp lib/openglvis.hpp lib/palettes.hpp \
279+
lib/palettes_base.hpp lib/sdl.hpp lib/sdl_helper.hpp lib/sdl_mac.hpp \
280+
lib/sdl_main.hpp lib/sdl_windows.hpp lib/sdl_x11.hpp \
281+
lib/stream_reader.hpp lib/threads.hpp lib/visual.hpp lib/vsdata.hpp \
282+
lib/vssolution.hpp lib/vssolution3d.hpp lib/vsvector.hpp \
283+
lib/vsvector3d.hpp
280284

281285
DESKTOP_SOURCE_FILES = $(COMMON_SOURCE_FILES) $(DESKTOP_ONLY_SOURCE_FILES) $(LOGO_FILE_CPP)
282286
WEB_SOURCE_FILES = $(COMMON_SOURCE_FILES) $(WEB_ONLY_SOURCE_FILES)

share/Info.cmake.plist.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<key>CFBundleIconFile</key>
1212
<string>GLVis.icns</string>
1313
<key>CFBundleShortVersionString</key>
14-
<string>4.3.2</string>
14+
<string>4.4</string>
1515
<key>CFBundleInfoDictionaryVersion</key>
1616
<string>6.0</string>
1717
<key>CFBundlePackageType</key>

share/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<key>CFBundleIconFile</key>
1212
<string>GLVis.icns</string>
1313
<key>CFBundleShortVersionString</key>
14-
<string>4.3.2</string>
14+
<string>4.4</string>
1515
<key>CFBundleInfoDictionaryVersion</key>
1616
<string>6.0</string>
1717
<key>CFBundlePackageType</key>

share/palettes-cet.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12928,4 +12928,3 @@ palette cet-r3 RGBf
1292812928
0.85083 0.038404 0.048987
1292912929
0.84687 0.028128 0.024389
1293012930
0.84287 0.018301 0.0015175
12931-

vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
33
"name": "glvis",
4-
"version": "4.3.2",
4+
"version": "4.4",
55
"dependencies": [
66
"fontconfig",
77
"freetype",

0 commit comments

Comments
 (0)