<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#330033">
<font face="Trebuchet MS">Hi,<br>
<br>
Is there a way to access 'step' as used in the output log file :<br>
<br>
Step 35 Time= 1.00000E-03 Dt= 2.73903E-05 [d]
snes_conv_reason: 10,<br>
<br>
from within the subroutines '
TOilImsResidual(snes,xx,r,realization,ierr)' and
'TOilImsJacobian(snes,xx,A,B,realization,ierr)' in 'toil_ims.f90',
as well as from within
'PMTOilImsCheckUpdatePre(this,line_search,X,dX,changed,ierr)' in
'pm_toil_ims.f90'?<br>
<br>
I like to make sure that J, b and dx are taken from the same step.
I can do that if the filenames of the exports reflect step and NR
iteration. The problem is that, e.g. 'TOilImsResidual()' is called
more often than is 'TOilImsJacobian()', so using a simple counter
which gets increased every time when the subroutines are called
doesn't help unfortunately.</font><font face="Trebuchet MS"><br>
<br>
Thank you for any pointers!<br>
<br>
Robert<br>
<br>
<br>
</font>
</body>
</html>