p4est  2.8.7
p4est is a software library for parallel adaptive mesh refinement.
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
spheres/spheres3.c

This 3D example program randomly generates parallel distributed sets of 3D sphere shells and refines all quadrants of a 3D forest intersecting any of the cells. It compiles from the same code as the 2D example spheres/spheres2.c with minimal redefinitions (please see a more detailed description there). In this sense, the code is mostly dimension independent.

Usage: p8est_spheres with the following options:

*    -l | --minlevel  <INT>       Lowest level
*    -L | --maxlevel  <INT>       Highest level
*    -r | --rmax      <REAL>      Max sphere radius
*    -t | --thickness <REAL>      Relative sphere thickness
*    -f | --lfraction <REAL>      Length density of spheres
*    -s | --spherelems <REAL>     Min elements per sphere diameter
*    -N | --nbottom   <INT>       Notify bottom multiplicator
*    -A | --alltoall  <BOOLEAN> Notify alltoall implementation
*    -S | --scaling   <BOOLEAN> Configure for scaling test
*    -R | --repetitions <INT>     Repeat run multiple times
*    -V | --write-vtk <BOOLEAN> Output VTK files
*    -P | --prefix    <STRING>    Prefix for file output 
/*
This file is part of p4est.
p4est is a C library to manage a collection (a forest) of multiple
connected adaptive quadtrees or octrees in parallel.
Copyright (C) 2010 The University of Texas System
Additional copyright (C) 2011 individual authors
Written by Carsten Burstedde, Lucas C. Wilcox, and Tobin Isaac
p4est is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
p4est is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with p4est; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "p4est_to_p8est_spheres.h"
#include "spheres2.c"