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 Oct 11, 2024
1 parent 9beba35 commit 4bbd807
Show file tree
Hide file tree
Showing 11 changed files with 1,235 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 4bbd807

Please sign in to comment.