forked from mom-ocean/MOM6
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev/gfdl' into user_module_units
- Loading branch information
Showing
40 changed files
with
1,071 additions
and
436 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
# Autoconf | ||
aclocal.m4 | ||
autom4te.cache/ | ||
config.log | ||
config.status | ||
configure~ | ||
|
||
# Output | ||
gen_grid | ||
ocean_hgrid.nc | ||
topog.nc | ||
|
||
gen_data | ||
sponge.nc | ||
temp_salt_ic.nc | ||
topog.nc |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
FC = @FC@ | ||
LD = @LD@ | ||
FCFLAGS = @FCFLAGS@ | ||
LDFLAGS = @LDFLAGS@ | ||
LIBS = @LIBS@ | ||
|
||
LAUNCHER ?= | ||
|
||
OUT = ocean_hgrid.nc topog.nc temp_salt_ic.nc sponge.nc | ||
|
||
# Since each program generates two outputs, we can only use one to track the | ||
# creation. The second rule is used to indirectly re-invoke the first rule. | ||
# | ||
# Reference: | ||
# https://www.gnu.org/software/automake/manual/html_node/Multiple-Outputs.html | ||
|
||
# Program output | ||
all: ocean_hgrid.nc temp_salt_ic.nc | ||
|
||
ocean_hgrid.nc: gen_grid | ||
$(LAUNCHER) ./gen_grid | ||
topog.nc: ocean_hgrid.nc | ||
@test -f $@ || rm -f $^ | ||
@test -f $@ || $(MAKE) $^ | ||
|
||
temp_salt_ic.nc: gen_data ocean_hgrid.nc | ||
$(LAUNCHER) ./gen_data | ||
sponge.nc: temp_salt_ic.nc | ||
@test -f $@ || rm -f $^ | ||
@test -f $@ || $(MAKE) $^ | ||
|
||
|
||
# Programs | ||
|
||
gen_grid: gen_grid.F90 | ||
$(FC) $(FCFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) | ||
|
||
gen_data: gen_data.F90 | ||
$(FC) $(FCFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) | ||
|
||
|
||
# Support | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf $(OUT) gen_grid gen_data | ||
|
||
.PHONY: distclean | ||
distclean: clean | ||
rm -f config.log | ||
rm -f config.status | ||
rm -f Makefile | ||
|
||
.PHONY: ac-clean | ||
ac-clean: distclean | ||
rm -f aclocal.m4 | ||
rm -rf autom4te.cache | ||
rm -f configure | ||
rm -f configure~ |
Oops, something went wrong.