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

too large local residue for mass conservation #7

Closed
jdonners opened this issue Jan 25, 2016 · 3 comments
Closed

too large local residue for mass conservation #7

jdonners opened this issue Jan 25, 2016 · 3 comments

Comments

@jdonners
Copy link
Collaborator

R wrote:

  • test on 384^3 using ./configure FCFLAGS="-O3 -xAVX -axCORE-AVX2”. afid-1.1 crashes on an Ivy Bridge node (i.e. AVX) with the message “too large local residue for mass conservation at:”. This code works fine on a Haswell node (i.e. AVX2).
  • Using only the “-O3” flag everything works well on both types of nodes.
  • Using the “-O3 -xAVX” flags the code fails on both types of nodes, so the problem is in the part “-xAVX”.

It also occurs with the latest compiler version (16.0.1).

some print statements show:

...
16:  dmax,resid=  6.953275390687991E-310  1.000000000000000E-002
18:  dmax,resid=  6.952658331733957E-310  1.000000000000000E-002
00:  dmax,resid= -1.797693134862316E+308  1.000000000000000E-002
00:           too large local residue for mass conservation at:

only process 0 has a somewhat excessive residue..

the same happens with ./configure FCFLAGS="-xAVX -O0 -g -traceback", so without optimization.

@stevensrjam
Copy link
Collaborator

Wether the code crashes depends also on the simulation case that is configured. For 192^3 the code works also on the Ivy Bridge nodes. This problem is probably related to the one we saw for the GPU version, see Github change https://github.com/PhysicsofFluids/AFiD_GPU/commit/49dde1f3c53ac9465a107c074407ad879fd6b541

On Jan 25, 2016, at 22:38, maxcuda <notifications@github.commailto:notifications@github.com> wrote:

R wrote:

  • test on 384^3 using ./configure FCFLAGS="-O3 -xAVX -axCORE-AVX2”. afid-1.1 crashes on an Ivy Bridge node (i.e. AVX) with the message “too large local residue for mass conservation at:”. This code works fine on a Haswell node (i.e. AVX2).
  • Using only the “-O3” flag everything works well on both types of nodes.
  • Using the “-O3 -xAVX” flags the code fails on both types of nodes, so the problem is in the part “-xAVX”.

It also occurs with the latest compiler version (16.0.1).

some print statements show:

...
16: dmax,resid= 6.953275390687991E-310 1.000000000000000E-002
18: dmax,resid= 6.952658331733957E-310 1.000000000000000E-002
00: dmax,resid= -1.797693134862316E+308 1.000000000000000E-002
00: too large local residue for mass conservation at:

only process 0 has a somewhat excessive residue..

the same happens with ./configure FCFLAGS="-xAVX -O0 -g -traceback", so without optimization.


Reply to this email directly or view it on GitHubhttps://github.com//issues/7.

@jdonners
Copy link
Collaborator Author

the problem is that the matrix in SolvePressureCorrection becomes singular. An error message should be added with a suggestion to change either NX or STR3 in bou.in. A more general solution is not yet available.

@stevensrjam
Copy link
Collaborator

Added the error messages in the code. Commit 293.

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