h2lib 13.1.201__cp311-cp311-win_amd64.whl → 13.1.301__cp311-cp311-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.
- h2lib/HAWC2Lib.dll +0 -0
- h2lib/_h2lib.py +3 -2
- h2lib/_version.py +3 -3
- h2lib/h2lib_signatures.py +7 -1
- {h2lib-13.1.201.dist-info → h2lib-13.1.301.dist-info}/METADATA +2 -2
- h2lib-13.1.301.dist-info/RECORD +10 -0
- {h2lib-13.1.201.dist-info → h2lib-13.1.301.dist-info}/WHEEL +1 -1
- h2lib-13.1.201.dist-info/RECORD +0 -10
- {h2lib-13.1.201.dist-info → h2lib-13.1.301.dist-info}/top_level.txt +0 -0
h2lib/HAWC2Lib.dll
CHANGED
Binary file
|
h2lib/_h2lib.py
CHANGED
@@ -46,6 +46,7 @@ class H2LibThread(H2LibSignatures, DLLWrapper):
|
|
46
46
|
|
47
47
|
def close(self):
|
48
48
|
if self._initialized:
|
49
|
+
self.write_output()
|
49
50
|
self.finalize()
|
50
51
|
DLLWrapper.close(self)
|
51
52
|
return "closed h2lib"
|
@@ -241,7 +242,7 @@ class H2LibThread(H2LibSignatures, DLLWrapper):
|
|
241
242
|
return H2LibSignatures.get_aerosections_position(self, rotor + 1, position)[0][1]
|
242
243
|
|
243
244
|
def set_aerosections_windspeed(self, uvw, rotor=0):
|
244
|
-
return H2LibSignatures.set_aerosections_windspeed(self, rotor + 1, uvw)
|
245
|
+
return H2LibSignatures.set_aerosections_windspeed(self, rotor + 1, np.asarray(uvw, np.float64))
|
245
246
|
|
246
247
|
def get_aerosections_forces(self, rotor=0):
|
247
248
|
shape = self.aero_sections_data_shape(rotor)
|
@@ -330,7 +331,7 @@ def MultiH2Lib(N, filename=None, cwd='.', suppress_output=False):
|
|
330
331
|
|
331
332
|
with set_LD_LIBRARY_PATH():
|
332
333
|
from multiclass_interface import mpi_interface
|
333
|
-
if mpi_interface.
|
334
|
+
if mpi_interface.mpi: # pragma: no cover
|
334
335
|
# try:
|
335
336
|
# with H2LibThread(filename):
|
336
337
|
# pass
|
h2lib/_version.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
# This file is autogenerated and should not be modified manually
|
2
|
-
__version__ = '13.1.
|
3
|
-
h2lib_version = '13.1.
|
4
|
-
hawc2_version = '13.1.
|
2
|
+
__version__ = '13.1.301'
|
3
|
+
h2lib_version = '13.1.301'
|
4
|
+
hawc2_version = '13.1.3'
|
h2lib/h2lib_signatures.py
CHANGED
@@ -6,7 +6,7 @@ from h2lib.dll_wrapper import DLLWrapper
|
|
6
6
|
class H2LibSignatures():
|
7
7
|
def add_sensor(self, sensor_line, index_start, index_stop):
|
8
8
|
'''subroutine add_sensor(sensor_line, index_start, index_stop) bind(C, name="add_sensor")
|
9
|
-
integer*8 :: index_start, index_stop
|
9
|
+
integer*8 :: index_start, index_stop, i
|
10
10
|
character(kind=c_char, len=1), intent(in) :: sensor_line(1024)
|
11
11
|
end subroutine'''
|
12
12
|
return self.get_lib_function('add_sensor')(sensor_line, index_start, index_stop)
|
@@ -316,3 +316,9 @@ subroutine'''
|
|
316
316
|
integer*8 :: N, work
|
317
317
|
end function'''
|
318
318
|
return self.get_lib_function('work')(time, restype=restype)
|
319
|
+
|
320
|
+
def write_output(self, ):
|
321
|
+
'''subroutine write_output() bind(C, name="write_output")
|
322
|
+
!DEC$ ATTRIBUTES DLLEXPORT :: write_output
|
323
|
+
end subroutine'''
|
324
|
+
return self.get_lib_function('write_output')()
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: h2lib
|
3
|
-
Version: 13.1.
|
4
|
-
Summary: Python interface to HAWC2 (13.1.
|
3
|
+
Version: 13.1.301
|
4
|
+
Summary: Python interface to HAWC2 (13.1.3)
|
5
5
|
Download-URL:
|
6
6
|
Author: Mads M. Pedersen, S.G.Horcas and N.G.Ramos
|
7
7
|
Author-email: mmpe@dtu.dk
|
@@ -0,0 +1,10 @@
|
|
1
|
+
h2lib/HAWC2Lib.dll,sha256=KK2Xj9nyFbYtZrcgItLThAwytCGSSMJ8S4XRPzUwTJY,29877248
|
2
|
+
h2lib/__init__.py,sha256=f3fO4I6IEFRM9LaV2O3w9Pioj3GPI8qRl7P5Tg5ONtE,528
|
3
|
+
h2lib/_h2lib.py,sha256=RBwI5FPkepo05pFSg50Go6i_ye9hthgmgSCm8k6DEyg,14990
|
4
|
+
h2lib/_version.py,sha256=GD961NH9JmBqdNWSAXEfiEs_-_aS4Und_i32HTKs_js,146
|
5
|
+
h2lib/dll_wrapper.py,sha256=xQicDPnhK0Zgr3ifHX1peLJ6uwYZvXxLQAt9LIu45RY,11922
|
6
|
+
h2lib/h2lib_signatures.py,sha256=KO7HJzoy6GUXnkRt_VBbwa5_RVKZlLV1cKonHTMm2TQ,14732
|
7
|
+
h2lib-13.1.301.dist-info/METADATA,sha256=xJPs0b17Sr8ooYzZbXeK6IrGr-RbPUqqLu_OfFJoQC8,727
|
8
|
+
h2lib-13.1.301.dist-info/WHEEL,sha256=SXv4eJlzP0RNHYKzGRJ91eDhAFO0Eo2_AdrKMJ52XEE,101
|
9
|
+
h2lib-13.1.301.dist-info/top_level.txt,sha256=y_a-tUqphEZQ_0nsWSMaSb21P8Lsd8hUxUdE9g2Dcbk,6
|
10
|
+
h2lib-13.1.301.dist-info/RECORD,,
|
h2lib-13.1.201.dist-info/RECORD
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
h2lib/HAWC2Lib.dll,sha256=-Kwa1IQXu_g9OAC5v6FM8Yqk1DGfcvgH7mcCSkDLr9Q,29764096
|
2
|
-
h2lib/__init__.py,sha256=f3fO4I6IEFRM9LaV2O3w9Pioj3GPI8qRl7P5Tg5ONtE,528
|
3
|
-
h2lib/_h2lib.py,sha256=PvXyuoVW6IDbjeYWYtCHRYcpLMlZh7aCiJkfLBl88gg,14938
|
4
|
-
h2lib/_version.py,sha256=vWUVMIvZArKQPRrTh8dy7d62LfIcgGTpcuqAeqqkAac,157
|
5
|
-
h2lib/dll_wrapper.py,sha256=xQicDPnhK0Zgr3ifHX1peLJ6uwYZvXxLQAt9LIu45RY,11922
|
6
|
-
h2lib/h2lib_signatures.py,sha256=uIcqvgVbm_L5C4jpHc9mBqz_6G5sLIk_6n2i-j1oA04,14500
|
7
|
-
h2lib-13.1.201.dist-info/METADATA,sha256=2LDci77-WQmAEtYC01K5xJ7aDjmv0Tf9nFJjanHSlBk,738
|
8
|
-
h2lib-13.1.201.dist-info/WHEEL,sha256=nSybvzWlmdJnHiUQSY-d7V1ycwEVUTqXiTvr2eshg44,102
|
9
|
-
h2lib-13.1.201.dist-info/top_level.txt,sha256=y_a-tUqphEZQ_0nsWSMaSb21P8Lsd8hUxUdE9g2Dcbk,6
|
10
|
-
h2lib-13.1.201.dist-info/RECORD,,
|
File without changes
|