Re: [Mplapack-devel] FORTRAN interface for MPACK
Status: Pre-Alpha
Brought to you by:
nakatamaho
From: Maho N. <ch...@ma...> - 2011-04-07 00:42:39
|
Hi Fletcher, Thanks for your great feedback. I'll provide when I have some time. From: "Fletcher, John P" <j.p...@as...> Subject: FORTRAN interface for MPACK Date: Wed, 06 Apr 2011 16:14:18 +0100 > Nakata Maho > > Here is an example of a FORTRAN interface for MPACK, with some extracts from the makefile needed below. The C++ file provides interfaces so that the program will link. > > # Extras for Fortran for QD > FCFLAGS=-I/usr/local/lib/qd > FCLIBS=-L/usr/local/lib -lqdmod -lqd -lrt -lm -L/usr/lib/gcc/x86_64-linux-gnu/4.4.3 -L/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../.. -L/usr/lib/x86_64-linux-gnu -lrt -lgfortran -lm > FCMAIN=-L/usr/local/lib -lqd_f_main > > %.o: %.f90 > $(FC) -c $(FCFLAGS) $< > > # QD and MPACK interfaced from FORTRAN > solve_qd_f: solve_qd_f.o mpack_qd_cpp.o > $(CXX) -o $@ solve_qd_f.o mpack_qd_cpp.o \ > $(LIBFLAGS) $(QDLIBS) $(FCLIBS) $(FCMAIN) > > I hope this is of interest. > > John Fletcher > > > Dr John P. Fletcher Tel: (44) 121 204 3389 (direct line), FAX: (44) 121 204 3678 > Chemical Engineering and Applied Chemistry (CEAC), > Associate Dean - External Relations, > School of Engineering and Applied Science (EAS), > Aston University, Aston Triangle, BIRMINGHAM B4 7ET U.K. > > |