CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Questions on using LAPACK in gfortran with eclipse

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 26, 2015, 00:51
Default Questions on using LAPACK in gfortran with eclipse
  #1
New Member
 
anonymous
Join Date: Mar 2011
Posts: 11
Rep Power: 15
Man Yue is on a distinguished road
I am currently using gfortran (from cygwin) with eclipse GUI. The gfortran can work for simple things but I have a hard time when I need LAPACK to invert matrices and solve system of linear equations (to solve equations for flow instability problems).

I have a source code which has a command
Code:
CALL DGESV(3,1,MAT1,3,ipiv,b,3,info)
in the code.

I have obtained the LAPACK when I downloaded cygwin, and I compiled my gfortran code with the linker:
Code:
gfortran -o  "matrix_func"  ./matrix_func.o    -L"C:\cygwin64\lib" -llapack -lblas
The source code seems to be successfully compiled, however, when I run the program, the program terminates automatically. When I remove the DGESV command and compile--> run, the program can be successfully run.

What is the reason of this, and how can I use LAPACK package in gfortran?

Thank you.
Man Yue is offline   Reply With Quote

Old   December 26, 2015, 02:22
Default
  #2
New Member
 
anonymous
Join Date: Mar 2011
Posts: 11
Rep Power: 15
Man Yue is on a distinguished road
I have also tried Run-->Debug As-->Local Fortran Application.
I have then receive error message: gdb/mi (suspended) <During startup program exited with code 0xc0000135.>

Any clues to the cause of the problem?
Man Yue is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
OpenFoam 2.X and Eclipse Kepler x86_64leon OpenFOAM Programming & Development 14 September 6, 2014 20:28
Debugging in Eclipse carowjp OpenFOAM Programming & Development 1 October 1, 2011 17:06
gfortran and LAPACK HaKu Main CFD Forum 10 December 29, 2010 14:44


All times are GMT -4. The time now is 22:55.