Commit Graph
137 Commits
Author SHA1 Message Date
Sebastian Grimberg daa8b6b844 Add support for pyramid elements in Gmsh meshes 2023-01-10 10:43:23 -08:00
Will Pazner 24825a5d26 Replace sprintf with snprintf 2022-11-05 13:38:42 -07:00
luz paz 476c855bd7 Fix various typos
Found via `codespell -q 3 -L allright,ba,equil,esy,fo,hda,lod,nd,ned,numer,ot,pres,ro,seh,shat,solfes,strat,tbe,te,warmup`
2022-08-05 20:50:51 -04:00
Tzanio Kolev 5308d285f7 Merge pull request #2855 from mfem/copyright-2022
Extended copyright to 2022
2022-03-01 07:41:29 -08:00
Will Pazner 5fe211e3ae Merge pull request #2738 from mfem/shadow-mesh-dev
Fixing shadow variables in mesh classes [shadow-mesh-dev]
2022-02-28 12:12:51 -08:00
Tzanio 6d2530775b Extended copyright to 2022 2022-02-25 10:24:50 -08:00
Stowell, Mark L 853d845682 Changes suggested by @YohannDudouit 2022-02-17 17:14:10 -08:00
Stowell, Mark L c6bce36318 Changes suggested by @pazner 2022-02-17 16:57:05 -08:00
Veselin Dobrev d82def8b0d Fix various warnings 2022-02-11 21:23:46 -08:00
Stowell, Mark L c1c1ecd90c Fixing shadow variables in mesh classes 2021-12-23 16:27:26 -08:00
Will Pazner 08728089c4 Fix reading VTK surface meshes
The space dimension was not set correctly when reading straight sided surface
meshes.
2021-09-23 10:07:11 -07:00
Tzanio Kolev 6095628e27 Merge pull request #2489 from mfem/gmsh-zero-attributes
Allow reading Gmsh meshes where all elements have attribute zero [gmsh-zero-attributes]
2021-09-02 08:48:04 -07:00
Will Pazner b76734c582 Add warning if changing element attributes to 1 in gmsh reader 2021-08-25 20:30:16 -07:00
Will Pazner 1ddd1f0f3b Allow reading Gmsh meshes where all elements have attribute zero 2021-08-25 16:06:37 -07:00
Tzanio Kolev c7c552f56a Merge branch 'master' into lin-penta-dev 2021-08-22 14:16:46 -07:00
Tzanio 283f5fe681 Editorial changes 2021-08-19 16:13:45 -07:00
Stowell, Mark L 60082f90b6 Creating el_to_face during ReadGmshMesh when Nodes GridFunction is needed 2021-08-02 15:52:09 -07:00
Tzanio ff384ebb03 Merge branch 'master' into lin-penta-dev 2021-07-20 09:04:26 -07:00
Stowell, Mark L f104863a21 Adding pyramid support to mesh readers 2021-07-08 16:53:54 -07:00
Will Pazner 6f637f57b0 Fix signed-unsigned comparisons 2021-07-06 17:11:56 -07:00
Will Pazner 0446a8fa32 Improve comments 2021-07-01 11:30:49 -07:00
Will Pazner 8f647fa4ef Add convenience function NumBase64Chars
This function returns the number of characters required to encode a given number
of bytes in base-64.
2021-07-01 10:40:04 -07:00
Will Pazner 5da228a103 Support reading VTK XML binary compressed data with multiple blocks
Both raw binary data and base-64 encoded are supported.

We previously only supported reading a single "block" of compressed data. VTK
format supports multiple blocks for semi-random access. Each block is
compressed separately, and the blocks are concatenated.

The header format is as follows (where header_t is either uint32_t or uint64_t
according to the VTK file metadata):

    header_t number_of blocks;
    header_t uncompressed_block_size;
    header_t uncompressed_last_block_size;
    header_t[] compressed_size;

The total uncompressed_block_size is bounded by (number_of_blocks -
1)*uncompressed_block_size + uncompressed_last_block_size.

The main complication is that the header contains a variable number of integers
(depending on the number of blocks), rather than a fixed number of 4 integers
as is the case when we are restricted to one block only.
2021-07-01 10:29:02 -07:00
Will Pazner a160021977 Fix reading straight-sided periodic gmsh meshes 2021-05-12 10:07:18 -07:00
Will Pazner 2ad9f7f7c6 Factor out binary reading code to bin_io::read 2021-04-12 09:41:08 -07:00
Will Pazner 3086c3d816 Attempt to fix segfault 2021-04-11 16:39:48 -07:00
Will Pazner 5876a37555 Minor 2021-04-04 17:49:37 -07:00
Will Pazner 7723eb6158 XML VTK code documentation 2021-04-01 13:27:17 -07:00
Will Pazner d3668892c0 Support reading element attributes from XML VTK 2021-04-01 13:27:17 -07:00
Will Pazner ea6e0352e7 Read VTU meshes with binary data
Supporting appended, inline, raw, base64, and compressed data.
2021-04-01 13:27:17 -07:00
Will Pazner 87a2c96d2e make style 2021-04-01 13:27:17 -07:00
Will Pazner c25e6f5844 Fix reading XML VTK meshes with zlib enabled 2021-04-01 13:27:17 -07:00
Will Pazner cd0b8add43 Better error messages in VTK XML reader 2021-04-01 13:27:17 -07:00
Tzanio Kolev 7214e1b654 Merge pull request #1817 from mfem/var-order-space-dev
Variable order finite element collections and spaces [var-order-space-dev]
2021-03-11 16:57:52 -08:00
Tzanio Kolev 081e96799f Merge pull request #2028 from mfem/wcdawn/VTKfixes
Making VTK reader more versatile
2021-03-02 12:21:26 -08:00
Tzanio 34d8143d61 Commented out found_material 2021-03-02 11:31:01 -08:00
Tzanio 3b36be37e7 Comment out a warning 2021-02-22 13:37:33 -08:00
Jakub Červený bb207fd312 Fix loading of high-order Gmsh meshes. 2021-02-19 09:44:01 +01:00
William Dawn 05a7b379ee clarify logic in VTK reader 2021-02-16 12:35:15 -07:00
Will Pazner 958c042695 Clarify comment in XML VTK reader 2021-02-16 09:28:30 -08:00
Stowell, Mark L a11e16600e Making the error message more clear 2021-02-11 16:53:01 -08:00
Stowell, Mark L f7920ef4ec Providing more informative error message regarding Gmsh attributes 2021-02-11 10:04:40 -08:00
Veselin Dobrev 30e4664397 Merge pull request #1938 from latug0/gmsh_optional_affine_keyword
Fix issue #1937
2021-02-04 14:37:36 -08:00
Veselin Dobrev 12b3e315f0 Merge pull request #1929 from latug0/gmsh-bi-periodic
Bugfix proposal for issue #1928
2021-02-04 14:34:54 -08:00
Veselin Dobrev 3454f1061d Merge pull request #1392 from mfem/par-ncmesh-saving-dev
ParNCMesh I/O and new NC mesh format [par-ncmesh-saving-dev]
2021-02-03 18:01:50 -08:00
William Dawn cd4a56212a making VTK reader more versatile 2021-02-01 11:00:58 -07:00
Adrien M. Bernede 04fb572359 Let's forget about 2020 2021-01-26 11:55:36 -08:00
Will Pazner 5d8cf0d37e Fix issue setting spaceDim with vertices 2021-01-13 10:37:30 -08:00
Will Pazner 1e21230bc9 Fix bug reading quadratic VTK mesh 2021-01-11 10:32:04 -08:00
Tzanio 03c596d001 make style 2020-12-24 11:34:43 -08:00