Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"fftw: fftw_malloc: out of memory" when running in 2D #3

Open
RSuryaNarayan opened this issue Sep 13, 2022 · 6 comments
Open

"fftw: fftw_malloc: out of memory" when running in 2D #3

RSuryaNarayan opened this issue Sep 13, 2022 · 6 comments

Comments

@RSuryaNarayan
Copy link

It works perfectly well with 3D plotfiles, but I get the error in the title with 2-D ones.

@RSuryaNarayan
Copy link
Author

Specifically it breaks off at L#701 AmrDeriveSpectrum.cpp while creating fft plans

@RSuryaNarayan
Copy link
Author

Also, during compilation for 2D I get an error saying CONSTANTS.H was not found. I guess you meant AMReX_CONSTANTS.H instead.

@zingale
Copy link
Member

zingale commented Sep 13, 2022

probably. This code hasn't been used in a long while.

@RSuryaNarayan
Copy link
Author

@zingale thanks. Is there any other feature/script with the same functionality as this one?

@zingale
Copy link
Member

zingale commented Sep 13, 2022

if you just want the power spectrum, then I've used yt for this in the past:

https://yt-project.org/docs/dev/cookbook/calculating_information.html#making-a-turbulent-kinetic-energy-power-spectrum

I'll take a look at this script when I have a chance though.

@RSuryaNarayan
Copy link
Author

@zingale Thanks. I'll try that out. I am guessing the YT script works for any AMReX plotfile (as I'd be working with plotfiles from Pele and not CASTRO)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants