Skip to content

Commit 73e29a0

Browse files
committed
Merge pull request #61 from FluidityProject/strip-libadjoin
Strip libadjoint
2 parents 5b798fa + bac716f commit 73e29a0

File tree

280 files changed

+12
-53172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

280 files changed

+12
-53172
lines changed

Makefile.in

+3-67
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@ ifneq (@HAVE_ZOLTAN@,yes)
9393
else
9494
EXCLUDE_TAGS := $(EXCLUDE_TAGS) -e nozoltan
9595
endif
96-
ifneq (@HAVE_ADJOINT@,yes)
97-
EXCLUDE_TAGS := $(EXCLUDE_TAGS) -e adjoint
98-
endif
9996
ifneq (@MBA2D@,yes)
10097
EXCLUDE_TAGS := $(EXCLUDE_TAGS) -e 2dadapt
10198
endif
@@ -182,51 +179,6 @@ bin/$(FLUIDITY): main.o lib/lib$(FLUIDITY).a
182179
@echo " LD $(PROGRAM)"
183180
@$(EVAL) $(LINKER) -o $(PROGRAM) main.o $(LIBS)
184181

185-
sw: bin/shallow_water
186-
be: bin/burgers_equation
187-
hh: bin/hybridized_helmholtz_solver
188-
189-
bin/shallow_water: fluidity_library bin/hybridized_helmholtz_solver main/Shallow_Water.F90
190-
@cd main; $(MAKE) Shallow_Water.o
191-
@echo "BUILD shallow_water"
192-
@echo " MKDIR bin"
193-
@mkdir -p bin
194-
@echo " LD shallow_water"
195-
@$(EVAL) $(FLLINKER) -o bin/hybridized_helmholtz_solver main/Hybridized_Helmholtz_Solver.o $(LIBS)
196-
@$(EVAL) $(FLLINKER) -o bin/shallow_water main/Shallow_Water.o $(LIBS)
197-
198-
bin/hybridized_helmholtz_solver: fluidity_library main/Hybridized_Helmholtz_Solver.F90
199-
@cd main; $(MAKE) Hybridized_Helmholtz_Solver.o
200-
@echo "BUILD hybridized_helmholtz_solver"
201-
@echo " MKDIR bin"
202-
@mkdir -p bin
203-
@echo " LD hybridized_helmholtz_solver"
204-
@$(EVAL) $(FLLINKER) -o bin/hybridized_helmholtz_solver main/Hybridized_Helmholtz_Solver.o $(LIBS)
205-
206-
bin/burgers_equation: fluidity_library main/Burgers_Equation.F90
207-
@cd main; $(MAKE) Burgers_Equation.o
208-
@echo "BUILD burgers_equation"
209-
@echo " MKDIR bin"
210-
@mkdir -p bin
211-
@echo " LD burgers_equation"
212-
@$(EVAL) $(FLLINKER) -o bin/burgers_equation main/Burgers_Equation.o $(FCFLAGS) $(LIBS)
213-
214-
ifeq (@ENABLE_PSMILE@,yes)
215-
LIBPSMILE=@FLPSMILE_PATH@/lib/libpsmile_oa4.MPI1.a @FLPSMILE_PATH@/lib/libcommon_oa4.a @FLPSMILE_PATH@/lib/libmpp_io.a -lxml2
216-
bin/test_coupler: fluidity_library main/test_coupler.F90
217-
@cd main; $(MAKE) test_coupler.o
218-
@echo "BUILD test_coupler"
219-
@echo " MKDIR bin"
220-
@mkdir -p bin
221-
@echo " LD test_coupler"
222-
@$(EVAL) $(FC) -o bin/test_coupler main/test_coupler.o $(LIBPSMILE) $(FCFLAGS) $(LIBS)
223-
else
224-
bin/test_coupler:
225-
@echo " Unable to build bin/test_coupler without psmile libraries"
226-
@echo " Please reconfigure --with-psmile=/path/to/oasis4"
227-
exit 1
228-
endif
229-
230182
bin/form_pod_basis: fluidity_library reduced_modelling/Form_Pod_Basis_Main.F90
231183
@cd reduced_modelling; $(MAKE) Form_Pod_Basis_Main.o
232184
@echo "BUILD Form_Pod_Basis"
@@ -318,8 +270,6 @@ endif
318270
@cd diagnostics; $(MAKE)
319271
@echo " MAKE reduced_modelling"
320272
@cd reduced_modelling; $(MAKE)
321-
@echo " MAKE adjoint"
322-
@cd adjoint; $(MAKE)
323273
@echo " MAKE main"
324274
@cd main; $(MAKE)
325275
@echo " MAKE options_check"
@@ -344,7 +294,6 @@ error_measures/*.o \
344294
assemble/*.o \
345295
diagnostics/*.o \
346296
reduced_modelling/*.o \
347-
adjoint/*.o \
348297
main/*.o
349298
ifeq (@HYPERLIGHT@,yes)
350299
@$(AR) $(ARFLAGS) lib/libfluidity.a hyperlight/*.o
@@ -397,9 +346,6 @@ clean-light:
397346
@cd horizontal_adaptivity/tests; $(MAKE) clean
398347
@echo " CLEAN tools"
399348
@cd tools; $(MAKE) clean
400-
@echo " CLEAN adjoint"
401-
@cd adjoint; $(MAKE) clean
402-
@cd adjoint/tests; $(MAKE) clean
403349
@echo " CLEAN bathymetry"
404350
@cd bathymetry; $(MAKE) clean
405351
@echo " CLEAN ocean_forcing"
@@ -415,8 +361,6 @@ endif
415361
@echo " CLEAN climatology"
416362
@echo " CLEAN reduced_modelling"
417363
@cd reduced_modelling; $(MAKE) clean
418-
@echo " CLEAN adjoint"
419-
@cd adjoint; $(MAKE) clean
420364
@echo " CLEAN main"
421365
@cd main; $(MAKE) clean
422366
@rm -fr bin lib
@@ -500,10 +444,10 @@ distclean: clean
500444

501445
test: serialtest
502446

503-
serialtest: fltools bin/$(FLUIDITY) bin/shallow_water
447+
serialtest: fltools bin/$(FLUIDITY)
504448
@cd tests; ../bin/testharness -l short $(EXCLUDE_TAGS) -n $(THREADS)
505449

506-
mediumtest: fltools bin/$(FLUIDITY) manual bin/burgers_equation bin/shallow_water spudtools
450+
mediumtest: fltools bin/$(FLUIDITY) manual spudtools
507451
@cd tests; ../bin/testharness -l medium $(EXCLUDE_TAGS) -n $(THREADS)
508452

509453
.PHONY: spudtools
@@ -533,8 +477,6 @@ build_unittest: fluidity_library libfemtools setuputs
533477
@cd parameterisation/tests; $(MAKE) unittest
534478
@echo " UNITTEST assemble"
535479
@cd assemble/tests; $(MAKE) unittest
536-
@echo " UNITTEST adjoint"
537-
@cd adjoint/tests; $(MAKE) unittest
538480
@echo " UNITTEST ocean_forcing"
539481
@cd ocean_forcing/tests; $(MAKE) unittest
540482

@@ -561,10 +503,6 @@ endif
561503
ifneq (@HAVE_ZOLTAN@,yes)
562504
@echo "makefile dependency generation requires zoltan"
563505
@false
564-
endif
565-
ifneq (@HAVE_ADJOINT@,yes)
566-
@echo "makefile dependency generation requires adjoint"
567-
@false
568506
endif
569507
@echo " Generating debug dependencies"
570508
@cd debug; ../bin/create_makefile $(TESTOPTS)
@@ -599,15 +537,13 @@ endif
599537
Diagnostic_Fields_New.o
600538
@echo " Generating reduced_modelling dependencies"
601539
@cd reduced_modelling; ../bin/create_makefile $(TESTOPTS)
602-
@echo " Generating adjoint dependencies"
603-
@cd adjoint; ../bin/create_makefile $(TESTOPTS)
604540
@echo " Generating main dependencies"
605541
@cd main; ../bin/create_makefile --exclude test_coupler.F90 $(TESTOPTS)
606542
@echo " Cleaning up the mess"
607543
$(MAKE) clean-light
608544
@echo " Congratulations, make makefiles succeeded!"
609545

610-
install: default fltools bin/shallow_water bin/burgers_equation
546+
install: default fltools
611547
@mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(docdir)/fluidity
612548
find bin/ -maxdepth 1 -type f -exec cp '{}' $(DESTDIR)$(bindir) \;
613549
rm -f $(DESTDIR)$(bindir)/spud-* $(DESTDIR)$(bindir)/diamond $(DESTDIR)$(bindir)/silenteval $(DESTDIR)$(bindir)/runut

0 commit comments

Comments
 (0)