Commit Graph

3401 Commits

Author SHA1 Message Date
Joachim Schoeberl
386edbf75e t_size(-1) 2024-12-26 20:56:49 +01:00
Joachim Schoeberl
f87aefbcc9 GetTable 2024-12-26 20:41:49 +01:00
Joachim Schoeberl
c0080ae62e too much constexpr 2024-12-26 20:36:57 +01:00
Joachim Schoeberl
1a610b060f CompressedTable(Creator) 2024-12-26 20:29:38 +01:00
Joachim Schoeberl
a675c42d89 more PointIndex 2024-12-26 16:32:50 +01:00
Joachim Schoeberl
9c9b4ea880 switch to ngcore::ClosedHashTable 2024-12-26 15:06:50 +01:00
Joachim Schoeberl
abe18a9b74 little polish 2024-12-24 00:52:38 +01:00
Joachim Schoeberl
209863d79e replace (most) NgBitArrays 2024-12-24 00:10:20 +01:00
Joachim Schoeberl
b5fe5a4fb2 trigger rebuild 2024-12-23 22:27:17 +01:00
Joachim Schoeberl
0a8db69aa7 PointIndex in delaunay 2024-12-23 21:42:22 +01:00
Joachim Schoeberl
73bcb1bd29 PointIndex in bisect 2024-12-23 19:24:48 +01:00
Lackner, Christopher
31ed810144 Merge branch 'boundarylayer_fixes' into 'master'
Boundary Layers - Automatic thickness limiation and fixes

See merge request ngsolve/netgen!690
2024-12-23 12:30:28 +01:00
Hochsteger, Matthias
1aa34da6af Boundary Layers - Automatic thickness limiation and fixes 2024-12-23 12:30:28 +01:00
Joachim Schoeberl
0e2eee3618 keep ifdef parallel 2024-12-22 21:45:33 +01:00
Joachim Schoeberl
bcc9f43f76 idmap using PointIndex 2024-12-22 21:38:50 +01:00
Joachim Schoeberl
34c3d971b0 more ElementIndex 2024-12-22 19:58:00 +01:00
Joachim Schoeberl
386c290dc0 rectangle with edge-names 2024-12-21 00:37:50 +01:00
Joachim Schoeberl
975414c2fe auto difference type 2024-12-18 08:18:40 +01:00
Joachim Schoeberl
8f73a00d2d code cleanup 2024-12-15 18:00:50 +01:00
Joachim Schoeberl
b560719a47 more PointIndex 2024-12-14 21:59:49 +01:00
Joachim Schoeberl
07191d6e1b more PointIndex, fix range-check 2024-12-14 20:21:18 +01:00
Joachim Schoeberl
b08a1a5db5 more ngcore::Arrays and PointIndex 2024-12-14 18:57:12 +01:00
Joachim Schoeberl
868ee9643f more to nginterface2 2024-12-13 16:48:37 +01:00
Joachim Schoeberl
0bb738b29e remove commented code 2024-12-13 13:06:41 +01:00
Schöberl, Joachim
aa9f93a487 Merge branch 'occ_archive_vertex_properties' into 'master'
archive vertex properties (in backwards compatible way)

See merge request ngsolve/netgen!689
2024-12-13 12:48:57 +01:00
Christopher Lackner
7d0bbdab07 archive vertex properties (in backwards compatible way) 2024-12-12 17:45:39 +01:00
Matthias Hochsteger
ecc3db6760 Fix point selection on clipping plane 2024-12-12 16:42:57 +01:00
Matthias Hochsteger
36cdde4889 Use unnamed namespace for struct Line in basegeom.cpp
See https://github.com/NGSolve/netgen/issues/198
2024-12-06 11:15:40 +01:00
Joachim Schoeberl
c7adfee5d8 include 'ranges.hpp' to ngcore 2024-12-04 23:03:53 +01:00
Joachim Schoeberl
6f8e4e9f5f more constexpr 2024-12-04 16:05:50 +01:00
Joachim Schoeberl
c3e27a1792 fix warning 2024-12-04 08:11:43 +01:00
Matthias Hochsteger
3bfa6c19fa Fix build warnings (found with gcc -Wall) 2024-12-03 18:58:12 +01:00
Matthias Hochsteger
0c1943c77b Fix bug in nginterface (discovered by gcc -Wall) 2024-12-03 18:58:12 +01:00
Matthias Hochsteger
32e0026128 Some memory tracer fixes/features
If range checks are enabled:
- Trace all objects
- Check if memory usage never gets negative
- Check if memory usage is 0 in destructor
- Track total memory usage (use pyngcore.GetTotalMemory())
2024-12-03 18:58:07 +01:00
Joachim Schoeberl
9935d877cc mpi cleanup 2024-12-01 18:55:01 +01:00
Joachim Schoeberl
8c1882226c missed waits 2024-12-01 17:19:45 +01:00
Joachim Schoeberl
75504c3a6d mpi-dummies 2024-12-01 16:06:09 +01:00
Joachim Schoeberl
eead94dfc1 mpirequests::Reset 2024-12-01 13:31:07 +01:00
Joachim Schoeberl
ad5c50eef5 fix size_t-1 problem (got warning in ngsxfem) 2024-12-01 09:34:52 +01:00
Joachim Schoeberl
a4c6655fa7 tolerance in CrossPointBarycentric 2024-11-29 13:01:34 +01:00
Matthias Hochsteger
516c089c42 Fix build error 2024-11-27 21:55:11 +01:00
Joachim Schoeberl
ebf4d4d1b8 fix non-mpi 2024-11-27 21:29:43 +01:00
Joachim Schoeberl
14c39f8283 introduce NgMPI_Request(s) 2024-11-27 21:16:48 +01:00
Matthias Hochsteger
1c6d53f387 Manage global JacobiPols array inside struct
Works around emscripten issue, where the global array was not
constructed properly
2024-11-27 18:54:32 +01:00
Joachim Schoeberl
7570468686 bcast material etc names using ibcast 2024-11-26 13:29:14 +01:00
Joachim Schoeberl
a86d231714 check for num=0 before memcpy 2024-11-25 17:25:40 +01:00
Matthias Hochsteger
22797971f6 Cleanup Abaqus export, implement 1d and 2d elements 2024-11-25 16:27:34 +01:00
Matthias Hochsteger
dd6638b1ab Mesh::GetRegionName(element_or_elindex) 2024-11-25 16:27:34 +01:00
Lackner, Christopher
7d483dcade Merge branch 'free_edges' into 'master'
OCC - support free-floating edges in solids

See merge request ngsolve/netgen!687
2024-11-25 14:14:47 +01:00
Hochsteger, Matthias
3e30ad9b75 OCC - support free-floating edges in solids 2024-11-25 14:14:47 +01:00
Matthias Hochsteger
44611e668c Fix Segfault in MPI ReceiveMesh
See https://github.com/NGSolve/netgen/issues/196
2024-11-25 13:56:39 +01:00
Matthias Hochsteger
9e80e5f195 Fix MPICH compatibility
When building without MPI wrapper: Use preprocessor macros instead of global variables for MPI symbols

See https://github.com/NGSolve/netgen/issues/196
2024-11-25 11:20:32 +01:00
Matthias Hochsteger
e2a20a44bc Put IsSafe to ngcore namespace, separate functions for range check macros for readability 2024-11-20 20:53:35 +01:00
Christopher Lackner
22a251e4fd optional name in wp.Close for last edge 2024-11-05 14:58:30 +01:00
Matthias Hochsteger
629cca9413 Use std::tuple<double,double> instead of py::tuple with length and type checks 2024-11-05 10:46:08 +01:00
Christopher Lackner
45acbbf6ef use std invalid argument instead of Exception in py constructor 2024-11-05 07:55:23 +01:00
Joachim Schoeberl
9a7a9fa445 remove unused variable 2024-10-19 14:38:48 +02:00
Christopher Lackner
b981d45069 enable periodic + closesurface identification on same boundaries 2024-10-16 19:42:57 +02:00
Christopher Lackner
75823e8244 propagate idnrs in merge mesh (for ZRefine) 2024-10-13 10:57:29 +02:00
Lackner, Christopher
587b766418 also allow building with older pybind11 without py::set_error 2024-10-10 09:17:11 +02:00
Matthias Hochsteger
ab985ba044 Fix optimizations in domains with non-tet elements 2024-10-08 14:01:22 +02:00
Matthias Hochsteger
8a049799e2 Fix debugging function GetOpenElements() 2024-10-08 14:00:12 +02:00
Matthias Hochsteger
a8309fae1c Update d3, fix styles in timing html chart 2024-10-08 13:59:30 +02:00
Matthias Hochsteger
267830387f PajeTrace - option to write only (small) html charts and no trace file 2024-10-08 13:58:23 +02:00
Matthias Hochsteger
1e20c1860b Fix RemoveIllegalElements
- Only search in relevant domain
- Break if number of illegal elements increases (avoids infinite loop)
  -> This shouldn't actually happen and is just a workaround until the
  optimization routines are fixed
2024-10-01 13:34:19 +02:00
Joachim Schoeberl
c4dbe60f78 create edge from two vertices 2024-09-28 20:29:22 +02:00
Christopher Lackner
10986ffbab convert gp_Dir to gp_Vec 2024-09-28 16:39:19 +02:00
Christopher Lackner
6b662a9634 export occ MakePolygon 2024-09-28 15:15:44 +02:00
Matthias Hochsteger
7f8172aaf6 Allow vector<int> as domain, project_boundaries in BoundaryLayerParameters 2024-09-27 17:29:05 +02:00
Schöberl, Joachim
2ff62bc283 Merge branch 'blayer_as_meshing_parameter' into 'master'
Add BoundarylayerParameters to MeshingParameters

See merge request ngsolve/netgen!677
2024-09-27 16:30:50 +02:00
Hochsteger, Matthias
833a177e34 Add BoundarylayerParameters to MeshingParameters 2024-09-27 16:30:50 +02:00
Schöberl, Joachim
592221ee19 Merge branch 'fix_identified_point_handling' into 'master'
Fix handling identified points in Compress and MeshVolume

See merge request ngsolve/netgen!676
2024-09-27 16:30:29 +02:00
Hochsteger, Matthias
27b8b5e7c8 Fix handling identified points in Compress and MeshVolume 2024-09-27 16:30:29 +02:00
Schöberl, Joachim
fb39692f9c Merge branch 'skip_non_tet_points_in_smoothing' into 'master'
Don't do mesh smoothing at non-tet elements

See merge request ngsolve/netgen!675
2024-09-27 16:29:47 +02:00
Hochsteger, Matthias
61bed581ec Don't do mesh smoothing at non-tet elements 2024-09-27 16:29:47 +02:00
Schöberl, Joachim
f3a2cee15b Merge branch 'range_check_in_ngarray' into 'master'
Use new range check macro in NgArray

See merge request ngsolve/netgen!632
2024-09-27 16:29:29 +02:00
Matthias Hochsteger
13d962acdd Write more debug output meshes on failure 2024-09-27 11:48:42 +02:00
Matthias Hochsteger
5e3743df31 Code cleanup 2024-09-27 11:43:54 +02:00
Matthias Hochsteger
156a429898 Remove empty file ngarray.cpp 2024-09-27 11:27:41 +02:00
Matthias Hochsteger
5c38bef3cf Fix initializing empty tables 2024-09-27 11:27:41 +02:00
Matthias Hochsteger
451e59afa2 Use new range check macro in NgArray 2024-09-27 11:27:41 +02:00
Hochsteger, Matthias
9f6c64a4f9 Fix splitimprove edge 2024-09-27 01:00:50 +02:00
Hochsteger, Matthias
0ddcfdd0c7 Propagate OCC maxh settings correctly 2024-09-23 13:36:44 +02:00
Hochsteger, Matthias
d73cffd0c7 Fix TextOutArchive (Win) -> TextInArchive (Unix) incompatibility 2024-09-18 17:48:36 +02:00
Christopher Lackner
827b02d94c propagate properties correctly in occgeom.Glue 2024-09-16 09:59:42 +02:00
Hochsteger, Matthias
73c75240f8 Skip SplitImproveEdge if it would insert tets with negative volume 2024-09-13 10:22:50 +02:00
Matthias Hochsteger
67a67a453d Fix copying BitArray in immediate operators in python bindings 2024-09-12 11:11:15 +02:00
Lackner, Christopher
f807be50c2 Project added Element1D/Element2D 2024-09-09 17:18:04 +02:00
Matthias Hochsteger
a504372f82 Fix Mesh::GetSubMesh for 2d meshes 2024-09-05 14:46:57 +02:00
Joachim Schoeberl
bb3c3ff565 fix warning 2024-09-03 11:11:51 +02:00
Lackner, Christopher
c096536e32 Merge branch 'pickle_ident_names' into 'master'
pickle identification names

See merge request ngsolve/netgen!667
2024-09-02 16:46:57 +02:00
Christopher Lackner
d014119b19 pickle identification names 2024-09-02 16:35:57 +02:00
Matthias Hochsteger
508136b533 Fix memory leak in TaskManager (thx @roystgnr) 2024-09-02 10:15:28 +02:00
Matthias Hochsteger
00664898c3 Fix building with USE_NUMA 2024-09-02 10:14:04 +02:00
Christopher Lackner
bda192ba90 write identification names into mesh 2024-08-30 11:01:03 +02:00
Christopher Lackner
1497bf36cc fix periodic identifications for meshes where edges touch 2024-08-28 11:07:11 +02:00
Schöberl, Joachim
69f2ea5635 Merge branch 'fix_mt_swap_in_array_move' into 'master'
fix size of me in mt swap in array move constructor

See merge request ngsolve/netgen!664
2024-08-27 19:03:43 +02:00
Christopher Lackner
334c3fe702 fix size of me in mt swap in array move constructor 2024-08-27 18:33:36 +02:00
Christopher Lackner
72e861be80 add check if any inner points are in polygon when adding inner point 2024-08-27 17:41:20 +02:00
Christopher Lackner
c032ad58ca add property setter for index and edgenr for segment 2024-08-26 16:37:50 +02:00