Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29280 Discussions

Debugging negative pressure values using traceback in Intel oneAPI on Windows

Niyas
Beginner
929 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
Honored Contributor III
909 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
...
0 Kudos
Niyas
Beginner
907 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 ? 

0 Kudos
mecej4
Honored Contributor III
904 Views

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

Reply