Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • mosaic/software/parallel-computing/openfpm/openfpm_pdata
  • argupta/openfpm_pdata
2 results
Show changes
Showing
with 0 additions and 3274 deletions
[pack]
files = main.cpp Makefile
This diff is collapsed.
SUBDIRS := $(wildcard */.)
all clean run: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@ $(MAKECMDGOALS)
.PHONY: all clean $(SUBDIRS)
include ../../../example.mk
CC=mpic++
LDIR =
OBJ_EIGEN = main_eigen.o
OBJ_PETSC = main_petsc.o
%.o: %.cpp
$(CC) -O3 -c --std=c++11 -o $@ $< $(INCLUDE_PATH)
all: stokes_2d_eigen stokes_2d_petsc
stokes_2d_eigen: $(OBJ_EIGEN)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS)
stokes_2d_petsc: $(OBJ_PETSC)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS)
run: all
mpirun -np 3 ./stokes_2d_eigen && mpirun -np 3 ./stokes_2d_petsc
.PHONY: clean all
clean:
rm -f *.o *~ core stokes_2d_eigen stokes_2d_petsc
[pack]
files = main_eigen.cpp main_petsc.cpp Makefile
include ../../../example.mk
CC=mpic++
LDIR =
OBJ_EIGEN = main_eigen.o
OBJ_PETSC = main_petsc.o
%.o: %.cpp
$(CC) -O3 -c --std=c++11 -o $@ $< $(INCLUDE_PATH)
all: stokes_3d_eigen stokes_3d_petsc
stokes_3d_eigen: $(OBJ_EIGEN)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS)
stokes_3d_petsc: $(OBJ_PETSC)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS)
run: all
mpirun -np 3 ./stokes_3d_eigen && mpirun -np 3 ./stokes_3d_petsc
.PHONY: clean all run
clean:
rm -f *.o *~ core stokes_3d_eigen stokes_3d_petsc
[pack]
files = main_eigen.cpp main_petsc.cpp Makefile
SUBDIRS := $(wildcard */.)
all clean run: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@ $(MAKECMDGOALS)
.PHONY: all clean $(SUBDIRS)
include ../../example.mk
CC=mpic++
LDIR =
OBJ = main.o
%.o: %.cpp
$(CC) -O3 -g3 -c --std=c++11 -o $@ $< $(INCLUDE_PATH)
plot: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS)
all: plot
run: all
./plot
.PHONY: clean all run
clean:
rm -f *.o *~ core plot
[pack]
files = main.cpp Makefile
This diff is collapsed.
include ../../example.mk
#### this example work only if you have quadmath activated ###
#### (only if -lquadmath work) uncomment to reactivate
CC=mpic++
LDIR =
#OBJ = main.o
#%.o: %.cpp
# $(CC) -O3 -g3 -c --std=c++11 -o $@ $< $(INCLUDE_PATH)
#conv_p: $(OBJ)
# $(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS) -lquadmath
#all: conv_p
run: #all
# source $$HOME/openfpm_vars;# ./conv_p
#.PHONY: clean all run
clean:
rm -f *.o *~ core conv_p
[pack]
files = main.cpp Makefile
This diff is collapsed.
SUBDIRS := $(wildcard */.)
all clean run: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@ $(MAKECMDGOALS)
.PHONY: all clean $(SUBDIRS)
This Package contain the examples. In order to compile the examples go in the root folder where you installed
OpenFPM (example /usr/local/OpenFPM_install) and copy from there the file example.mk
compile the examples with
make