Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ERROR 1 during run in with gfortran

Status
Not open for further replies.

haydiamet

ISP
Feb 11, 2015
1
FR
Hi,
I try to solve an algebric system A*T=b by by calling the LAPACK and BLAS libarairies. the subroutine used is SGTSV with a 899 by 899 matrix.
compilation is well done, i used this syntax:
Code:
ipsa@ipsa-HP-Compaq-8510p:~/Documents/codes eq chaleur/res eq ch variable/res_var_lib/test2$ gfortran -std=legacy -fcheck=all -Wall -g -fbacktrace -Wtabs test2.f90 -o test2.exe /usr/lib/liblapack.a /usr/lib/libblas.a
. But, the the run display an error with this syntax:
Code:
tou@tou-HP-Compaq-8510p:~/Documents/codes eq chaleur/res eq ch variable/res_var_lib/test2$  ./test2.exe
 ERROR           1

I didn't understand the origin of this error!!
i run with debugging:
Code:
tou@tou-HP-Compaq-8510p:~/Documents/codes eq chaleur/res eq ch variable/res_var_lib/test2$ gdb ./test2.exe
this operation takes much time!!! what should i do? some suggestions,
thanks
 
Can you add a
Code:
print *, 'starting'
at the start of execution, build and run the program. Does it print starting followed by Error 1 or Error 1?

If it prints starting followed by Error 1, then you can narrow down where the problem is occurring by adding a few more print statements, if you do not wish to wait for the debugger to load. If it starts printing error 1 (ERROR_INVALID_FUNCTION) it could possibly be your code calling a routine that is not supported.

Instead of an 899 by 899 matrix have you tried something simple like a 3 by 3 matrix to see whether everything is being called correctly? If it is ok on a 3x3 but not on an 899x899, it could possibly be a space problem. Are all the arrays the correct size? Not a problem if you used something like integer, parameter but it may be problem if all the sizes are hard coded.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top