Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
27659 Discussions

Debugging negative pressure values using traceback in Intel oneAPI on Windows

Niyas
Beginner
134 Views

Hello everyone, 

How can I use the traceback function in my 3D numerical simulations in Fortran, while using a Windows computer and Intel oneAPI, to identify the cause of negative pressure values and what is the command for it?

0 Kudos
3 Replies
mecej4
Black Belt
114 Views

At the various locations in your code where new values of pressure are calculated, you can add a couple of diagnostic statements along the lines of 

pnew = ....
if (pnew < 0.0) then
   print *, i,j,k, t, vx, vy, vz, ..., ' p new is negative'
   call tracebackqq(...)
endif
p(i,j,k, m) = pnew
...
Niyas
Beginner
112 Views

@mecej4  Thanks for your reply. 

I am just getting started with traceback and debugging.

Can you please give me an idea about the 'tracebackqq' subroutine? What should it do ? 

mecej4
Black Belt
109 Views

Tracebackqq() is provided by the compiler, and is documented in the compiler development reference guide  .

Reply