-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'topic/default/meson-build' into 'branch/default'
Topic/default/meson build See merge request fluiddyn/fluidsim!346
- Loading branch information
Showing
71 changed files
with
1,069 additions
and
673 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[flake8] | ||
ignore = E501,E225,E226,E303,E201,E202,E203,W503 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import importlib_metadata | ||
|
||
__version__ = importlib_metadata.version(__package__) | ||
|
||
|
||
__all__ = ["__version__", "get_local_version", "__about__"] | ||
|
||
try: | ||
from pyfiglet import figlet_format | ||
|
||
__about__ = figlet_format("fluidsim", font="big") | ||
except ImportError: | ||
__about__ = r""" | ||
__ _ _ _ _ | ||
/ _| | (_) | | (_) | ||
| |_| |_ _ _ __| |___ _ _ __ ___ | ||
| _| | | | | |/ _` / __| | '_ ` _ \ | ||
| | | | |_| | | (_| \__ \ | | | | | | | ||
|_| |_|\__,_|_|\__,_|___/_|_| |_| |_| | ||
""" | ||
|
||
__about__ = __about__.rstrip() + f"\n\n{28 * ' '} v. {__version__}\n" | ||
|
||
|
||
def get_local_version(): | ||
"""Get a long "local" version.""" | ||
|
||
return __version__ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
python_sources = [ | ||
'__init__.py', | ||
'anisotropic.py', | ||
'base.py', | ||
'kolmogorov.py', | ||
'milestone.py', | ||
'specific.py', | ||
'test_kolmogorov.py', | ||
] | ||
|
||
py.install_sources( | ||
python_sources, | ||
subdir: 'fluidsim/base/forcing' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
python_sources = [ | ||
'__init__.py', | ||
'init_fields.py', | ||
'setofvariables.py', | ||
'state.py', | ||
'params.py', | ||
] | ||
|
||
py.install_sources( | ||
python_sources, | ||
subdir: 'fluidsim/base' | ||
) | ||
|
||
subdir('forcing') | ||
subdir('output') | ||
subdir('preprocess') | ||
subdir('solvers') | ||
subdir('sphericalharmo') | ||
subdir('time_stepping') | ||
subdir('turb_model') | ||
subdir('test') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
python_sources = [ | ||
'__init__.py', | ||
'base.py', | ||
'cross_corr3d.py', | ||
'horiz_means.py', | ||
'increments.py', | ||
'phys_fields1d.py', | ||
'phys_fields2d.py', | ||
'phys_fields3d.py', | ||
'phys_fields.py', | ||
'print_stdout.py', | ||
'prob_dens_func.py', | ||
'spatial_means.py', | ||
'spatiotemporal_spectra.py', | ||
'spect_energy_budget.py', | ||
'spectra3d.py', | ||
'spectra_multidim.py', | ||
'spectra.py', | ||
'temporal_spectra.py', | ||
'time_signals_fft.py', | ||
] | ||
|
||
py.install_sources( | ||
python_sources, | ||
subdir: 'fluidsim/base/output' | ||
) | ||
|
||
run_command( | ||
['transonic', '--meson', '--backend', backend, 'increments.py', 'spatiotemporal_spectra.py'], | ||
check: true | ||
) | ||
subdir('__' + backend + '__') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
python_sources = [ | ||
'__init__.py', | ||
'base.py', | ||
'pseudo_spect.py', | ||
'test.py', | ||
] | ||
|
||
py.install_sources( | ||
python_sources, | ||
subdir: 'fluidsim/base/preprocess' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
python_sources = [ | ||
'__init__.py', | ||
'base.py', | ||
'finite_diff.py', | ||
'info_base.py', | ||
'pseudo_spect.py', | ||
] | ||
|
||
py.install_sources( | ||
python_sources, | ||
subdir: 'fluidsim/base/solvers' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
python_sources = [ | ||
'__init__.py', | ||
'output.py', | ||
'phys_fields.py', | ||
'solver.py', | ||
'state.py', | ||
] | ||
|
||
py.install_sources( | ||
python_sources, | ||
subdir: 'fluidsim/base/sphericalharmo' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
python_sources = [ | ||
'__init__.py', | ||
'test_base_solver_ps.py', | ||
'test_base_solver.py', | ||
'test_params.py', | ||
] | ||
|
||
py.install_sources( | ||
python_sources, | ||
subdir: 'fluidsim/base/test' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
python_sources = [ | ||
'__init__.py', | ||
'base.py', | ||
'finite_diff.py', | ||
'pseudo_spect.py', | ||
'simple.py', | ||
] | ||
|
||
py.install_sources( | ||
python_sources, | ||
subdir: 'fluidsim/base/time_stepping' | ||
) | ||
|
||
run_command(['transonic', '--meson', '--backend', backend, 'pseudo_spect.py'], check: true) | ||
subdir('__' + backend + '__') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
python_sources = [ | ||
'__init__.py', | ||
'base.py', | ||
'smagorinsky.py', | ||
'stress_tensor.py', | ||
'test_turb_model.py', | ||
] | ||
|
||
py.install_sources( | ||
python_sources, | ||
subdir: 'fluidsim/base/turb_model' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
python_sources = [ | ||
'__init__.py', | ||
'spatial_means_regions_milestone.py', | ||
] | ||
|
||
py.install_sources( | ||
python_sources, | ||
subdir: 'fluidsim/extend_simul' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
python_sources = [ | ||
'__init__.py', | ||
'_version.py', | ||
'magic.py', | ||
'build_conf.txt', | ||
] | ||
|
||
run_command( | ||
'sh', | ||
'-c', | ||
'echo transonic_backend=' + backend + ' > ' + 'build_conf.txt', | ||
) | ||
|
||
|
||
py.install_sources( | ||
python_sources, | ||
subdir: 'fluidsim' | ||
) | ||
|
||
subdir('base') | ||
subdir('solvers') | ||
subdir('extend_simul') | ||
subdir('operators') | ||
subdir('util') |
Oops, something went wrong.