This problem has been solved.Thank you very much.
Type: Posts; User: deathlypest
This problem has been solved.Thank you very much.
yes.The problem seems to be clear now.There is an old version .class file that executed unchangeably every time whatever I do to my program.So I can not debug it in a right way.But when I have...
for(int k=0; k<=kmax; k++)
{
System.out.println(k*dt+" "+ y[0][k]+" "+ y[2][k]);
System.out.printf("%7.5f \t %7.5e \t %7.5e \n", k*dt, y[0][k], y[2][k]);
}
...
Oh god.Do you mean put "System.out.println(k*dt+ y[0][k]+ y[2][k]);" before the exception calling line and "System.out.println( eerror);"
Of course,I have done it.But it does not make any...
there is no use by putting println
really appreciate for your time.
I put the original codes upon here.By cutting the program to a relative simple one having caused some changes which influenced the error.
If you have to execute the...
If you have time trying to execute the program I gave,you should get the same result just like me
I know it does not seem to make sense.But it just the problem
they are just the same! but cutted from 500+ to 400+ by eliminating some branch codes.after using println,error still does not output
That is just one of things that confused me.I am also not able to get the output of variable eerror in my program.And when I try to debug it,every time "source not found" will be showed.But the codes...
the full screen is
STEP 100
Size of tree 102
STEP 200
Size of tree 199
STEP 300
I have cutted my program a little shorter.What really matters to the exception here is the block where exists a plotsolution function,some relative variables declaration and the system.out.printf()...
still looking for help.I have uploaded the whole program from which you can get the same exception information.
I am sorry.this may be a copy problem.There is no compile error in my program.Thank you
actually all these four print methods in main method call no exception,they just can not print out
the exception message lies in these two lines where I have already showed:
y[s][k-1] +=...
Problem:
line 191 to 200
static void plotsolution(int kmax) {
System.out.printf("\n\n");
for(int k=0; k<=kmax; k++)
{
System.out.printf("%7.5f \t %7.5e \t %7.5e \n",...