endif
logtest.testcase: $(logtest-o-files) $(libraries)
+ @echo =====linking======= $<
@$(CXX) $(flags) -o $@ $^
endif
tensor.testcase: $(tensor-o-files) $(libraries)
+ @echo =====linking======= $<
@$(CXX) $(flags) -o $@ $^
endif
reference.testcase: $(reference-o-files) $(libraries)
+ @echo =====linking======= $<
@$(CXX) $(flags) -o $@ $^
endif
target1: $(target1-o-files) $(libraries)
+ @echo =====linking======= $<
@$(CXX) $(flags) -o $@ $^
all-cc-files = $(shell echo *.cc)
Make.depend: $(all-cc-files)
- @echo =====Dependecies=== Make.depend
+ @echo =====Dependencies== Make.depend
@$(CXX) $(flags) $^ -M > $@
@perl -pi~ -e 's/(^[^.]+)\.o:/\1.o \1.go:/;' $@
flags = $(CXXFLAGS.o) $(CXXFLAGS)
endif
-
-%.go : %.cc Makefile
- @echo =====debug========= $<
- @$(CXX) $(flags) -c $< -o $@
-%.o : %.cc Makefile
- @echo =====optimized===== $<
- @$(CXX) $(flags) -c $< -o $@
-
-
all: solver.check mgbase.check mg.check
exe: $(all:.check=.testcase) benchmark
run: $(all:.check=.output)
endif
solver.testcase: $(solver-o-files) $(libraries)
- $(CXX) $(flags) -o $@ $^
+ @echo =====linking======= $<
+ @$(CXX) $(flags) -o $@ $^
############################################################
endif
mgbase.testcase: $(mgbase-o-files) $(libraries)
- $(CXX) $(flags) -o $@ $^
+ @echo =====linking======= $<
+ @$(CXX) $(flags) -o $@ $^
endif
mg.testcase: $(mg-o-files) $(libraries)
- $(CXX) $(flags) -o $@ $^
+ @echo =====linking======= $<
+ @$(CXX) $(flags) -o $@ $^
all-cc-files = $(shell echo *.cc)
Make.depend: $(all-cc-files)
- @echo =====Dependencies=== Make.depend
+ @echo =====Dependencies== Make.depend
@$(CXX) $(flags) $^ -M > $@
@perl -pi~ -e 's/(^[^.]+)\.o:/\1.o \1.go:/;' $@
deallog << "SOR-diff:" << res*res << endl;
deallog.push("no");
- {
- check_method(cg,A,u,f,prec_no);
- check_method(bicgstab,A,u,f,prec_no);
- check_method(gmres,A,u,f,prec_no);
- check_method(qmrs,A,u,f,prec_no);
- };
+
+ check_method(cg,A,u,f,prec_no);
+ check_method(bicgstab,A,u,f,prec_no);
+ check_method(gmres,A,u,f,prec_no);
+ check_method(qmrs,A,u,f,prec_no);
+
deallog.pop();
- deallog.push("ssor");
- {
- check_method(rich,A,u,f,prec_ssor);
- check_method(cg,A,u,f,prec_ssor);
- check_method(bicgstab,A,u,f,prec_ssor);
- check_method(gmres,A,u,f,prec_ssor);
- check_method(qmrs,A,u,f,prec_ssor);
- };
+ deallog.push("ssor");
+
+ check_method(rich,A,u,f,prec_ssor);
+ check_method(cg,A,u,f,prec_ssor);
+ check_method(bicgstab,A,u,f,prec_ssor);
+ check_method(gmres,A,u,f,prec_ssor);
+ check_method(qmrs,A,u,f,prec_ssor);
+
deallog.pop();
- deallog.push("sor");
- {
- check_method(rich,A,u,f,prec_sor);
- check_method(cg,A,u,f,prec_sor);
- check_method(bicgstab,A,u,f,prec_sor);
- check_method(gmres,A,u,f,prec_sor);
- check_method(qmrs,A,u,f,prec_sor);
- };
+ deallog.push("sor");
+
+ check_method(rich,A,u,f,prec_sor);
+ check_method(cg,A,u,f,prec_sor);
+ check_method(bicgstab,A,u,f,prec_sor);
+ check_method(gmres,A,u,f,prec_sor);
+ check_method(qmrs,A,u,f,prec_sor);
+
deallog.pop();
};
};