\(K\omega\) library is distributed with the Lesser General Public License (LGPL). It is summarized as follows:
\(K\omega\) can be freely distributed, modified, copied and pasted, in a private program (in the research group, co-workers, etc.).
For the released program (open-source, free, commercial software etc.):
- When you contain the source-code of \(K\omega\) (either as is and modified) in the distributed source code of your program, please distribute your program with LGPL/GPL.
- If you do not include the source-code of \(K\omega\) (just call it), you can freely distribute your program with any licenses.
- If you distribute a binary file which is statically linked to \(K\omega\) library, please use LGPL/GPL. However, if you distribute a binary file which is dynamically linked to \(K\omega\) library (therefore \(K\omega\) itself is not contained), you can freely distribute your binary file with any licenses.
In this package, \(K\omega\) is built with Autotools (Autoconf, Automake, Libtool). If you do not want to use Autotools for your distributed program with \(K\omega\) source, you can use the following simple Makefile (please care about TAB).
F90 = gfortran
FFLAGS = -fopenmp -g -O2 #-D__MPI -D__NO_ZDOT -D__KOMEGA_THREAD
.SUFFIXES :
.SUFFIXES : .o .F90
OBJS = \
komega_cg_c.o \
komega_cg_r.o \
komega_cocg.o \
komega_bicg.o \
komega_math.o \
komega_vals.o
all:libkomega.a
libkomega.a:$(OBJS)
ar cr libkomega.a $(OBJS)
.F90.o:
$(F90) -c $< $(FFLAGS)
clean:
rm -f *.o *.a *.mod
komega_cg_c.o:komega_math.o
komega_cg_c.o:komega_vals.o
komega_cg_r.o:komega_math.o
komega_cg_r.o:komega_vals.o
komega_cocg.o:komega_math.o
komega_cocg.o:komega_vals.o
komega_bicg.o:komega_math.o
komega_bicg.o:komega_vals.o
komega_math.o:komega_vals.o
Preprocessor macros __MPI, __NO_ZDOT, and __KOMEGA_THREAD correspond to --with-mpi=yes, --disable-zdot, and --enable-thread of the options of configure, respectively.
© 2016- The University of Tokyo. All rights reserved.