This repository has been archived by the owner on Oct 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds filters to the build system in a shared src/filters directory. Additionally, this commit adds a driver which may be used to act on lists of filters. It is provided to allow cores to utilize shared functionality of a driver, without writing their own custom driver, but is not required to use filters. This commit also adds an example filter as mpas_filter_test_compute_interval. This filter can be used to test that the compute interval portion of the driver works correctly.
- Loading branch information
1 parent
f4cada7
commit 169ca57
Showing
7 changed files
with
775 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.SUFFIXES: .F .c .o | ||
|
||
FILTER_OBJS = mpas_filter_test_compute_interval.o | ||
|
||
all: filters | ||
|
||
filters: mpas_filter_driver.o $(FILTER_OBJS) | ||
ar -ru libfilters.a mpas_filter_driver.o $(FILTER_OBJS) | ||
|
||
clean: | ||
$(RM) *.o *.mod *.f90 libfilters.a | ||
@# Certain systems with intel compilers generate *.i files | ||
@# This removes them during the clean process | ||
$(RM) *.i | ||
|
||
.F.o: | ||
$(RM) $@ $*.mod | ||
ifeq "$(GEN_F90)" "true" | ||
$(CPP) $(CPPFLAGS) $(CPPINCLUDES) $< > $*.f90 | ||
$(FC) $(FFLAGS) -c $*.f90 $(FCINCLUDES) -I../framework -I../operators | ||
else | ||
$(FC) $(CPPFLAGS) $(FFLAGS) -c $*.F $(CPPINCLUDES) $(FCINCLUDES) -I../framework -I../operators | ||
endif | ||
|
||
.c.o: | ||
$(CC) $(CFLAGS) $(CPPFLAGS) $(CPPINCLUDES) -I../framework -I../operators -c $< |
Oops, something went wrong.