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 1641 deletions
include ../../example.mk
CC=mpic++
LDIR =
OBJ = main.o
%.o: %.cpp
$(CC) -O3 -c --std=c++11 -o $@ $< $(INCLUDE_PATH)
vect: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS)
all: vect
.PHONY: clean all
clean:
rm -f *.o *~ core vect
[pack]
files = main.cpp Makefile
This diff is collapsed.
include ../../example.mk
CC=mpic++
LDIR =
OBJ = main.o
%.o: %.cpp
$(CC) -O3 -c --std=c++11 -o $@ $< $(INCLUDE_PATH)
cell: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS)
all: cell
.PHONY: clean all
clean:
rm -f *.o *~ core cell
[pack]
files = main.cpp Makefile
This diff is collapsed.
include ../../example.mk
CC=mpic++
LDIR =
OBJ = main.o
%.o: %.cpp
$(CC) -O3 -c --std=c++11 -o $@ $< $(INCLUDE_PATH)
verlet: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS)
all: verlet
.PHONY: clean all
clean:
rm -f *.o *~ core verlet
[pack]
files = main.cpp Makefile
This diff is collapsed.
SUBDIRS := $(wildcard */.)
all clean:
for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir $@; \
done
clean: $(SUBDIRS)
.PHONY: all clean $(SUBDIRS)
/*
* CartDecomposition_gen_vtk.hpp
*
* Created on: Aug 28, 2015
* Author: i-bird
*/
#include "Decomposition/CartDecomposition.hpp"
int main(int argc, char ** argv)
{
// Initialize the global VCluster
init_global_v_cluster(&argc,&argv);
// Vcluster
Vcluster & vcl = *global_v_cluster;
//! [Create CartDecomposition vtk gen]
CartDecomposition<2,float> dec(vcl);
// Physical domain
Box<2,float> box({0.0,0.0},{1.0,1.0});
// division on each direction
size_t div[2] = {20,20};
// Define ghost
Ghost<2,float> g(0.01);
// boundary conditions
size_t bc[2] = {PERIODIC,PERIODIC};
// Decompose and write the decomposed graph
dec.setParameters(div,box,bc,g);
dec.decompose();
// create a ghost border
dec.calculateGhostBoxes();
// Write the decomposition
dec.write("CartDecomposition/out_");
//! [Create CartDecomposition]
delete &vcl;
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
digraph openfpm {
ratio = fill;
node [ shape = box color = blue ];
API;
node [ shape = oval color=red ] Core pdata data Vcluster "devices (Memory)";
node [ color=black ] Numerics IO;
API -> Core [ arrowhead=crow color=blue ]
Core -> pdata
Numerics -> Core
Numerics -> pdata
Numerics -> data
pdata -> Vcluster
pdata -> data
Vcluster -> data
data -> "devices (Memory)"
IO -> data
IO -> pdata
IO -> Core
Vcluster -> "devices (Memory)"
}
This diff is collapsed.
images/static/Domain_decomposition_external.jpg

45 KiB