Skip to content

Commit 5293b84

Browse files
committed
bddc - initial version of bddc example
1 parent 7ccb332 commit 5293b84

11 files changed

+1235
-32
lines changed

examples/petsc/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
*.vtu
33
*.a
44
/area
5+
/bddc
56
/bps
67
/bpsraw
78
/bpssphere
89
/bpsswarm
910
/dmswarm
1011
/multigrid
1112
/petsc-area
13+
/petsc-bddc
1214
/petsc-bps
1315
/petsc-bpsraw
1416
/petsc-bpssphere

examples/petsc/Makefile

+9-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ LDLIBS = $(call pkgconf, --libs-only-l $(PETSc.pc) $(ceed.pc)) -lm
2828
OBJDIR := build
2929
SRCDIR := src
3030

31-
all: area bps bpsraw bpssphere dmswarm multigrid
31+
all: area bddc bps bpsraw bpssphere dmswarm multigrid
3232

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

43-
bps.c := bps.c
43+
bddc.c := bddc.c
44+
bddc.c := bddc.c $(utils.c)
45+
bddc.o = $(bddc.c:%.c=$(OBJDIR)/%.o)
46+
bddc: $(bddc.o) libutils.a | $(PETSc.pc) $(ceed.pc)
47+
$(call quiet,LINK.o) $(CEED_LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@
48+
49+
bps.c := bps.c $(utils.c)
4450
bps.o = $(bps.c:%.c=$(OBJDIR)/%.o)
4551
bps: $(bps.o) libutils.a | $(PETSc.pc) $(ceed.pc)
4652
$(call quiet,LINK.o) $(CEED_LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@
@@ -94,7 +100,7 @@ print: $(PETSc.pc) $(ceed.pc)
94100
@true
95101

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

99105
$(PETSc.pc):
100106
$(if $(wildcard $@),,$(error \

0 commit comments

Comments
 (0)