ngsolve 6.2.2406__cp312-cp312-win_amd64.whl → 6.2.2406.post111.dev1__cp312-cp312-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ngsolve might be problematic. Click here for more details.

Files changed (96) hide show
  1. netgen/include/arnoldi.hpp +3 -0
  2. netgen/include/basematrix.hpp +9 -18
  3. netgen/include/basevector.hpp +43 -71
  4. netgen/include/bilinearform.hpp +8 -59
  5. netgen/include/blockjacobi.hpp +4 -0
  6. netgen/include/cg.hpp +3 -0
  7. netgen/include/chebyshev.hpp +3 -0
  8. netgen/include/comp.hpp +0 -4
  9. netgen/include/diagonalmatrix.hpp +154 -0
  10. netgen/include/dump.hpp +5 -5
  11. netgen/include/eigen.hpp +3 -0
  12. netgen/include/elementbyelement.hpp +4 -0
  13. netgen/include/elementtopology.hpp +0 -3
  14. netgen/include/expr.hpp +2 -0
  15. netgen/include/fespace.hpp +12 -14
  16. netgen/include/finiteelement.hpp +7 -7
  17. netgen/include/h1amg.hpp +3 -1
  18. netgen/include/hcurlhdivfes.hpp +2 -0
  19. netgen/include/hcurlhofespace.hpp +4 -3
  20. netgen/include/hdivfes.hpp +3 -3
  21. netgen/include/hdivhosurfacefespace.hpp +3 -3
  22. netgen/include/intrule.hpp +15 -1
  23. netgen/include/jacobi.hpp +3 -0
  24. netgen/include/la.hpp +1 -13
  25. netgen/include/matrix.hpp +21 -0
  26. netgen/include/meshaccess.hpp +21 -51
  27. netgen/include/mgpre.hpp +1 -1
  28. netgen/include/mptools.hpp +1 -2
  29. netgen/include/multivector.hpp +2 -0
  30. netgen/include/ngsobject.hpp +1 -1
  31. netgen/include/nodalhofe.hpp +3 -0
  32. netgen/include/normalfacetfespace.hpp +4 -5
  33. netgen/include/order.hpp +3 -1
  34. netgen/include/parallel_matrices.hpp +5 -0
  35. netgen/include/paralleldofs.hpp +44 -95
  36. netgen/include/parallelngs.hpp +2 -1
  37. netgen/include/parallelvector.hpp +12 -16
  38. netgen/include/pardisoinverse.hpp +1 -0
  39. netgen/include/periodic.hpp +1 -0
  40. netgen/include/pmltrafo.hpp +5 -2
  41. netgen/include/preconditioner.hpp +3 -1
  42. netgen/include/scalarfe.hpp +4 -1
  43. netgen/include/sparsecholesky.hpp +4 -0
  44. netgen/include/sparsematrix.hpp +8 -41
  45. netgen/include/sparsematrix_dyn.hpp +2 -0
  46. netgen/include/sparsematrix_impl.hpp +66 -1
  47. netgen/include/special_matrix.hpp +3 -138
  48. netgen/include/tpdiffop.hpp +1 -0
  49. netgen/include/tpintrule.hpp +2 -0
  50. netgen/include/umfpackinverse.hpp +1 -1
  51. netgen/include/vector.hpp +6 -1
  52. netgen/include/vvector.hpp +10 -1
  53. netgen/lib/libngsolve.lib +0 -0
  54. netgen/libngsolve.dll +0 -0
  55. ngsolve/cmake/NGSolveConfig.cmake +1 -1
  56. ngsolve/config/config.py +5 -5
  57. ngsolve/config.py +5 -5
  58. ngsolve/demos/intro/poisson.py +1 -1
  59. ngsolve/demos/mpi/mpi_navierstokes.py +2 -0
  60. ngsolve/demos/mpi/mpi_timeDG.py +3 -0
  61. ngsolve/ngslib.pyd +0 -0
  62. ngsolve-6.2.2406.post111.dev1.dist-info/METADATA +13 -0
  63. {ngsolve-6.2.2406.dist-info → ngsolve-6.2.2406.post111.dev1.dist-info}/RECORD +95 -94
  64. ngsolve-6.2.2406.dist-info/METADATA +0 -9
  65. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/Scripts/ngsolve.tcl +0 -0
  66. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/beam.geo +0 -0
  67. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/beam.vol +0 -0
  68. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/chip.in2d +0 -0
  69. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/chip.vol +0 -0
  70. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/coil.geo +0 -0
  71. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/coil.vol +0 -0
  72. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/coilshield.geo +0 -0
  73. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/coilshield.vol +0 -0
  74. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/cube.geo +0 -0
  75. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/cube.vol +0 -0
  76. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/d10_DGdoubleglazing.pde +0 -0
  77. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/d11_chip_nitsche.pde +0 -0
  78. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/d1_square.pde +0 -0
  79. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/d2_chip.pde +0 -0
  80. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/d3_helmholtz.pde +0 -0
  81. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/d4_cube.pde +0 -0
  82. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/d5_beam.pde +0 -0
  83. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/d6_shaft.pde +0 -0
  84. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/d7_coil.pde +0 -0
  85. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/d8_coilshield.pde +0 -0
  86. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/d9_hybridDG.pde +0 -0
  87. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/doubleglazing.in2d +0 -0
  88. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/doubleglazing.vol +0 -0
  89. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/piezo2d40round4.vol.gz +0 -0
  90. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/shaft.geo +0 -0
  91. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/shaft.vol +0 -0
  92. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/square.in2d +0 -0
  93. {ngsolve-6.2.2406.data → ngsolve-6.2.2406.post111.dev1.data}/data/share/ngsolve/square.vol +0 -0
  94. {ngsolve-6.2.2406.dist-info → ngsolve-6.2.2406.post111.dev1.dist-info}/LICENSE +0 -0
  95. {ngsolve-6.2.2406.dist-info → ngsolve-6.2.2406.post111.dev1.dist-info}/WHEEL +0 -0
  96. {ngsolve-6.2.2406.dist-info → ngsolve-6.2.2406.post111.dev1.dist-info}/top_level.txt +0 -0
@@ -7,147 +7,12 @@
7
7
  /* Date: 14 Mar. 02 */
8
8
  /* ************************************************************************/
9
9
 
10
+ #include "basematrix.hpp"
11
+ #include "vvector.hpp"
12
+
10
13
  namespace ngla
11
14
  {
12
15
 
13
-
14
- class NGS_DLL_HEADER Projector : public BaseMatrix
15
- {
16
- shared_ptr<BitArray> bits;
17
- bool keep_values;
18
- public:
19
- // projector on true / false bits
20
- Projector (shared_ptr<BitArray> abits, bool akeep_values = true)
21
- : bits(abits), keep_values(akeep_values) { ; }
22
-
23
- virtual bool IsComplex() const override { return false; }
24
-
25
- virtual int VHeight() const override { return bits->Size(); }
26
- virtual int VWidth() const override { return bits->Size(); }
27
-
28
- virtual void Mult (const BaseVector & x, BaseVector & y) const override;
29
- virtual void MultTrans (const BaseVector & x, BaseVector & y) const override;
30
- virtual void MultAdd (double s, const BaseVector & x, BaseVector & y) const override;
31
- virtual void MultTransAdd (double s, const BaseVector & x, BaseVector & y) const override;
32
- virtual void Project (BaseVector & x) const;
33
- virtual void SetValues (BaseVector & x, double val) const;
34
-
35
- bool KeepValues() const { return keep_values; }
36
- shared_ptr<BitArray> Mask() const { return bits; }
37
-
38
- virtual shared_ptr<BaseSparseMatrix> CreateSparseMatrix() const override;
39
-
40
- AutoVector CreateRowVector() const override
41
- { throw Exception("CreateRowVector not implemented for Projector!"); }
42
- AutoVector CreateColVector() const override
43
- { throw Exception("CreateColVector not implemented for Projector!"); }
44
-
45
- AutoVector Evaluate(BaseVector & v) const override
46
- {
47
- auto res = v.CreateVector();
48
- Mult (v, res);
49
- return res;
50
- }
51
-
52
- };
53
-
54
-
55
- template <typename TM=double>
56
- class NGS_DLL_HEADER DiagonalMatrix : public BaseMatrix
57
- {
58
- shared_ptr<VVector<TM>> diag;
59
- public:
60
- // typedef typename mat_traits<TM>::TV_ROW TV_ROW;
61
- // typedef typename mat_traits<TM>::TV_COL TV_COL;
62
- typedef typename mat_traits<TM>::TSCAL TSCAL;
63
-
64
- DiagonalMatrix(size_t h)
65
- : diag(make_shared<VVector<TM>>(h)) { }
66
- DiagonalMatrix(const VVector<TM> & diag_)
67
- : diag(make_shared<VVector<TM>>(diag_)) { }
68
- DiagonalMatrix(shared_ptr<VVector<TM>> diag_)
69
- : diag(diag_) { }
70
-
71
- bool IsComplex() const override { return false; }
72
- TM & operator() (size_t i) { return (*diag)(i); }
73
- const TM & operator() (size_t i) const { return (*diag)(i); }
74
- int VHeight() const override { return diag->Size(); }
75
- int VWidth() const override { return diag->Size(); }
76
-
77
- BaseVector & AsVector() override { return *diag; }
78
- const BaseVector & AsVector() const override { return *diag; }
79
- ostream & Print (ostream & ost) const override;
80
-
81
- virtual shared_ptr<BaseSparseMatrix> CreateSparseMatrix() const override;
82
-
83
- AutoVector CreateRowVector () const override;
84
- AutoVector CreateColVector () const override;
85
-
86
- void MultAdd (double s, const BaseVector & x, BaseVector & y) const override;
87
- void MultTransAdd (double s, const BaseVector & x, BaseVector & y) const override;
88
-
89
- shared_ptr<BaseMatrix> InverseMatrix (shared_ptr<BitArray> subset = nullptr) const override;
90
- };
91
-
92
-
93
- template <typename TM=double>
94
- class BlockDiagonalMatrix : public BaseMatrix
95
- {
96
- Tensor<3,TM> blockdiag;
97
- int blocks, dimy, dimx;
98
- public:
99
- // typedef double TSCAL;
100
-
101
- BlockDiagonalMatrix(Tensor<3,TM> _blockdiag);
102
- bool IsComplex() const override { return ngbla::IsComplex<TM>(); }
103
-
104
- int VHeight() const override { return blocks*dimy; }
105
- int VWidth() const override { return blocks*dimx; }
106
-
107
- ostream & Print (ostream & ost) const override;
108
-
109
- AutoVector CreateRowVector () const override;
110
- AutoVector CreateColVector () const override;
111
-
112
- void Mult (const BaseVector & x, BaseVector & y) const override;
113
- void MultAdd (double s, const BaseVector & x, BaseVector & y) const override;
114
- void MultTransAdd (double s, const BaseVector & x, BaseVector & y) const override;
115
-
116
- shared_ptr<BaseMatrix> InverseMatrix (shared_ptr<BitArray> subset = nullptr) const override;
117
- };
118
-
119
- // blocks is inner-most dimension of tensor and vectors
120
- class BlockDiagonalMatrixSoA : public BaseMatrix
121
- {
122
- Tensor<3> blockdiag;
123
- int blocks, dimy, dimx;
124
- Matrix<double> nonzero;
125
- public:
126
- typedef double TSCAL;
127
-
128
- BlockDiagonalMatrixSoA(Tensor<3> _blockdiag);
129
- bool IsComplex() const override { return false; }
130
-
131
- int VHeight() const override { return blocks*dimy; }
132
- int VWidth() const override { return blocks*dimx; }
133
-
134
- ostream & Print (ostream & ost) const override;
135
- virtual BaseMatrix::OperatorInfo GetOperatorInfo () const override;
136
-
137
- AutoVector CreateRowVector () const override;
138
- AutoVector CreateColVector () const override;
139
-
140
- void MultAdd (double s, const BaseVector & x, BaseVector & y) const override;
141
- void MultTransAdd (double s, const BaseVector & x, BaseVector & y) const override;
142
- // shared_ptr<BaseMatrix> InverseMatrix (shared_ptr<BitArray> subset = nullptr) const override;
143
-
144
- FlatTensor<3> GetBlockDiag () const { return blockdiag; }
145
- FlatMatrix<double> GetNonZeroPattern() const { return nonzero; }
146
- };
147
-
148
-
149
-
150
-
151
16
  // Convert RowMajor to ColMajor matrix (stored as vector)
152
17
  class TransposeVector : public BaseMatrix
153
18
  {
@@ -25,6 +25,7 @@ namespace ngfem
25
25
  virtual IntRange UsedDofs(const FiniteElement & fel) const override { return IntRange(0, fel.GetNDof()); }
26
26
 
27
27
  virtual bool operator== (const TPDifferentialOperator & diffop2) const { return false; }
28
+ virtual bool operator== (const DifferentialOperator & diffop2) const override { return false; }
28
29
 
29
30
  shared_ptr<DifferentialOperator> & GetEvaluators( int num)
30
31
  {
@@ -46,6 +46,8 @@ namespace ngfem
46
46
  { throw Exception("TPMappedIntegrationRule::Range not implemented"); }
47
47
  virtual SliceMatrix<> GetPoints() const
48
48
  { throw Exception("TPMappedIntegrationRule::GetPoints not implemented"); }
49
+ virtual SliceMatrix<> GetNormals() const
50
+ { throw Exception("TPMappedIntegrationRule::GetNormals not implemented"); }
49
51
  virtual void ComputeNormalsAndMeasure (ELEMENT_TYPE et, int facetnr)
50
52
  { throw Exception("TPMappedIntegrationRule::ComputeNormalsAndMeasure not implemented"); }
51
53
  virtual bool IsComplex() const
@@ -18,7 +18,7 @@
18
18
  ////////////////////////////////////////////////////////////////////////////////
19
19
 
20
20
  #include <umfpack.h>
21
-
21
+ #include "sparsecholesky.hpp" // for SparseFactorization
22
22
  namespace ngla
23
23
  {
24
24
 
netgen/include/vector.hpp CHANGED
@@ -338,7 +338,12 @@ namespace ngbla
338
338
  {
339
339
  NETGEN_CHECK_RANGE(next,first,Size()+1);
340
340
  return VectorView<T,size_t,TDIST> (next-first, dist, data+first*dist);
341
- }
341
+ }
342
+
343
+ INLINE auto Range (size_t next) const
344
+ {
345
+ return Range(0, next);
346
+ }
342
347
 
343
348
  INLINE auto Range (IntRange range) const
344
349
  {
@@ -1,3 +1,8 @@
1
+ #ifndef FILE_VVECTOR
2
+ #define FILE_VVECTOR
3
+
4
+ #include "basevector.hpp"
5
+
1
6
  namespace ngla
2
7
  {
3
8
 
@@ -13,7 +18,7 @@ namespace ngla
13
18
  {
14
19
  protected:
15
20
  TSCAL * pdata;
16
- int es;
21
+ int es; // entry size in in term of TSCALs
17
22
  bool ownmem;
18
23
 
19
24
  public:
@@ -197,3 +202,7 @@ namespace ngla
197
202
  extern template class VVector<double>;
198
203
  extern template class VVector<Complex>;
199
204
  }
205
+
206
+
207
+
208
+ #endif
netgen/lib/libngsolve.lib CHANGED
Binary file
netgen/libngsolve.dll CHANGED
Binary file
@@ -1,4 +1,4 @@
1
- set(PACKAGE_VERSION "6.2.2406")
1
+ set(PACKAGE_VERSION "6.2.2406-111-g5c9ac9808")
2
2
  find_package(Netgen CONFIG REQUIRED HINTS
3
3
  ${CMAKE_CURRENT_LIST_DIR}
4
4
  ${CMAKE_CURRENT_LIST_DIR}/..
ngsolve/config/config.py CHANGED
@@ -30,15 +30,15 @@ NGSOLVE_INSTALL_DIR_INCLUDE = "netgen/include"
30
30
  NGSOLVE_INSTALL_DIR_CMAKE = "ngsolve/cmake"
31
31
  NGSOLVE_INSTALL_DIR_RES = "share"
32
32
 
33
- NGSOLVE_VERSION = "6.2.2406"
34
- NGSOLVE_VERSION_GIT = "v6.2.2406-0-g6f16aa5a2"
35
- NGSOLVE_VERSION_PYTHON = "6.2.2406"
33
+ NGSOLVE_VERSION = "6.2.2406-111-g5c9ac9808"
34
+ NGSOLVE_VERSION_GIT = "v6.2.2406-111-g5c9ac9808"
35
+ NGSOLVE_VERSION_PYTHON = "6.2.2406.post111.dev1"
36
36
 
37
37
  NGSOLVE_VERSION_MAJOR = "6"
38
38
  NGSOLVE_VERSION_MINOR = "2"
39
- NGSOLVE_VERSION_TWEAK = "0"
39
+ NGSOLVE_VERSION_TWEAK = "111"
40
40
  NGSOLVE_VERSION_PATCH = "2406"
41
- NGSOLVE_VERSION_HASH = "g6f16aa5a2"
41
+ NGSOLVE_VERSION_HASH = "g5c9ac9808"
42
42
 
43
43
  CMAKE_CXX_COMPILER = "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe"
44
44
  CMAKE_CUDA_COMPILER = ""
ngsolve/config.py CHANGED
@@ -30,15 +30,15 @@ NGSOLVE_INSTALL_DIR_INCLUDE = "netgen/include"
30
30
  NGSOLVE_INSTALL_DIR_CMAKE = "ngsolve/cmake"
31
31
  NGSOLVE_INSTALL_DIR_RES = "share"
32
32
 
33
- NGSOLVE_VERSION = "6.2.2406"
34
- NGSOLVE_VERSION_GIT = "v6.2.2406-0-g6f16aa5a2"
35
- NGSOLVE_VERSION_PYTHON = "6.2.2406"
33
+ NGSOLVE_VERSION = "6.2.2406-111-g5c9ac9808"
34
+ NGSOLVE_VERSION_GIT = "v6.2.2406-111-g5c9ac9808"
35
+ NGSOLVE_VERSION_PYTHON = "6.2.2406.post111.dev1"
36
36
 
37
37
  NGSOLVE_VERSION_MAJOR = "6"
38
38
  NGSOLVE_VERSION_MINOR = "2"
39
- NGSOLVE_VERSION_TWEAK = "0"
39
+ NGSOLVE_VERSION_TWEAK = "111"
40
40
  NGSOLVE_VERSION_PATCH = "2406"
41
- NGSOLVE_VERSION_HASH = "g6f16aa5a2"
41
+ NGSOLVE_VERSION_HASH = "g5c9ac9808"
42
42
 
43
43
  CMAKE_CXX_COMPILER = "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe"
44
44
  CMAKE_CUDA_COMPILER = ""
@@ -2,7 +2,7 @@
2
2
  # with Dirichlet boundary condition u = 0
3
3
 
4
4
  from ngsolve import *
5
- from netgen.geom2d import unit_square
5
+ # from netgen.geom2d import unit_square
6
6
 
7
7
  ngsglobals.msg_level = 1
8
8
 
@@ -4,6 +4,8 @@ from netgen.geom2d import SplineGeometry
4
4
 
5
5
  from ngsolve import *
6
6
 
7
+ SetNumThreads(1)
8
+
7
9
  from mpi4py.MPI import COMM_WORLD as comm
8
10
  rank = comm.rank
9
11
  np = comm.size
@@ -7,12 +7,15 @@
7
7
 
8
8
  # circular convection; time-DG with skeleton-formulation
9
9
 
10
+
10
11
  from netgen.geom2d import unit_square
11
12
  import netgen.meshing
12
13
 
13
14
 
14
15
  from ngsolve import *
15
16
 
17
+ SetNumThreads(1)
18
+
16
19
  from mpi4py.MPI import COMM_WORLD as comm
17
20
  rank = comm.rank
18
21
  np = comm.size
ngsolve/ngslib.pyd CHANGED
Binary file
@@ -0,0 +1,13 @@
1
+ Metadata-Version: 2.2
2
+ Name: ngsolve
3
+ Version: 6.2.2406.post111.dev1
4
+ Summary: NGSolve
5
+ Author: The NGSolve team
6
+ License: LGPL2.1
7
+ License-File: LICENSE
8
+ Requires-Dist: netgen-mesher==6.2.2406.post118.dev0
9
+ Requires-Dist: mkl
10
+ Dynamic: author
11
+ Dynamic: license
12
+ Dynamic: requires-dist
13
+ Dynamic: summary