Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Help me make this project run

hollander__yair
Beginner
473 Views

Hi all,

I need to get this project running. It's an iterative method called GMRES and It's written in Fortran 77.

I've downloaded the source code from: https://netlib.sandia.gov/toms/

The downloaded zip file is called 842.zip.

I put the files in Visual Studio and tried compiling but I'm getting errors. Please help me get it to run.

I've attached my VS project where I'm tried running it.

Thank you.

 

0 Kudos
2 Replies
Steve_Lionel
Honored Contributor III
473 Views

Remove either zDriver.f or zTestgmres.f from the project. Both of these are main programs. But when I build the way you have it, I don't get all the undefined symbol errors. Maybe you added the wrong source files? (You didn't include the sources with the ZIP.)

0 Kudos
hollander__yair
Beginner
473 Views

Thank you Steve. It turned out I really had zTestgmres.f and zDriver.f in the same project and they were both main programs.

Great spotting of this error of mine.

Edit: something strange is happening. My source files are blas.f, zPackgmres.f, zTestgmres.f

The program ends by saying that there should be output files but none of the files appear. I wonder if the program executed everything as it should...

Edit2: It works great. Thank you Steve. Until next time...

0 Kudos
Reply