- #1
adishpatel
- 22
- 0
So, when I execute my code which is at http://sysden.com/dufing.f
I get the results which are very well organized:
On the other hand, I have a very very similar code with simply some formulas modified, I get the following output (http://sysden.com/Trial.f) :
I want my output to be the way it is for the 1st file. Don't understand why the format differs?
I even commented the format bit from the Trail code and it still wouldn't give me the nicely organized results?
I get the results which are very well organized:
Code:
PATH ==========================================================================================
N INP JCASE JOB JBIF ILAM IJAC IW
2 0 3 1 0 2 1 500
** ZPAR ** EPSZ HZ ITZ METHZ
0.1000D-08 0.1000D-04 40 1
** GPAR ** EPSG HG ITG
0.1000D-04 0.5000D-03 15
** PPAR ** HMIN HP HMAX FACINC FACDEC ITP NSTEP
0.1000D-04 0.1000D-01 0.1000D-01 0.2300D+01 0.8000D+00 15 60
** EQSOL ** IODE LRW TOL
2 100 0.1000D-09
XBIFUR **** THE BIFURCATION POINT NOT BRACKETED
AT C( 1) = 0.1498235665D+01 C( 2) = 0.1500000000D+01
THE EIGENVALUE IS LAMDA = 0.1018821933D+01 0.0000000000D+00
AT C( 1) = 0.1498244342D+01 C( 2) = 0.1500000000D+01
THE EIGENVALUE IS LAMDA = 0.1018486738D+01 0.0000000000D+00
AT C( 1) = 0.1500185162D+01 C( 2) = 0.1500000000D+01
THE EIGENVALUE IS LAMDA = 0.1075632960D+01 0.0000000000D+00
PATH ==========================================================================================
On the other hand, I have a very very similar code with simply some formulas modified, I get the following output (http://sysden.com/Trial.f) :
Code:
T = 0.1230D+02 X(1) = -0.6995969146D-16 X(2) = -0.8397826270D-14
T = 0.1232D+02 X(1) = -0.1296208881D-15 X(2) = 0.4397024319D-15
T = 0.1233D+02 X(1) = -0.6896299146D-16 X(2) = 0.8521701466D-14
T = 0.1234D+02 X(1) = 0.4941227263D-16 X(2) = 0.8977390468D-14
T = 0.1235D+02 X(1) = 0.1241519258D-15 X(2) = 0.1634297191D-14
T = 0.1237D+02 X(1) = 0.9342308194D-16 X(2) = -0.6885493191D-14
T = 0.1238D+02 X(1) = -0.1172392094D-16 X(2) = -0.9706719735D-14
T = 0.1239D+02 X(1) = -0.1099822134D-15 X(2) = -0.4513322049D-14
T = 0.1240D+02 X(1) = -0.1183246126D-15 X(2) = 0.4526377004D-14
T = 0.1242D+02 X(1) = -0.2783645508D-16 X(2) = 0.1001609073D-13
T = 0.1243D+02 X(1) = 0.8740604234D-16 X(2) = 0.7396635050D-14
T = 0.1244D+02 X(1) = 0.1334446529D-15 X(2) = -0.1576740606D-14
T = 0.1245D+02 X(1) = 0.6687026721D-16 X(2) = -0.9388969273D-14
T = 0.1247D+02 X(1) = -0.5655341949D-16 X(2) = -0.9486228884D-14
T = 0.1248D+02 X(1) = -0.1362274125D-15 X(2) = -0.1479291222D-14
T = 0.1249D+02 X(1) = -0.1012353469D-15 X(2) = 0.7942125660D-14
T = 0.1250D+02 X(1) = 0.1776983651D-16 X(2) = 0.1091033964D-13
T = 0.1252D+02 X(1) = 0.1269133235D-15 X(2) = 0.4786738462D-14
T = 0.1253D+02 X(1) = 0.1303159882D-15 X(2) = -0.5510440636D-14
T = 0.1254D+02 X(1) = 0.2519319926D-16 X(2) = -0.1117597369D-13
T = 0.1255D+02 X(1) = -0.9953672094D-16 X(2) = -0.7583895225D-14
T = 0.1257D+02 X(1) = -0.1393567280D-15 X(2) = 0.2126730762D-14
I want my output to be the way it is for the 1st file. Don't understand why the format differs?
I even commented the format bit from the Trail code and it still wouldn't give me the nicely organized results?
Code:
INDEX=1
T=0.0D+00
17 FORMAT(' T =',D12.4,' X(1) =',D20.10,' X(2) =',D20.10)
DO 18, K=1,1000
TEND = K*TPER/500
CALL ODE2(FCN,JAC,IJAC,N,T,X,TEND,INDEX,IER)
IF (X(1).GT.1.0D+01) GOTO 18
WRITE(6,17) T,X(11),X(12)
WRITE(3,*) T,X(11),X(12)
18 CONTINUE
STOP