Skip to content

Commit

Permalink
bddc - initial version of bddc example
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylt committed Dec 19, 2023
1 parent 8c7774c commit ecea0ed
Show file tree
Hide file tree
Showing 11 changed files with 1,248 additions and 32 deletions.
2 changes: 2 additions & 0 deletions examples/petsc/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
*.vtu
*.a
/area
/bddc
/bps
/bpsraw
/bpssphere
/bpsswarm
/dmswarm
/multigrid
/petsc-area
/petsc-bddc
/petsc-bps
/petsc-bpsraw
/petsc-bpssphere
Expand Down
12 changes: 9 additions & 3 deletions examples/petsc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ LDLIBS = $(call pkgconf, --libs-only-l $(PETSc.pc) $(ceed.pc)) -lm
OBJDIR := build
SRCDIR := src

all: area bps bpsraw bpssphere dmswarm multigrid
all: area bddc bps bpsraw bpssphere dmswarm multigrid

utils.c := $(sort $(wildcard $(SRCDIR)/*.c))
utils.o = $(utils.c:%.c=$(OBJDIR)/%.o)
Expand All @@ -40,7 +40,13 @@ area.o = $(area.c:%.c=$(OBJDIR)/%.o)
area: $(area.o) libutils.a | $(PETSc.pc) $(ceed.pc)
$(call quiet,LINK.o) $(CEED_LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@

bps.c := bps.c
bddc.c := bddc.c
bddc.c := bddc.c $(utils.c)
bddc.o = $(bddc.c:%.c=$(OBJDIR)/%.o)
bddc: $(bddc.o) libutils.a | $(PETSc.pc) $(ceed.pc)
$(call quiet,LINK.o) $(CEED_LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@

bps.c := bps.c $(utils.c)
bps.o = $(bps.c:%.c=$(OBJDIR)/%.o)
bps: $(bps.o) libutils.a | $(PETSc.pc) $(ceed.pc)
$(call quiet,LINK.o) $(CEED_LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@
Expand Down Expand Up @@ -94,7 +100,7 @@ print: $(PETSc.pc) $(ceed.pc)
@true

clean:
$(RM) -r $(OBJDIR) *.vtu area bps bpsraw bpssphere dmswarm multigrid libutils.a
$(RM) -r $(OBJDIR) *.vtu area bddc bps bpsraw bpssphere dmswarm multigrid libutils.a

$(PETSc.pc):
$(if $(wildcard $@),,$(error \
Expand Down
Loading

0 comments on commit ecea0ed

Please sign in to comment.