###############################################################################
# Internals
-include ../../Make.global_options
-
-
#deal include base path
D = ../../..
+include ../../Make.global_options
+
# get lists of files we need
cc-files = $(wildcard *.cc)
o-files = $(cc-files:.cc=.o)
lib-h-files = $(wildcard ../../include/*/*.h)
# list of libraries needed to link with
-libs = ./Obj.a ../../lib/libdeal_II.a ../../../lac/lib/liblac.a
-libs.g = ./Obj.g.a ../../lib/libdeal_II.g.a ../../../lac/lib/liblac.g.a
+libs = ./Obj.a -ldeal_II -llac -lbase
+libs.g = ./Obj.g.a -ldeal_II.g -llac.g -lbase.g
# check whether we use debug mode or not
# make rule for the target
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) $(flags) -o $@ $(libraries) $(user-libs)
+ @$(CXX) $(flags) -o $@ $^ $(user-libs)
# rule how to run the program
run: $(target)
###############################################################################
# Internals
-include ../../Make.global_options
-
-
#deal include base path
D = ../../..
+include ../../Make.global_options
+
+
# get lists of files we need
cc-files = $(wildcard *.cc)
o-files = $(cc-files:.cc=.o)
lib-h-files = $(wildcard ../../include/*/*.h)
# list of libraries needed to link with
-libs = ./Obj.a ../../lib/libdeal_II.a ../../../lac/lib/liblac.a
-libs.g = ./Obj.g.a ../../lib/libdeal_II.g.a ../../../lac/lib/liblac.g.a
-
+libs = ./Obj.a -ldeal_II -llac -lbase
+libs.g = ./Obj.g.a -ldeal_II.g -llac.g -lbase.g
# check whether we use debug mode or not
ifeq ($(debug-mode),on)
# make rule for the target
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) $(flags) -o $@ $(libraries) $(user-libs)
+ @$(CXX) $(flags) -o $@ $^ $(user-libs)
run: $(target)
$(run-action)
###############################################################################
# Internals
-include ../../Make.global_options
-
-
#deal include base path
D = ../../..
+include ../../Make.global_options
+
+
# get lists of files we need
cc-files = $(wildcard *.cc)
o-files = $(cc-files:.cc=.o)
lib-h-files = $(wildcard ../../include/*/*.h)
# list of libraries needed to link with
-libs = ./Obj.a ../../lib/libdeal_II.a ../../../lac/lib/liblac.a
-libs.g = ./Obj.g.a ../../lib/libdeal_II.g.a ../../../lac/lib/liblac.g.a
-
+libs = ./Obj.a -ldeal_II -llac -lbase
+libs.g = ./Obj.g.a -ldeal_II.g -llac.g -lbase.g
# check whether we use debug mode or not
ifeq ($(debug-mode),on)
# make rule for the target
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) $(flags) -o $@ $(libraries) $(user-libs)
+ @$(CXX) $(flags) -o $@ $^ $(user-libs)
# rule how to run the program
run: $(target)
Assert ((tria!=0) && (dof!=0), ExcNoTriaSelected());
SolverControl control(4000, 1e-16);
- PrimitiveVectorMemory<dVector> memory(right_hand_side.size());
+ PrimitiveVectorMemory<dVector> memory;
SolverCG<dSMatrix,dVector> cg(control,memory);
// solve
###############################################################################
# Internals
+#deal include base path
+D = ../../..
+
include ../../Make.global_options
-#deal include base path
-D = ../../..
# get lists of files we need
cc-files = $(wildcard *.cc)
lib-h-files = $(wildcard ../../include/*/*.h)
# list of libraries needed to link with
-libs = ./Obj.a ../../lib/libdeal_II.a ../../../lac/lib/liblac.a
-libs.g = ./Obj.g.a ../../lib/libdeal_II.g.a ../../../lac/lib/liblac.g.a
+libs = ./Obj.a -ldeal_II -llac -lbase
+libs.g = ./Obj.g.a -ldeal_II.g lac.g -lbase.g
# check whether we use debug mode or not
# make rule for the target
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) $(flags) -o $@ $(libraries) $(user-libs)
+ @$(CXX) $(flags) -o $@ $^ $(user-libs)
# rule how to run the program
run: $(target)
deal_II_dimension=2
-vpath %.a: $D/base/lib
-vpath %.a: $D/lac/lib
-vpath %.a: $D/deal.II/lib
+vpath %.a $D/base/lib
+vpath %.a $D/lac/lib
+vpath %.a $D/deal.II/lib
CXX = c++
INCLUDE = -I$D/deal.II/include -I$D/lac/include \
Assert ((tria!=0) && (dof_handler!=0), ExcNoTriaSelected());
SolverControl control(4000, 1e-16);
- PrimitiveVectorMemory<dVector> memory(right_hand_side.size());
+ PrimitiveVectorMemory<dVector> memory;
SolverCG<dSMatrix,dVector> cg(control,memory);
// solve
mass_matrix, vec, tmp);
SolverControl control(1000,1e-16);
- PrimitiveVectorMemory<dVector> memory(tmp.size());
+ PrimitiveVectorMemory<dVector> memory;
SolverCG<dSMatrix,dVector> cg(control,memory);
// solve
dVector boundary_projection (rhs.size());
SolverControl control(1000, 1e-16);
- PrimitiveVectorMemory<dVector> memory(rhs.size());
+ PrimitiveVectorMemory<dVector> memory;
SolverCG<dSMatrix,dVector> cg(control,memory);
// solve
###############################################################################
# Internals
-include ../../Make.global_options
-
-
#deal include base path
D = ../../..
+include ../../Make.global_options
+
# get lists of files we need
cc-files = $(wildcard *.cc)
o-files = $(cc-files:.cc=.o)
lib-h-files = $(wildcard ../../include/*/*.h)
# list of libraries needed to link with
-libs = ./Obj.a ../../lib/libdeal_II.a ../../../lac/lib/liblac.a
-libs.g = ./Obj.g.a ../../lib/libdeal_II.g.a ../../../lac/lib/liblac.g.a
+libs = ./Obj.a -ldeal_II -llac -lbase
+libs.g = ./Obj.g.a -ldeal_II.g -llac.g -lbase.g
# check whether we use debug mode or not
# make rule for the target
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) $(flags) -o $@ $(libraries) $(user-libs)
+ @$(CXX) $(flags) -o $@ $^ $(user-libs)
# rule how to run the program
run: $(target)
###############################################################################
# Internals
-include ../../Make.global_options
-
-
#deal include base path
D = ../../..
+include ../../Make.global_options
+
+
# get lists of files we need
cc-files = $(wildcard *.cc)
o-files = $(cc-files:.cc=.o)
lib-h-files = $(wildcard ../../include/*/*.h)
# list of libraries needed to link with
-libs = ./Obj.a ../../lib/libdeal_II.a ../../../lac/lib/liblac.a
-libs.g = ./Obj.g.a ../../lib/libdeal_II.g.a ../../../lac/lib/liblac.g.a
-
+libs = ./Obj.a -ldeal_II -llac -lbase
+libs.g = ./Obj.g.a -ldeal_II.g -llac.g -lbase.g
# check whether we use debug mode or not
ifeq ($(debug-mode),on)
# make rule for the target
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) $(flags) -o $@ $(libraries) $(user-libs)
+ @$(CXX) $(flags) -o $@ $^ $(user-libs)
run: $(target)
$(run-action)
###############################################################################
# Internals
-include ../../Make.global_options
-
-
#deal include base path
D = ../../..
+include ../../Make.global_options
+
+
# get lists of files we need
cc-files = $(wildcard *.cc)
o-files = $(cc-files:.cc=.o)
lib-h-files = $(wildcard ../../include/*/*.h)
# list of libraries needed to link with
-libs = ./Obj.a ../../lib/libdeal_II.a ../../../lac/lib/liblac.a
-libs.g = ./Obj.g.a ../../lib/libdeal_II.g.a ../../../lac/lib/liblac.g.a
-
+libs = ./Obj.a -ldeal_II -llac -lbase
+libs.g = ./Obj.g.a -ldeal_II.g -llac.g -lbase.g
# check whether we use debug mode or not
ifeq ($(debug-mode),on)
# make rule for the target
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) $(flags) -o $@ $(libraries) $(user-libs)
+ @$(CXX) $(flags) -o $@ $^ $(user-libs)
# rule how to run the program
run: $(target)
Assert ((tria!=0) && (dof!=0), ExcNoTriaSelected());
SolverControl control(4000, 1e-16);
- PrimitiveVectorMemory<dVector> memory(right_hand_side.size());
+ PrimitiveVectorMemory<dVector> memory;
SolverCG<dSMatrix,dVector> cg(control,memory);
// solve
###############################################################################
# Internals
+#deal include base path
+D = ../../..
+
include ../../Make.global_options
-#deal include base path
-D = ../../..
# get lists of files we need
cc-files = $(wildcard *.cc)
lib-h-files = $(wildcard ../../include/*/*.h)
# list of libraries needed to link with
-libs = ./Obj.a ../../lib/libdeal_II.a ../../../lac/lib/liblac.a
-libs.g = ./Obj.g.a ../../lib/libdeal_II.g.a ../../../lac/lib/liblac.g.a
+libs = ./Obj.a -ldeal_II -llac -lbase
+libs.g = ./Obj.g.a -ldeal_II.g lac.g -lbase.g
# check whether we use debug mode or not
# make rule for the target
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) $(flags) -o $@ $(libraries) $(user-libs)
+ @$(CXX) $(flags) -o $@ $^ $(user-libs)
# rule how to run the program
run: $(target)