Skip to content
Snippets Groups Projects
Commit 5e05c2ec authored by Chichi Lalescu's avatar Chichi Lalescu
Browse files

add Parseval test

parent 662bff21
No related branches found
No related tags found
1 merge request!23WIP: Feature/use cmake
Pipeline #
#! /usr/bin/env python
import os
import numpy as np
import h5py
import sys
import bfps
from bfps import DNS
def main():
niterations = 10
c = DNS()
c.launch(
['NSVE',
'--nx', '32',
'--ny', '32',
'--nz', '32',
'--forcing_type', 'linear',
'--np', '4',
'--ntpp', '1',
'--niter_todo', '{0}'.format(niterations),
'--niter_out', '{0}'.format(niterations),
'--niter_stat', '1',
'--wd', './'] +
sys.argv[1:])
c.compute_statistics()
print(c.statistics['energy(t)'] - c.statistics['renergy(t)'])
return None
if __name__ == '__main__':
main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment