Skip to content

Commit

Permalink
example balance corner: tweak 2d and 3d files
Browse files Browse the repository at this point in the history
  • Loading branch information
Hongli Lin committed Oct 17, 2023
1 parent 52242ca commit f6c00cd
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
10 changes: 6 additions & 4 deletions example/balance/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,27 @@
# Makefile.am in example/balance
# included non-recursively from toplevel directory

bin_PROGRAMS += example/balance/p4est_balance_corner
example_balance_p4est_balance_corner_SOURCES = \
example/balance/balance_corner.c

if P4EST_ENABLE_BUILD_2D
bin_PROGRAMS += example/balance/p4est_balance_seeds
bin_PROGRAMS += example/balance/p4est_balance_corner

example_balance_p4est_balance_seeds_SOURCES = \
example/balance/balance_seeds2.c
example_balance_p4est_balance_corner_SOURCES = \
example/balance/balance_corner2.c

LINT_CSOURCES += \
$(example_balance_p4est_balance_seeds_SOURCES)
endif

if P4EST_ENABLE_BUILD_3D
bin_PROGRAMS += example/balance/p8est_balance_seeds
bin_PROGRAMS += example/balance/p8est_balance_corner

example_balance_p8est_balance_seeds_SOURCES = \
example/balance/balance_seeds3.c
example_balance_p8est_balance_corner_SOURCES = \
example/balance/balance_corner3.c

LINT_CSOURCES += \
$(example_balance_p8est_balance_seeds_SOURCES)
Expand Down
File renamed without changes.
26 changes: 26 additions & 0 deletions example/balance/balance_corner3.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
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.h>
#include <balance_corner2.c>

0 comments on commit f6c00cd

Please sign in to comment.