radia 1.0.8__tar.gz → 1.0.9__tar.gz

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.
Files changed (139) hide show
  1. {radia-1.0.8 → radia-1.0.9}/LICENSE +564 -564
  2. {radia-1.0.8/src/radia.egg-info → radia-1.0.9}/PKG-INFO +1 -1
  3. {radia-1.0.8 → radia-1.0.9}/README.md +325 -325
  4. {radia-1.0.8 → radia-1.0.9}/README_BUILD.md +445 -445
  5. {radia-1.0.8 → radia-1.0.9}/docs/hmatrix_field_progress.md +127 -127
  6. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/demo_field_types.py +193 -193
  7. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/export_radia_geometry.py +77 -77
  8. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/rad.ObjBckgCF/Cubit2Nastran.py +59 -59
  9. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/rad.ObjBckgCF/sphere_nastran_analysis.py +529 -529
  10. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/rad.ObjBckgCF/sphere_nastran_geometry.vtk +12 -12
  11. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/visualize_field.py +263 -263
  12. {radia-1.0.8 → radia-1.0.9}/examples/complex_coil_geometry/coil_geometry.vtk +12 -12
  13. {radia-1.0.8 → radia-1.0.9}/examples/electromagnet/electromagnet.vtk +12 -12
  14. {radia-1.0.8 → radia-1.0.9}/examples/electromagnet/magnet.py +232 -232
  15. {radia-1.0.8 → radia-1.0.9}/examples/simple_problems/case1.py +63 -63
  16. {radia-1.0.8 → radia-1.0.9}/examples/simple_problems/case2.py +122 -122
  17. {radia-1.0.8 → radia-1.0.9}/examples/simple_problems/case3.py +121 -121
  18. {radia-1.0.8 → radia-1.0.9}/examples/smco_magnet_array/smco_array.vtk +12 -12
  19. {radia-1.0.8 → radia-1.0.9}/pyproject.toml +120 -120
  20. {radia-1.0.8 → radia-1.0.9}/setup.py +117 -117
  21. radia-1.0.9/src/python/__init__.py +2 -0
  22. {radia-1.0.8 → radia-1.0.9}/src/python/rad_ngsolve.pyd +0 -0
  23. radia-1.0.9/src/python/radia.pyd +0 -0
  24. {radia-1.0.8 → radia-1.0.9}/src/python/radia_vtk_export.py +134 -134
  25. {radia-1.0.8 → radia-1.0.9/src/radia.egg-info}/PKG-INFO +1 -1
  26. {radia-1.0.8 → radia-1.0.9}/src/radia.egg-info/SOURCES.txt +1 -7
  27. radia-1.0.9/src/radia.egg-info/top_level.txt +1 -0
  28. {radia-1.0.8 → radia-1.0.9}/tests/test_rad_ngsolve.py +206 -206
  29. radia-1.0.8/docs/API_REFERENCE_NGSOLVE.md +0 -216
  30. radia-1.0.8/docs/HMATRIX_USER_GUIDE.md +0 -433
  31. radia-1.0.8/docs/hmatrix_field_accuracy_issue.md +0 -217
  32. radia-1.0.8/docs/hmatrix_field_accuracy_solution.md +0 -262
  33. radia-1.0.8/examples/simple_problems/case_test_hmat.py +0 -53
  34. radia-1.0.8/examples/simple_problems/test_debug.py +0 -49
  35. radia-1.0.8/examples/simple_problems/test_simple_case.py +0 -30
  36. radia-1.0.8/src/python/radia.pyd +0 -0
  37. radia-1.0.8/src/radia.egg-info/top_level.txt +0 -1
  38. {radia-1.0.8 → radia-1.0.9}/COPYRIGHT.txt +0 -0
  39. {radia-1.0.8 → radia-1.0.9}/MANIFEST.in +0 -0
  40. {radia-1.0.8 → radia-1.0.9}/docs/API_EXTENSIONS.md +0 -0
  41. {radia-1.0.8 → radia-1.0.9}/docs/API_REFERENCE.md +0 -0
  42. {radia-1.0.8 → radia-1.0.9}/docs/CF_BACKGROUND_FIELD_IMPLEMENTATION.md +0 -0
  43. {radia-1.0.8 → radia-1.0.9}/docs/CLAUDE.md +0 -0
  44. {radia-1.0.8 → radia-1.0.9}/docs/DIRECTORY_STRUCTURE.md +0 -0
  45. {radia-1.0.8 → radia-1.0.9}/docs/HACAPK_INTEGRATION_COMPLETE.md +0 -0
  46. {radia-1.0.8 → radia-1.0.9}/docs/HACAPK_INTEGRATION_PLAN.md +0 -0
  47. {radia-1.0.8 → radia-1.0.9}/docs/NGSOLVE_CF_BACKGROUND_FIELD_DESIGN.md +0 -0
  48. {radia-1.0.8 → radia-1.0.9}/docs/NGSOLVE_DLL_ISSUE.md +0 -0
  49. {radia-1.0.8 → radia-1.0.9}/docs/NGSOLVE_INTEGRATION.md +0 -0
  50. {radia-1.0.8 → radia-1.0.9}/docs/NGSOLVE_INTEGRATION_STATUS.md +0 -0
  51. {radia-1.0.8 → radia-1.0.9}/docs/NGSOLVE_PYTHON_SOLUTION.md +0 -0
  52. {radia-1.0.8 → radia-1.0.9}/docs/NGSOLVE_USAGE_GUIDE.md +0 -0
  53. {radia-1.0.8 → radia-1.0.9}/docs/OPENMP_PERFORMANCE_REPORT.md +0 -0
  54. {radia-1.0.8 → radia-1.0.9}/docs/PHASE4_STATUS.md +0 -0
  55. {radia-1.0.8 → radia-1.0.9}/docs/TAB_CONVERSION_REPORT.md +0 -0
  56. {radia-1.0.8 → radia-1.0.9}/docs/hmatrix_field_design.md +0 -0
  57. {radia-1.0.8 → radia-1.0.9}/docs/scripts/README.md +0 -0
  58. {radia-1.0.8 → radia-1.0.9}/examples/H-matrix/BENCHMARK_RESULTS.md +0 -0
  59. {radia-1.0.8 → radia-1.0.9}/examples/H-matrix/HMATRIX_FIELD_DESIGN.md +0 -0
  60. {radia-1.0.8 → radia-1.0.9}/examples/H-matrix/HMATRIX_FIELD_DESIGN_SIMPLIFIED.md +0 -0
  61. {radia-1.0.8 → radia-1.0.9}/examples/H-matrix/README.md +0 -0
  62. {radia-1.0.8 → radia-1.0.9}/examples/H-matrix/benchmark_field_evaluation.py +0 -0
  63. {radia-1.0.8 → radia-1.0.9}/examples/H-matrix/benchmark_parallel_construction.py +0 -0
  64. {radia-1.0.8 → radia-1.0.9}/examples/H-matrix/benchmark_solver.py +0 -0
  65. {radia-1.0.8 → radia-1.0.9}/examples/H-matrix/plot_benchmark_results.py +0 -0
  66. {radia-1.0.8 → radia-1.0.9}/examples/H-matrix/run_all_benchmarks.py +0 -0
  67. {radia-1.0.8 → radia-1.0.9}/examples/H-matrix/verify_field_accuracy.py +0 -0
  68. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/HMATRIX_ANALYSIS.md +0 -0
  69. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/HMATRIX_FIELD_EVALUATION_ISSUE.md +0 -0
  70. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/H_MATRIX_PARALLEL_OPTIMIZATION.md +0 -0
  71. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/NGBEM_ANALYSIS.md +0 -0
  72. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/NGSOLVE_SET_VS_INTERPOLATE.md +0 -0
  73. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/PROPOSAL_VECTORIZED_API.md +0 -0
  74. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/README.md +0 -0
  75. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/SET_VS_INTERPOLATE_SIMPLE.md +0 -0
  76. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/SOLVER_OPTIMIZATION_PROPOSAL.md +0 -0
  77. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/benchmark_gridfunction_set.py +0 -0
  78. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/debug_field_values.py +0 -0
  79. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/rad.ObjBckgCF/README.md +0 -0
  80. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/rad.ObjBckgCF/sphere_nastran_field_mu.pvsm +0 -0
  81. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/radia_field.pvsm +0 -0
  82. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/test_batch_evaluation.py +0 -0
  83. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/test_batch_fld.py +0 -0
  84. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/test_coordinate_transform.py +0 -0
  85. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/test_mesh_convergence.py +0 -0
  86. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/test_set_vs_interpolate.py +0 -0
  87. {radia-1.0.8 → radia-1.0.9}/examples/NGSolve_Integration/verify_curl_A_equals_B.py +0 -0
  88. {radia-1.0.8 → radia-1.0.9}/examples/complex_coil_geometry/README.md +0 -0
  89. {radia-1.0.8 → radia-1.0.9}/examples/complex_coil_geometry/coil_model.py +0 -0
  90. {radia-1.0.8 → radia-1.0.9}/examples/complex_coil_geometry/complex_coil.pvsm +0 -0
  91. {radia-1.0.8 → radia-1.0.9}/examples/complex_coil_geometry/field_map.py +0 -0
  92. {radia-1.0.8 → radia-1.0.9}/examples/complex_coil_geometry/field_map.vtk +0 -0
  93. {radia-1.0.8 → radia-1.0.9}/examples/complex_coil_geometry/visualize_coils.py +0 -0
  94. {radia-1.0.8 → radia-1.0.9}/examples/electromagnet/README.md +0 -0
  95. {radia-1.0.8 → radia-1.0.9}/examples/electromagnet/electromagnet.pvsm +0 -0
  96. {radia-1.0.8 → radia-1.0.9}/examples/electromagnet/field_distribution.vtk +0 -0
  97. {radia-1.0.8 → radia-1.0.9}/examples/electromagnet/racetrack_coil_model.py +0 -0
  98. {radia-1.0.8 → radia-1.0.9}/examples/electromagnet/yoke_model.py +0 -0
  99. {radia-1.0.8 → radia-1.0.9}/examples/simple_problems/CONVERSION_NOTES.md +0 -0
  100. {radia-1.0.8 → radia-1.0.9}/examples/simple_problems/README.md +0 -0
  101. {radia-1.0.8 → radia-1.0.9}/examples/simple_problems/case0.py +0 -0
  102. {radia-1.0.8 → radia-1.0.9}/examples/simple_problems/test_update_hmatrix_magnetization.py +0 -0
  103. {radia-1.0.8 → radia-1.0.9}/examples/smco_magnet_array/README.md +0 -0
  104. {radia-1.0.8 → radia-1.0.9}/examples/smco_magnet_array/smbo.pvsm +0 -0
  105. {radia-1.0.8 → radia-1.0.9}/examples/smco_magnet_array/smco_array.py +0 -0
  106. {radia-1.0.8 → radia-1.0.9}/examples/smco_magnet_array/smco_field_distribution.vtk +0 -0
  107. {radia-1.0.8 → radia-1.0.9}/examples/solver_time_evaluation/README.md +0 -0
  108. {radia-1.0.8 → radia-1.0.9}/examples/solver_time_evaluation/benchmark_linear_material.py +0 -0
  109. {radia-1.0.8 → radia-1.0.9}/examples/solver_time_evaluation/benchmark_lu_vs_gs.py +0 -0
  110. {radia-1.0.8 → radia-1.0.9}/examples/solver_time_evaluation/benchmark_matrix_construction.py +0 -0
  111. {radia-1.0.8 → radia-1.0.9}/examples/solver_time_evaluation/benchmark_solver_scaling.py +0 -0
  112. {radia-1.0.8 → radia-1.0.9}/examples/test_hmatrix_accuracy.py +0 -0
  113. {radia-1.0.8 → radia-1.0.9}/examples/test_hmatrix_cube_nonlinear.py +0 -0
  114. {radia-1.0.8 → radia-1.0.9}/examples/test_hmatrix_parallel.py +0 -0
  115. {radia-1.0.8 → radia-1.0.9}/setup.cfg +0 -0
  116. {radia-1.0.8 → radia-1.0.9}/src/python/nastran_reader.py +0 -0
  117. {radia-1.0.8 → radia-1.0.9}/src/python/radia_coil_builder.py +0 -0
  118. {radia-1.0.8 → radia-1.0.9}/src/python/radia_ngsolve_field.py +0 -0
  119. {radia-1.0.8 → radia-1.0.9}/src/python/radia_pyvista_viewer.py +0 -0
  120. {radia-1.0.8 → radia-1.0.9}/src/radia.egg-info/dependency_links.txt +0 -0
  121. {radia-1.0.8 → radia-1.0.9}/src/radia.egg-info/not-zip-safe +0 -0
  122. {radia-1.0.8 → radia-1.0.9}/src/radia.egg-info/requires.txt +0 -0
  123. {radia-1.0.8 → radia-1.0.9}/tests/README.md +0 -0
  124. {radia-1.0.8 → radia-1.0.9}/tests/__init__.py +0 -0
  125. {radia-1.0.8 → radia-1.0.9}/tests/benchmark_hmatrix.py +0 -0
  126. {radia-1.0.8 → radia-1.0.9}/tests/benchmarks/benchmark_correct.py +0 -0
  127. {radia-1.0.8 → radia-1.0.9}/tests/benchmarks/benchmark_heavy.py +0 -0
  128. {radia-1.0.8 → radia-1.0.9}/tests/benchmarks/benchmark_openmp.py +0 -0
  129. {radia-1.0.8 → radia-1.0.9}/tests/benchmarks/benchmark_threads.py +0 -0
  130. {radia-1.0.8 → radia-1.0.9}/tests/conftest.py +0 -0
  131. {radia-1.0.8 → radia-1.0.9}/tests/test_advanced.py +0 -0
  132. {radia-1.0.8 → radia-1.0.9}/tests/test_magpylib_comparison.py +0 -0
  133. {radia-1.0.8 → radia-1.0.9}/tests/test_parallel_performance.py +0 -0
  134. {radia-1.0.8 → radia-1.0.9}/tests/test_radhmat.py +0 -0
  135. {radia-1.0.8 → radia-1.0.9}/tests/test_radia.py +0 -0
  136. {radia-1.0.8 → radia-1.0.9}/tests/test_simple.py +0 -0
  137. {radia-1.0.8 → radia-1.0.9}/tests/test_square_coil_analytical.py +0 -0
  138. {radia-1.0.8 → radia-1.0.9}/tests/test_utils.py +0 -0
  139. {radia-1.0.8 → radia-1.0.9}/tests/test_vector_potential.py +0 -0
@@ -1,564 +1,564 @@
1
- RADIA_NGSOLVE LICENSE
2
- =====================
3
-
4
- This project combines code from multiple sources with different licenses:
5
-
6
- 1. RADIA Core (Original Magnetostatics Code)
7
- - Copyright © 1997-2018, European Synchrotron Radiation Facility
8
- - License: BSD-style (see below)
9
- - Original authors: Pascal Elleaume, Oleg Chubar, and others at ESRF
10
-
11
- 2. NGSolve Integration (rad_ngsolve module)
12
- - This derivative work
13
- - License: LGPL-2.1 (to match NGSolve)
14
-
15
- 3. Modifications and Enhancements
16
- - OpenMP parallelization, Python 3.12 optimization, build system
17
- - License: LGPL-2.1
18
-
19
- SUMMARY:
20
- --------
21
- This combined work is licensed under LGPL-2.1 to ensure compatibility with
22
- NGSolve. The original RADIA code's BSD-style license is compatible with and
23
- subsumed by the LGPL-2.1.
24
-
25
-
26
- ================================================================================
27
- ORIGINAL RADIA LICENSE (BSD-style)
28
- ================================================================================
29
-
30
- Copyright © 1997 - 2018, European Synchrotron Radiation Facility
31
-
32
- The RADIA software is distributed subject to the following license conditions:
33
-
34
- Redistribution and use in source and binary forms, with or without
35
- modification, are permitted provided that the following conditions are met:
36
-
37
- 1. Redistributions of source code must retain the above copyright notice,
38
- this list of conditions and the following disclaimer.
39
-
40
- 2. Redistributions in binary form must reproduce the above copyright notice,
41
- this list of conditions and the following disclaimer in the documentation
42
- and/or other materials provided with the distribution.
43
-
44
- DISCLAIMER: THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS"
45
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
46
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
47
- ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
48
- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
49
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
50
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
51
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
52
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
53
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54
-
55
- The views and conclusions contained in the software and documentation are
56
- those of the authors and should not be interpreted as representing official
57
- policies, either expressed or implied, of the RADIA project.
58
-
59
-
60
- ================================================================================
61
- LGPL-2.1 LICENSE (For NGSolve Integration and Modifications)
62
- ================================================================================
63
-
64
- GNU LESSER GENERAL PUBLIC LICENSE
65
- Version 2.1, February 1999
66
-
67
- Copyright (C) 1991, 1999 Free Software Foundation, Inc.
68
- <https://fsf.org/>
69
- Everyone is permitted to copy and distribute verbatim copies
70
- of this license document, but changing it is not allowed.
71
-
72
- [This is the first released version of the Lesser GPL. It also counts
73
- as the successor of the GNU Library Public License, version 2, hence
74
- the version number 2.1.]
75
-
76
- Preamble
77
-
78
- The licenses for most software are designed to take away your
79
- freedom to share and change it. By contrast, the GNU General Public
80
- Licenses are intended to guarantee your freedom to share and change
81
- free software--to make sure the software is free for all its users.
82
-
83
- This license, the Lesser General Public License, applies to some
84
- specially designated software packages--typically libraries--of the
85
- Free Software Foundation and other authors who decide to use it. You
86
- can use it too, but we suggest you first think carefully about whether
87
- this license or the ordinary General Public License is the better
88
- strategy to use in any particular case, based on the explanations below.
89
-
90
- When we speak of free software, we are referring to freedom of use,
91
- not price. Our General Public Licenses are designed to make sure that
92
- you have the freedom to distribute copies of free software (and charge
93
- for this service if you wish); that you receive source code or can get
94
- it if you want it; that you can change the software and use pieces of
95
- it in new free programs; and that you are informed that you can do
96
- these things.
97
-
98
- To protect your rights, we need to make restrictions that forbid
99
- distributors to deny you these rights or to ask you to surrender these
100
- rights. These restrictions translate to certain responsibilities for
101
- you if you distribute copies of the library or if you modify it.
102
-
103
- For example, if you distribute copies of the library, whether gratis
104
- or for a fee, you must give the recipients all the rights that we gave
105
- you. You must make sure that they, too, receive or can get the source
106
- code. If you link other code with the library, you must provide
107
- complete object files to the recipients, so that they can relink them
108
- with the library after making changes to the library and recompiling
109
- it. And you must show them these terms so they know their rights.
110
-
111
- We protect your rights with a two-step method: (1) we copyright the
112
- library, and (2) we offer you this license, which gives you legal
113
- permission to copy, distribute and/or modify the library.
114
-
115
- To protect each distributor, we want to make it very clear that
116
- there is no warranty for the free library. Also, if the library is
117
- modified by someone else and passed on, the recipients should know
118
- that what they have is not the original version, so that the original
119
- author's reputation will not be affected by problems that might be
120
- introduced by others.
121
-
122
- Finally, software patents pose a constant threat to the existence of
123
- any free program. We wish to make sure that a company cannot
124
- effectively restrict the users of a free program by obtaining a
125
- restrictive license from a patent holder. Therefore, we insist that
126
- any patent license obtained for a version of the library must be
127
- consistent with the full freedom of use specified in this license.
128
-
129
- Most GNU software, including some libraries, is covered by the
130
- ordinary GNU General Public License. This license, the GNU Lesser
131
- General Public License, applies to certain designated libraries, and
132
- is quite different from the ordinary General Public License. We use
133
- this license for certain libraries in order to permit linking those
134
- libraries into non-free programs.
135
-
136
- When a program is linked with a library, whether statically or using
137
- a shared library, the combination of the two is legally speaking a
138
- combined work, a derivative of the original library. The ordinary
139
- General Public License therefore permits such linking only if the
140
- entire combination fits its criteria of freedom. The Lesser General
141
- Public License permits more lax criteria for linking other code with
142
- the library.
143
-
144
- We call this license the "Lesser" General Public License because it
145
- does Less to protect the user's freedom than the ordinary General
146
- Public License. It also provides other free software developers Less
147
- of an advantage over competing non-free programs. These disadvantages
148
- are the reason we use the ordinary General Public License for many
149
- libraries. However, the Lesser license provides advantages in certain
150
- special circumstances.
151
-
152
- For example, on rare occasions, there may be a special need to
153
- encourage the widest possible use of a certain library, so that it becomes
154
- a de-facto standard. To achieve this, non-free programs must be
155
- allowed to use the library. A more frequent case is that a free
156
- library does the same job as widely used non-free libraries. In this
157
- case, there is little to gain by limiting the free library to free
158
- software only, so we use the Lesser General Public License.
159
-
160
- In other cases, permission to use a particular library in non-free
161
- programs enables a greater number of people to use a large body of
162
- free software. For example, permission to use the GNU C Library in
163
- non-free programs enables many more people to use the whole GNU
164
- operating system, as well as its variant, the GNU/Linux operating
165
- system.
166
-
167
- Although the Lesser General Public License is Less protective of the
168
- users' freedom, it does ensure that the user of a program that is
169
- linked with the Library has the freedom and the wherewithal to run
170
- that program using a modified version of the Library.
171
-
172
- The precise terms and conditions for copying, distribution and
173
- modification follow. Pay close attention to the difference between a
174
- "work based on the library" and a "work that uses the library". The
175
- former contains code derived from the library, whereas the latter must
176
- be combined with the library in order to run.
177
-
178
- GNU LESSER GENERAL PUBLIC LICENSE
179
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
180
-
181
- 0. This License Agreement applies to any software library or other
182
- program which contains a notice placed by the copyright holder or
183
- other authorized party saying it may be distributed under the terms of
184
- this Lesser General Public License (also called "this License").
185
- Each licensee is addressed as "you".
186
-
187
- A "library" means a collection of software functions and/or data
188
- prepared so as to be conveniently linked with application programs
189
- (which use some of those functions and data) to form executables.
190
-
191
- The "Library", below, refers to any such software library or work
192
- which has been distributed under these terms. A "work based on the
193
- Library" means either the Library or any derivative work under
194
- copyright law: that is to say, a work containing the Library or a
195
- portion of it, either verbatim or with modifications and/or translated
196
- straightforwardly into another language. (Hereinafter, translation is
197
- included without limitation in the term "modification".)
198
-
199
- "Source code" for a work means the preferred form of the work for
200
- making modifications to it. For a library, complete source code means
201
- all the source code for all modules it contains, plus any associated
202
- interface definition files, plus the scripts used to control compilation
203
- and installation of the library.
204
-
205
- Activities other than copying, distribution and modification are not
206
- covered by this License; they are outside its scope. The act of
207
- running a program using the Library is not restricted, and output from
208
- such a program is covered only if its contents constitute a work based
209
- on the Library (independent of the use of the Library in a tool for
210
- writing it). Whether that is true depends on what the Library does
211
- and what the program that uses the Library does.
212
-
213
- 1. You may copy and distribute verbatim copies of the Library's
214
- complete source code as you receive it, in any medium, provided that
215
- you conspicuously and appropriately publish on each copy an
216
- appropriate copyright notice and disclaimer of warranty; keep intact
217
- all the notices that refer to this License and to the absence of any
218
- warranty; and distribute a copy of this License along with the
219
- Library.
220
-
221
- You may charge a fee for the physical act of transferring a copy,
222
- and you may at your option offer warranty protection in exchange for a
223
- fee.
224
-
225
- 2. You may modify your copy or copies of the Library or any portion
226
- of it, thus forming a work based on the Library, and copy and
227
- distribute such modifications or work under the terms of Section 1
228
- above, provided that you also meet all of these conditions:
229
-
230
- a) The modified work must itself be a software library.
231
-
232
- b) You must cause the files modified to carry prominent notices
233
- stating that you changed the files and the date of any change.
234
-
235
- c) You must cause the whole of the work to be licensed at no
236
- charge to all third parties under the terms of this License.
237
-
238
- d) If a facility in the modified Library refers to a function or a
239
- table of data to be supplied by an application program that uses
240
- the facility, other than as an argument passed when the facility
241
- is invoked, then you must make a good faith effort to ensure that,
242
- in the event an application does not supply such function or
243
- table, the facility still operates, and performs whatever part of
244
- its purpose remains meaningful.
245
-
246
- (For example, a function in a library to compute square roots has
247
- a purpose that is entirely well-defined independent of the
248
- application. Therefore, Subsection 2d requires that any
249
- application-supplied function or table used by this function must
250
- be optional: if the application does not supply it, the square
251
- root function must still compute square roots.)
252
-
253
- These requirements apply to the modified work as a whole. If
254
- identifiable sections of that work are not derived from the Library,
255
- and can be reasonably considered independent and separate works in
256
- themselves, then this License, and its terms, do not apply to those
257
- sections when you distribute them as separate works. But when you
258
- distribute the same sections as part of a whole which is a work based
259
- on the Library, the distribution of the whole must be on the terms of
260
- this License, whose permissions for other licensees extend to the
261
- entire whole, and thus to each and every part regardless of who wrote
262
- it.
263
-
264
- Thus, it is not the intent of this section to claim rights or contest
265
- your rights to work written entirely by you; rather, the intent is to
266
- exercise the right to control the distribution of derivative or
267
- collective works based on the Library.
268
-
269
- In addition, mere aggregation of another work not based on the Library
270
- with the Library (or with a work based on the Library) on a volume of
271
- a storage or distribution medium does not bring the other work under
272
- the scope of this License.
273
-
274
- 3. You may opt to apply the terms of the ordinary GNU General Public
275
- License instead of this License to a given copy of the Library. To do
276
- this, you must alter all the notices that refer to this License, so
277
- that they refer to the ordinary GNU General Public License, version 2,
278
- instead of to this License. (If a newer version than version 2 of the
279
- ordinary GNU General Public License has appeared, then you can specify
280
- that version instead if you wish.) Do not make any other change in
281
- these notices.
282
-
283
- Once this change is made in a given copy, it is irreversible for
284
- that copy, so the ordinary GNU General Public License applies to all
285
- subsequent copies and derivative works made from that copy.
286
-
287
- This option is useful when you wish to copy part of the code of
288
- the Library into a program that is not a library.
289
-
290
- 4. You may copy and distribute the Library (or a portion or
291
- derivative of it, under Section 2) in object code or executable form
292
- under the terms of Sections 1 and 2 above provided that you accompany
293
- it with the complete corresponding machine-readable source code, which
294
- must be distributed under the terms of Sections 1 and 2 above on a
295
- medium customarily used for software interchange.
296
-
297
- If distribution of object code is made by offering access to copy
298
- from a designated place, then offering equivalent access to copy the
299
- source code from the same place satisfies the requirement to
300
- distribute the source code, even though third parties are not
301
- compelled to copy the source along with the object code.
302
-
303
- 5. A program that contains no derivative of any portion of the
304
- Library, but is designed to work with the Library by being compiled or
305
- linked with it, is called a "work that uses the Library". Such a
306
- work, in isolation, is not a derivative work of the Library, and
307
- therefore falls outside the scope of this License.
308
-
309
- However, linking a "work that uses the Library" with the Library
310
- creates an executable that is a derivative of the Library (because it
311
- contains portions of the Library), rather than a "work that uses the
312
- library". The executable is therefore covered by this License.
313
- Section 6 states terms for distribution of such executables.
314
-
315
- When a "work that uses the Library" uses material from a header file
316
- that is part of the Library, the object code for the work may be a
317
- derivative work of the Library even though the source code is not.
318
- Whether this is true is especially significant if the work can be
319
- linked without the Library, or if the work is itself a library. The
320
- threshold for this to be true is not precisely defined by law.
321
-
322
- If such an object file uses only numerical parameters, data
323
- structure layouts and accessors, and small macros and small inline
324
- functions (ten lines or less in length), then the use of the object
325
- file is unrestricted, regardless of whether it is legally a derivative
326
- work. (Executables containing this object code plus portions of the
327
- Library will still fall under Section 6.)
328
-
329
- Otherwise, if the work is a derivative of the Library, you may
330
- distribute the object code for the work under the terms of Section 6.
331
- Any executables containing that work also fall under Section 6,
332
- whether or not they are linked directly with the Library itself.
333
-
334
- 6. As an exception to the Sections above, you may also combine or
335
- link a "work that uses the Library" with the Library to produce a
336
- work containing portions of the Library, and distribute that work
337
- under terms of your choice, provided that the terms permit
338
- modification of the work for the customer's own use and reverse
339
- engineering for debugging such modifications.
340
-
341
- You must give prominent notice with each copy of the work that the
342
- Library is used in it and that the Library and its use are covered by
343
- this License. You must supply a copy of this License. If the work
344
- during execution displays copyright notices, you must include the
345
- copyright notice for the Library among them, as well as a reference
346
- directing the user to the copy of this License. Also, you must do one
347
- of these things:
348
-
349
- a) Accompany the work with the complete corresponding
350
- machine-readable source code for the Library including whatever
351
- changes were used in the work (which must be distributed under
352
- Sections 1 and 2 above); and, if the work is an executable linked
353
- with the Library, with the complete machine-readable "work that
354
- uses the Library", as object code and/or source code, so that the
355
- user can modify the Library and then relink to produce a modified
356
- executable containing the modified Library. (It is understood
357
- that the user who changes the contents of definitions files in the
358
- Library will not necessarily be able to recompile the application
359
- to use the modified definitions.)
360
-
361
- b) Use a suitable shared library mechanism for linking with the
362
- Library. A suitable mechanism is one that (1) uses at run time a
363
- copy of the library already present on the user's computer system,
364
- rather than copying library functions into the executable, and (2)
365
- will operate properly with a modified version of the library, if
366
- the user installs one, as long as the modified version is
367
- interface-compatible with the version that the work was made with.
368
-
369
- c) Accompany the work with a written offer, valid for at
370
- least three years, to give the same user the materials
371
- specified in Subsection 6a, above, for a charge no more
372
- than the cost of performing this distribution.
373
-
374
- d) If distribution of the work is made by offering access to copy
375
- from a designated place, offer equivalent access to copy the above
376
- specified materials from the same place.
377
-
378
- e) Verify that the user has already received a copy of these
379
- materials or that you have already sent this user a copy.
380
-
381
- For an executable, the required form of the "work that uses the
382
- Library" must include any data and utility programs needed for
383
- reproducing the executable from it. However, as a special exception,
384
- the materials to be distributed need not include anything that is
385
- normally distributed (in either source or binary form) with the major
386
- components (compiler, kernel, and so on) of the operating system on
387
- which the executable runs, unless that component itself accompanies
388
- the executable.
389
-
390
- It may happen that this requirement contradicts the license
391
- restrictions of other proprietary libraries that do not normally
392
- accompany the operating system. Such a contradiction means you cannot
393
- use both them and the Library together in an executable that you
394
- distribute.
395
-
396
- 7. You may place library facilities that are a work based on the
397
- Library side-by-side in a single library together with other library
398
- facilities not covered by this License, and distribute such a combined
399
- library, provided that the separate distribution of the work based on
400
- the Library and of the other library facilities is otherwise
401
- permitted, and provided that you do these two things:
402
-
403
- a) Accompany the combined library with a copy of the same work
404
- based on the Library, uncombined with any other library
405
- facilities. This must be distributed under the terms of the
406
- Sections above.
407
-
408
- b) Give prominent notice with the combined library of the fact
409
- that part of it is a work based on the Library, and explaining
410
- where to find the accompanying uncombined form of the same work.
411
-
412
- 8. You may not copy, modify, sublicense, link with, or distribute
413
- the Library except as expressly provided under this License. Any
414
- attempt otherwise to copy, modify, sublicense, link with, or
415
- distribute the Library is void, and will automatically terminate your
416
- rights under this License. However, parties who have received copies,
417
- or rights, from you under this License will not have their licenses
418
- terminated so long as such parties remain in full compliance.
419
-
420
- 9. You are not required to accept this License, since you have not
421
- signed it. However, nothing else grants you permission to modify or
422
- distribute the Library or its derivative works. These actions are
423
- prohibited by law if you do not accept this License. Therefore, by
424
- modifying or distributing the Library (or any work based on the
425
- Library), you indicate your acceptance of this License to do so, and
426
- all its terms and conditions for copying, distributing or modifying
427
- the Library or works based on it.
428
-
429
- 10. Each time you redistribute the Library (or any work based on the
430
- Library), the recipient automatically receives a license from the
431
- original licensor to copy, distribute, link with or modify the Library
432
- subject to these terms and conditions. You may not impose any further
433
- restrictions on the recipients' exercise of the rights granted herein.
434
- You are not responsible for enforcing compliance by third parties with
435
- this License.
436
-
437
- 11. If, as a consequence of a court judgment or allegation of patent
438
- infringement or for any other reason (not limited to patent issues),
439
- conditions are imposed on you (whether by court order, agreement or
440
- otherwise) that contradict the conditions of this License, they do not
441
- excuse you from the conditions of this License. If you cannot
442
- distribute so as to satisfy simultaneously your obligations under this
443
- License and any other pertinent obligations, then as a consequence you
444
- may not distribute the Library at all. For example, if a patent
445
- license would not permit royalty-free redistribution of the Library by
446
- all those who receive copies directly or indirectly through you, then
447
- the only way you could satisfy both it and this License would be to
448
- refrain entirely from distribution of the Library.
449
-
450
- If any portion of this section is held invalid or unenforceable under any
451
- particular circumstance, the balance of the section is intended to apply,
452
- and the section as a whole is intended to apply in other circumstances.
453
-
454
- It is not the purpose of this section to induce you to infringe any
455
- patents or other property right claims or to contest validity of any
456
- such claims; this section has the sole purpose of protecting the
457
- integrity of the free software distribution system which is
458
- implemented by public license practices. Many people have made
459
- generous contributions to the wide range of software distributed
460
- through that system in reliance on consistent application of that
461
- system; it is up to the author/donor to decide if he or she is willing
462
- to distribute software through any other system and a licensee cannot
463
- impose that choice.
464
-
465
- This section is intended to make thoroughly clear what is believed to
466
- be a consequence of the rest of this License.
467
-
468
- 12. If the distribution and/or use of the Library is restricted in
469
- certain countries either by patents or by copyrighted interfaces, the
470
- original copyright holder who places the Library under this License may add
471
- an explicit geographical distribution limitation excluding those countries,
472
- so that distribution is permitted only in or among countries not thus
473
- excluded. In such case, this License incorporates the limitation as if
474
- written in the body of this License.
475
-
476
- 13. The Free Software Foundation may publish revised and/or new
477
- versions of the Lesser General Public License from time to time.
478
- Such new versions will be similar in spirit to the present version,
479
- but may differ in detail to address new problems or concerns.
480
-
481
- Each version is given a distinguishing version number. If the Library
482
- specifies a version number of this License which applies to it and
483
- "any later version", you have the option of following the terms and
484
- conditions either of that version or of any later version published by
485
- the Free Software Foundation. If the Library does not specify a
486
- license version number, you may choose any version ever published by
487
- the Free Software Foundation.
488
-
489
- 14. If you wish to incorporate parts of the Library into other free
490
- programs whose distribution conditions are incompatible with these,
491
- write to the author to ask for permission. For software which is
492
- copyrighted by the Free Software Foundation, write to the Free
493
- Software Foundation; we sometimes make exceptions for this. Our
494
- decision will be guided by the two goals of preserving the free status
495
- of all derivatives of our free software and of promoting the sharing
496
- and reuse of software generally.
497
-
498
- NO WARRANTY
499
-
500
- 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
501
- WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
502
- EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
503
- OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
504
- KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
505
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
506
- PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
507
- LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
508
- THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
509
-
510
- 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
511
- WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
512
- AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
513
- FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
514
- CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
515
- LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
516
- RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
517
- FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
518
- SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
519
- DAMAGES.
520
-
521
- END OF TERMS AND CONDITIONS
522
-
523
- How to Apply These Terms to Your New Libraries
524
-
525
- If you develop a new library, and you want it to be of the greatest
526
- possible use to the public, we recommend making it free software that
527
- everyone can redistribute and change. You can do so by permitting
528
- redistribution under these terms (or, alternatively, under the terms of the
529
- ordinary General Public License).
530
-
531
- To apply these terms, attach the following notices to the library. It is
532
- safest to attach them to the start of each source file to most effectively
533
- convey the exclusion of warranty; and each file should have at least the
534
- "copyright" line and a pointer to where the full notice is found.
535
-
536
- <one line to give the library's name and a brief idea of what it does.>
537
- Copyright (C) <year> <name of author>
538
-
539
- This library is free software; you can redistribute it and/or
540
- modify it under the terms of the GNU Lesser General Public
541
- License as published by the Free Software Foundation; either
542
- version 2.1 of the License, or (at your option) any later version.
543
-
544
- This library is distributed in the hope that it will be useful,
545
- but WITHOUT ANY WARRANTY; without even the implied warranty of
546
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
547
- Lesser General Public License for more details.
548
-
549
- You should have received a copy of the GNU Lesser General Public
550
- License along with this library; if not, see <https://www.gnu.org/licenses/>.
551
-
552
- Also add information on how to contact you by electronic and paper mail.
553
-
554
- You should also get your employer (if you work as a programmer) or your
555
- school, if any, to sign a "copyright disclaimer" for the library, if
556
- necessary. Here is a sample; alter the names:
557
-
558
- Yoyodyne, Inc., hereby disclaims all copyright interest in the
559
- library `Frob' (a library for tweaking knobs) written by James Random Hacker.
560
-
561
- <signature of Moe Ghoul>, 1 April 1990
562
- Moe Ghoul, President of Vice
563
-
564
- That's all there is to it!
1
+ RADIA_NGSOLVE LICENSE
2
+ =====================
3
+
4
+ This project combines code from multiple sources with different licenses:
5
+
6
+ 1. RADIA Core (Original Magnetostatics Code)
7
+ - Copyright © 1997-2018, European Synchrotron Radiation Facility
8
+ - License: BSD-style (see below)
9
+ - Original authors: Pascal Elleaume, Oleg Chubar, and others at ESRF
10
+
11
+ 2. NGSolve Integration (rad_ngsolve module)
12
+ - This derivative work
13
+ - License: LGPL-2.1 (to match NGSolve)
14
+
15
+ 3. Modifications and Enhancements
16
+ - OpenMP parallelization, Python 3.12 optimization, build system
17
+ - License: LGPL-2.1
18
+
19
+ SUMMARY:
20
+ --------
21
+ This combined work is licensed under LGPL-2.1 to ensure compatibility with
22
+ NGSolve. The original RADIA code's BSD-style license is compatible with and
23
+ subsumed by the LGPL-2.1.
24
+
25
+
26
+ ================================================================================
27
+ ORIGINAL RADIA LICENSE (BSD-style)
28
+ ================================================================================
29
+
30
+ Copyright © 1997 - 2018, European Synchrotron Radiation Facility
31
+
32
+ The RADIA software is distributed subject to the following license conditions:
33
+
34
+ Redistribution and use in source and binary forms, with or without
35
+ modification, are permitted provided that the following conditions are met:
36
+
37
+ 1. Redistributions of source code must retain the above copyright notice,
38
+ this list of conditions and the following disclaimer.
39
+
40
+ 2. Redistributions in binary form must reproduce the above copyright notice,
41
+ this list of conditions and the following disclaimer in the documentation
42
+ and/or other materials provided with the distribution.
43
+
44
+ DISCLAIMER: THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS"
45
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
46
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
47
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
48
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
49
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
50
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
51
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
52
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
53
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54
+
55
+ The views and conclusions contained in the software and documentation are
56
+ those of the authors and should not be interpreted as representing official
57
+ policies, either expressed or implied, of the RADIA project.
58
+
59
+
60
+ ================================================================================
61
+ LGPL-2.1 LICENSE (For NGSolve Integration and Modifications)
62
+ ================================================================================
63
+
64
+ GNU LESSER GENERAL PUBLIC LICENSE
65
+ Version 2.1, February 1999
66
+
67
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
68
+ <https://fsf.org/>
69
+ Everyone is permitted to copy and distribute verbatim copies
70
+ of this license document, but changing it is not allowed.
71
+
72
+ [This is the first released version of the Lesser GPL. It also counts
73
+ as the successor of the GNU Library Public License, version 2, hence
74
+ the version number 2.1.]
75
+
76
+ Preamble
77
+
78
+ The licenses for most software are designed to take away your
79
+ freedom to share and change it. By contrast, the GNU General Public
80
+ Licenses are intended to guarantee your freedom to share and change
81
+ free software--to make sure the software is free for all its users.
82
+
83
+ This license, the Lesser General Public License, applies to some
84
+ specially designated software packages--typically libraries--of the
85
+ Free Software Foundation and other authors who decide to use it. You
86
+ can use it too, but we suggest you first think carefully about whether
87
+ this license or the ordinary General Public License is the better
88
+ strategy to use in any particular case, based on the explanations below.
89
+
90
+ When we speak of free software, we are referring to freedom of use,
91
+ not price. Our General Public Licenses are designed to make sure that
92
+ you have the freedom to distribute copies of free software (and charge
93
+ for this service if you wish); that you receive source code or can get
94
+ it if you want it; that you can change the software and use pieces of
95
+ it in new free programs; and that you are informed that you can do
96
+ these things.
97
+
98
+ To protect your rights, we need to make restrictions that forbid
99
+ distributors to deny you these rights or to ask you to surrender these
100
+ rights. These restrictions translate to certain responsibilities for
101
+ you if you distribute copies of the library or if you modify it.
102
+
103
+ For example, if you distribute copies of the library, whether gratis
104
+ or for a fee, you must give the recipients all the rights that we gave
105
+ you. You must make sure that they, too, receive or can get the source
106
+ code. If you link other code with the library, you must provide
107
+ complete object files to the recipients, so that they can relink them
108
+ with the library after making changes to the library and recompiling
109
+ it. And you must show them these terms so they know their rights.
110
+
111
+ We protect your rights with a two-step method: (1) we copyright the
112
+ library, and (2) we offer you this license, which gives you legal
113
+ permission to copy, distribute and/or modify the library.
114
+
115
+ To protect each distributor, we want to make it very clear that
116
+ there is no warranty for the free library. Also, if the library is
117
+ modified by someone else and passed on, the recipients should know
118
+ that what they have is not the original version, so that the original
119
+ author's reputation will not be affected by problems that might be
120
+ introduced by others.
121
+
122
+ Finally, software patents pose a constant threat to the existence of
123
+ any free program. We wish to make sure that a company cannot
124
+ effectively restrict the users of a free program by obtaining a
125
+ restrictive license from a patent holder. Therefore, we insist that
126
+ any patent license obtained for a version of the library must be
127
+ consistent with the full freedom of use specified in this license.
128
+
129
+ Most GNU software, including some libraries, is covered by the
130
+ ordinary GNU General Public License. This license, the GNU Lesser
131
+ General Public License, applies to certain designated libraries, and
132
+ is quite different from the ordinary General Public License. We use
133
+ this license for certain libraries in order to permit linking those
134
+ libraries into non-free programs.
135
+
136
+ When a program is linked with a library, whether statically or using
137
+ a shared library, the combination of the two is legally speaking a
138
+ combined work, a derivative of the original library. The ordinary
139
+ General Public License therefore permits such linking only if the
140
+ entire combination fits its criteria of freedom. The Lesser General
141
+ Public License permits more lax criteria for linking other code with
142
+ the library.
143
+
144
+ We call this license the "Lesser" General Public License because it
145
+ does Less to protect the user's freedom than the ordinary General
146
+ Public License. It also provides other free software developers Less
147
+ of an advantage over competing non-free programs. These disadvantages
148
+ are the reason we use the ordinary General Public License for many
149
+ libraries. However, the Lesser license provides advantages in certain
150
+ special circumstances.
151
+
152
+ For example, on rare occasions, there may be a special need to
153
+ encourage the widest possible use of a certain library, so that it becomes
154
+ a de-facto standard. To achieve this, non-free programs must be
155
+ allowed to use the library. A more frequent case is that a free
156
+ library does the same job as widely used non-free libraries. In this
157
+ case, there is little to gain by limiting the free library to free
158
+ software only, so we use the Lesser General Public License.
159
+
160
+ In other cases, permission to use a particular library in non-free
161
+ programs enables a greater number of people to use a large body of
162
+ free software. For example, permission to use the GNU C Library in
163
+ non-free programs enables many more people to use the whole GNU
164
+ operating system, as well as its variant, the GNU/Linux operating
165
+ system.
166
+
167
+ Although the Lesser General Public License is Less protective of the
168
+ users' freedom, it does ensure that the user of a program that is
169
+ linked with the Library has the freedom and the wherewithal to run
170
+ that program using a modified version of the Library.
171
+
172
+ The precise terms and conditions for copying, distribution and
173
+ modification follow. Pay close attention to the difference between a
174
+ "work based on the library" and a "work that uses the library". The
175
+ former contains code derived from the library, whereas the latter must
176
+ be combined with the library in order to run.
177
+
178
+ GNU LESSER GENERAL PUBLIC LICENSE
179
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
180
+
181
+ 0. This License Agreement applies to any software library or other
182
+ program which contains a notice placed by the copyright holder or
183
+ other authorized party saying it may be distributed under the terms of
184
+ this Lesser General Public License (also called "this License").
185
+ Each licensee is addressed as "you".
186
+
187
+ A "library" means a collection of software functions and/or data
188
+ prepared so as to be conveniently linked with application programs
189
+ (which use some of those functions and data) to form executables.
190
+
191
+ The "Library", below, refers to any such software library or work
192
+ which has been distributed under these terms. A "work based on the
193
+ Library" means either the Library or any derivative work under
194
+ copyright law: that is to say, a work containing the Library or a
195
+ portion of it, either verbatim or with modifications and/or translated
196
+ straightforwardly into another language. (Hereinafter, translation is
197
+ included without limitation in the term "modification".)
198
+
199
+ "Source code" for a work means the preferred form of the work for
200
+ making modifications to it. For a library, complete source code means
201
+ all the source code for all modules it contains, plus any associated
202
+ interface definition files, plus the scripts used to control compilation
203
+ and installation of the library.
204
+
205
+ Activities other than copying, distribution and modification are not
206
+ covered by this License; they are outside its scope. The act of
207
+ running a program using the Library is not restricted, and output from
208
+ such a program is covered only if its contents constitute a work based
209
+ on the Library (independent of the use of the Library in a tool for
210
+ writing it). Whether that is true depends on what the Library does
211
+ and what the program that uses the Library does.
212
+
213
+ 1. You may copy and distribute verbatim copies of the Library's
214
+ complete source code as you receive it, in any medium, provided that
215
+ you conspicuously and appropriately publish on each copy an
216
+ appropriate copyright notice and disclaimer of warranty; keep intact
217
+ all the notices that refer to this License and to the absence of any
218
+ warranty; and distribute a copy of this License along with the
219
+ Library.
220
+
221
+ You may charge a fee for the physical act of transferring a copy,
222
+ and you may at your option offer warranty protection in exchange for a
223
+ fee.
224
+
225
+ 2. You may modify your copy or copies of the Library or any portion
226
+ of it, thus forming a work based on the Library, and copy and
227
+ distribute such modifications or work under the terms of Section 1
228
+ above, provided that you also meet all of these conditions:
229
+
230
+ a) The modified work must itself be a software library.
231
+
232
+ b) You must cause the files modified to carry prominent notices
233
+ stating that you changed the files and the date of any change.
234
+
235
+ c) You must cause the whole of the work to be licensed at no
236
+ charge to all third parties under the terms of this License.
237
+
238
+ d) If a facility in the modified Library refers to a function or a
239
+ table of data to be supplied by an application program that uses
240
+ the facility, other than as an argument passed when the facility
241
+ is invoked, then you must make a good faith effort to ensure that,
242
+ in the event an application does not supply such function or
243
+ table, the facility still operates, and performs whatever part of
244
+ its purpose remains meaningful.
245
+
246
+ (For example, a function in a library to compute square roots has
247
+ a purpose that is entirely well-defined independent of the
248
+ application. Therefore, Subsection 2d requires that any
249
+ application-supplied function or table used by this function must
250
+ be optional: if the application does not supply it, the square
251
+ root function must still compute square roots.)
252
+
253
+ These requirements apply to the modified work as a whole. If
254
+ identifiable sections of that work are not derived from the Library,
255
+ and can be reasonably considered independent and separate works in
256
+ themselves, then this License, and its terms, do not apply to those
257
+ sections when you distribute them as separate works. But when you
258
+ distribute the same sections as part of a whole which is a work based
259
+ on the Library, the distribution of the whole must be on the terms of
260
+ this License, whose permissions for other licensees extend to the
261
+ entire whole, and thus to each and every part regardless of who wrote
262
+ it.
263
+
264
+ Thus, it is not the intent of this section to claim rights or contest
265
+ your rights to work written entirely by you; rather, the intent is to
266
+ exercise the right to control the distribution of derivative or
267
+ collective works based on the Library.
268
+
269
+ In addition, mere aggregation of another work not based on the Library
270
+ with the Library (or with a work based on the Library) on a volume of
271
+ a storage or distribution medium does not bring the other work under
272
+ the scope of this License.
273
+
274
+ 3. You may opt to apply the terms of the ordinary GNU General Public
275
+ License instead of this License to a given copy of the Library. To do
276
+ this, you must alter all the notices that refer to this License, so
277
+ that they refer to the ordinary GNU General Public License, version 2,
278
+ instead of to this License. (If a newer version than version 2 of the
279
+ ordinary GNU General Public License has appeared, then you can specify
280
+ that version instead if you wish.) Do not make any other change in
281
+ these notices.
282
+
283
+ Once this change is made in a given copy, it is irreversible for
284
+ that copy, so the ordinary GNU General Public License applies to all
285
+ subsequent copies and derivative works made from that copy.
286
+
287
+ This option is useful when you wish to copy part of the code of
288
+ the Library into a program that is not a library.
289
+
290
+ 4. You may copy and distribute the Library (or a portion or
291
+ derivative of it, under Section 2) in object code or executable form
292
+ under the terms of Sections 1 and 2 above provided that you accompany
293
+ it with the complete corresponding machine-readable source code, which
294
+ must be distributed under the terms of Sections 1 and 2 above on a
295
+ medium customarily used for software interchange.
296
+
297
+ If distribution of object code is made by offering access to copy
298
+ from a designated place, then offering equivalent access to copy the
299
+ source code from the same place satisfies the requirement to
300
+ distribute the source code, even though third parties are not
301
+ compelled to copy the source along with the object code.
302
+
303
+ 5. A program that contains no derivative of any portion of the
304
+ Library, but is designed to work with the Library by being compiled or
305
+ linked with it, is called a "work that uses the Library". Such a
306
+ work, in isolation, is not a derivative work of the Library, and
307
+ therefore falls outside the scope of this License.
308
+
309
+ However, linking a "work that uses the Library" with the Library
310
+ creates an executable that is a derivative of the Library (because it
311
+ contains portions of the Library), rather than a "work that uses the
312
+ library". The executable is therefore covered by this License.
313
+ Section 6 states terms for distribution of such executables.
314
+
315
+ When a "work that uses the Library" uses material from a header file
316
+ that is part of the Library, the object code for the work may be a
317
+ derivative work of the Library even though the source code is not.
318
+ Whether this is true is especially significant if the work can be
319
+ linked without the Library, or if the work is itself a library. The
320
+ threshold for this to be true is not precisely defined by law.
321
+
322
+ If such an object file uses only numerical parameters, data
323
+ structure layouts and accessors, and small macros and small inline
324
+ functions (ten lines or less in length), then the use of the object
325
+ file is unrestricted, regardless of whether it is legally a derivative
326
+ work. (Executables containing this object code plus portions of the
327
+ Library will still fall under Section 6.)
328
+
329
+ Otherwise, if the work is a derivative of the Library, you may
330
+ distribute the object code for the work under the terms of Section 6.
331
+ Any executables containing that work also fall under Section 6,
332
+ whether or not they are linked directly with the Library itself.
333
+
334
+ 6. As an exception to the Sections above, you may also combine or
335
+ link a "work that uses the Library" with the Library to produce a
336
+ work containing portions of the Library, and distribute that work
337
+ under terms of your choice, provided that the terms permit
338
+ modification of the work for the customer's own use and reverse
339
+ engineering for debugging such modifications.
340
+
341
+ You must give prominent notice with each copy of the work that the
342
+ Library is used in it and that the Library and its use are covered by
343
+ this License. You must supply a copy of this License. If the work
344
+ during execution displays copyright notices, you must include the
345
+ copyright notice for the Library among them, as well as a reference
346
+ directing the user to the copy of this License. Also, you must do one
347
+ of these things:
348
+
349
+ a) Accompany the work with the complete corresponding
350
+ machine-readable source code for the Library including whatever
351
+ changes were used in the work (which must be distributed under
352
+ Sections 1 and 2 above); and, if the work is an executable linked
353
+ with the Library, with the complete machine-readable "work that
354
+ uses the Library", as object code and/or source code, so that the
355
+ user can modify the Library and then relink to produce a modified
356
+ executable containing the modified Library. (It is understood
357
+ that the user who changes the contents of definitions files in the
358
+ Library will not necessarily be able to recompile the application
359
+ to use the modified definitions.)
360
+
361
+ b) Use a suitable shared library mechanism for linking with the
362
+ Library. A suitable mechanism is one that (1) uses at run time a
363
+ copy of the library already present on the user's computer system,
364
+ rather than copying library functions into the executable, and (2)
365
+ will operate properly with a modified version of the library, if
366
+ the user installs one, as long as the modified version is
367
+ interface-compatible with the version that the work was made with.
368
+
369
+ c) Accompany the work with a written offer, valid for at
370
+ least three years, to give the same user the materials
371
+ specified in Subsection 6a, above, for a charge no more
372
+ than the cost of performing this distribution.
373
+
374
+ d) If distribution of the work is made by offering access to copy
375
+ from a designated place, offer equivalent access to copy the above
376
+ specified materials from the same place.
377
+
378
+ e) Verify that the user has already received a copy of these
379
+ materials or that you have already sent this user a copy.
380
+
381
+ For an executable, the required form of the "work that uses the
382
+ Library" must include any data and utility programs needed for
383
+ reproducing the executable from it. However, as a special exception,
384
+ the materials to be distributed need not include anything that is
385
+ normally distributed (in either source or binary form) with the major
386
+ components (compiler, kernel, and so on) of the operating system on
387
+ which the executable runs, unless that component itself accompanies
388
+ the executable.
389
+
390
+ It may happen that this requirement contradicts the license
391
+ restrictions of other proprietary libraries that do not normally
392
+ accompany the operating system. Such a contradiction means you cannot
393
+ use both them and the Library together in an executable that you
394
+ distribute.
395
+
396
+ 7. You may place library facilities that are a work based on the
397
+ Library side-by-side in a single library together with other library
398
+ facilities not covered by this License, and distribute such a combined
399
+ library, provided that the separate distribution of the work based on
400
+ the Library and of the other library facilities is otherwise
401
+ permitted, and provided that you do these two things:
402
+
403
+ a) Accompany the combined library with a copy of the same work
404
+ based on the Library, uncombined with any other library
405
+ facilities. This must be distributed under the terms of the
406
+ Sections above.
407
+
408
+ b) Give prominent notice with the combined library of the fact
409
+ that part of it is a work based on the Library, and explaining
410
+ where to find the accompanying uncombined form of the same work.
411
+
412
+ 8. You may not copy, modify, sublicense, link with, or distribute
413
+ the Library except as expressly provided under this License. Any
414
+ attempt otherwise to copy, modify, sublicense, link with, or
415
+ distribute the Library is void, and will automatically terminate your
416
+ rights under this License. However, parties who have received copies,
417
+ or rights, from you under this License will not have their licenses
418
+ terminated so long as such parties remain in full compliance.
419
+
420
+ 9. You are not required to accept this License, since you have not
421
+ signed it. However, nothing else grants you permission to modify or
422
+ distribute the Library or its derivative works. These actions are
423
+ prohibited by law if you do not accept this License. Therefore, by
424
+ modifying or distributing the Library (or any work based on the
425
+ Library), you indicate your acceptance of this License to do so, and
426
+ all its terms and conditions for copying, distributing or modifying
427
+ the Library or works based on it.
428
+
429
+ 10. Each time you redistribute the Library (or any work based on the
430
+ Library), the recipient automatically receives a license from the
431
+ original licensor to copy, distribute, link with or modify the Library
432
+ subject to these terms and conditions. You may not impose any further
433
+ restrictions on the recipients' exercise of the rights granted herein.
434
+ You are not responsible for enforcing compliance by third parties with
435
+ this License.
436
+
437
+ 11. If, as a consequence of a court judgment or allegation of patent
438
+ infringement or for any other reason (not limited to patent issues),
439
+ conditions are imposed on you (whether by court order, agreement or
440
+ otherwise) that contradict the conditions of this License, they do not
441
+ excuse you from the conditions of this License. If you cannot
442
+ distribute so as to satisfy simultaneously your obligations under this
443
+ License and any other pertinent obligations, then as a consequence you
444
+ may not distribute the Library at all. For example, if a patent
445
+ license would not permit royalty-free redistribution of the Library by
446
+ all those who receive copies directly or indirectly through you, then
447
+ the only way you could satisfy both it and this License would be to
448
+ refrain entirely from distribution of the Library.
449
+
450
+ If any portion of this section is held invalid or unenforceable under any
451
+ particular circumstance, the balance of the section is intended to apply,
452
+ and the section as a whole is intended to apply in other circumstances.
453
+
454
+ It is not the purpose of this section to induce you to infringe any
455
+ patents or other property right claims or to contest validity of any
456
+ such claims; this section has the sole purpose of protecting the
457
+ integrity of the free software distribution system which is
458
+ implemented by public license practices. Many people have made
459
+ generous contributions to the wide range of software distributed
460
+ through that system in reliance on consistent application of that
461
+ system; it is up to the author/donor to decide if he or she is willing
462
+ to distribute software through any other system and a licensee cannot
463
+ impose that choice.
464
+
465
+ This section is intended to make thoroughly clear what is believed to
466
+ be a consequence of the rest of this License.
467
+
468
+ 12. If the distribution and/or use of the Library is restricted in
469
+ certain countries either by patents or by copyrighted interfaces, the
470
+ original copyright holder who places the Library under this License may add
471
+ an explicit geographical distribution limitation excluding those countries,
472
+ so that distribution is permitted only in or among countries not thus
473
+ excluded. In such case, this License incorporates the limitation as if
474
+ written in the body of this License.
475
+
476
+ 13. The Free Software Foundation may publish revised and/or new
477
+ versions of the Lesser General Public License from time to time.
478
+ Such new versions will be similar in spirit to the present version,
479
+ but may differ in detail to address new problems or concerns.
480
+
481
+ Each version is given a distinguishing version number. If the Library
482
+ specifies a version number of this License which applies to it and
483
+ "any later version", you have the option of following the terms and
484
+ conditions either of that version or of any later version published by
485
+ the Free Software Foundation. If the Library does not specify a
486
+ license version number, you may choose any version ever published by
487
+ the Free Software Foundation.
488
+
489
+ 14. If you wish to incorporate parts of the Library into other free
490
+ programs whose distribution conditions are incompatible with these,
491
+ write to the author to ask for permission. For software which is
492
+ copyrighted by the Free Software Foundation, write to the Free
493
+ Software Foundation; we sometimes make exceptions for this. Our
494
+ decision will be guided by the two goals of preserving the free status
495
+ of all derivatives of our free software and of promoting the sharing
496
+ and reuse of software generally.
497
+
498
+ NO WARRANTY
499
+
500
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
501
+ WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
502
+ EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
503
+ OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
504
+ KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
505
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
506
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
507
+ LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
508
+ THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
509
+
510
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
511
+ WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
512
+ AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
513
+ FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
514
+ CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
515
+ LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
516
+ RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
517
+ FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
518
+ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
519
+ DAMAGES.
520
+
521
+ END OF TERMS AND CONDITIONS
522
+
523
+ How to Apply These Terms to Your New Libraries
524
+
525
+ If you develop a new library, and you want it to be of the greatest
526
+ possible use to the public, we recommend making it free software that
527
+ everyone can redistribute and change. You can do so by permitting
528
+ redistribution under these terms (or, alternatively, under the terms of the
529
+ ordinary General Public License).
530
+
531
+ To apply these terms, attach the following notices to the library. It is
532
+ safest to attach them to the start of each source file to most effectively
533
+ convey the exclusion of warranty; and each file should have at least the
534
+ "copyright" line and a pointer to where the full notice is found.
535
+
536
+ <one line to give the library's name and a brief idea of what it does.>
537
+ Copyright (C) <year> <name of author>
538
+
539
+ This library is free software; you can redistribute it and/or
540
+ modify it under the terms of the GNU Lesser General Public
541
+ License as published by the Free Software Foundation; either
542
+ version 2.1 of the License, or (at your option) any later version.
543
+
544
+ This library is distributed in the hope that it will be useful,
545
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
546
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
547
+ Lesser General Public License for more details.
548
+
549
+ You should have received a copy of the GNU Lesser General Public
550
+ License along with this library; if not, see <https://www.gnu.org/licenses/>.
551
+
552
+ Also add information on how to contact you by electronic and paper mail.
553
+
554
+ You should also get your employer (if you work as a programmer) or your
555
+ school, if any, to sign a "copyright disclaimer" for the library, if
556
+ necessary. Here is a sample; alter the names:
557
+
558
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
559
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
560
+
561
+ <signature of Moe Ghoul>, 1 April 1990
562
+ Moe Ghoul, President of Vice
563
+
564
+ That's all there is to it!