Skip to content

Commit

Permalink
win compat
Browse files Browse the repository at this point in the history
  • Loading branch information
akaszynski committed Sep 25, 2024
1 parent 470872c commit f1931f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/deck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ using namespace nb::literals;
#if defined(_WIN32) || defined(_WIN64)
#define NOMINMAX
#define strtok_r strtok_s
#include <cstdio>
#include <windows.h>
#define fseeko _fseeki64
#define ftello _ftelli64
typedef __int64 off_t;
#else
#include <fcntl.h>
#include <sys/mman.h>
Expand Down
4 changes: 3 additions & 1 deletion src/lsdyna_mesh_reader/deck.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@ def to_grid(self) -> "UnstructuredGrid":

return grid

def overwrite_node_section(self, filename: Union[str, Path], nodes: NDArray[float]) -> None:
def overwrite_node_section(
self, filename: Union[str, Path], nodes: NDArray[np.float64]
) -> None:
"""
Create a new deck file with the same content but overwritten node section.
Expand Down

0 comments on commit f1931f7

Please sign in to comment.