Skip to content

fortran spectral partitioning in windows. #28

@cehiles

Description

@cehiles

Hello,

First thanks for publishing this super useful toolbox! I have been testing it for the last few days, including the spectral partitioning, on both Linux and Windows. On Linux I can get wavespectra installed as per the installation instructions. On Linux I can get both the pure python and Fortran spectral partitioning to work as expected.

On Windows, I can get wavespectra installed as per the installation instructions. It appears to find my gfortran installation and compile specpart. I can get spectral partitioning working via the pure Python code. When I try to execute partitioning with the Fortran code:

from wavespectra import read_swan
ds = read_swan('./wavespectra/tests/sample_files/swanfile.spec')
ds_part = ds.spec.partition( fortran_code=True)

i get the following error:

Traceback (most recent call last):
File "test_readspec_simple.py", line 7, in <module>
ds_part = ds.spec.partition( fortran_code=True)
File "c:\users\clayton\primed\projects\xxxx\analysis\wavespectra\wavespectra\specarray.py", line 766, in partition from wavespectra.specpart import specpart
ImportError: DLL load failed while importing specpart: The specified module could not be found.

Has the Fortran spectral partitioning been tested on Windows? I am not very familiar with the integration of Fortran code with Python so this error is a bit challenging for me to chase down. Any assistance would be greatly appreciated.

Thank you,

Clayton

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions