1
// Copyright (C) 2008 Ola Skavhaug and Anders Logg.
2
// Licensed under the GNU LGPL Version 2.1.
4
// First added: 2008-12-18
5
// Last changed: 2008-12-18
7
// Run this demo in parallel by
9
// mpirun -n <n> ./demo
11
// where <n> is the desired number of processes.
12
// Then plot the partitions by
14
// ./plotpartitions <n>
18
using namespace dolfin;
22
// Read in mesh from XML file in parallel
23
Mesh mesh("unitsquare.xml.gz");
25
// Store partition to file
27
sprintf(filename, "unitsquare-%d.xml", dolfin::MPI::process_number());