Merge lp:~fluidity-core/fluidity/excise-fldecomp into lp:fluidity

Proposed by Mark Filipiak
Status: Merged
Approved by: Mark Filipiak
Approved revision: 4050
Merge reported by: Mark Filipiak
Merged at revision: not available
Proposed branch: lp:~fluidity-core/fluidity/excise-fldecomp
Merge into: lp:fluidity
Diff against target: 3700 lines (+832/-595)
143 files modified
Makefile.in (+8/-0)
examples/backward_facing_step_2d/Makefile (+3/-5)
examples/backward_facing_step_2d/backward_facing_step_2d.xml (+1/-1)
examples/backward_facing_step_2d/envcheck.mk (+10/-10)
examples/backward_facing_step_3d/Makefile (+4/-14)
examples/backward_facing_step_3d/backward_facing_step_3d.xml (+2/-1)
examples/backward_facing_step_3d/envcheck.mk (+10/-10)
examples/driven_cavity/envcheck.mk (+10/-10)
examples/flow_past_sphere_Re1/Makefile (+1/-0)
examples/flow_past_sphere_Re1/envcheck.mk (+10/-10)
examples/flow_past_sphere_Re10/Makefile (+1/-0)
examples/flow_past_sphere_Re10/envcheck.mk (+10/-10)
examples/flow_past_sphere_Re100/Makefile (+8/-18)
examples/flow_past_sphere_Re100/envcheck.mk (+10/-10)
examples/flow_past_sphere_Re100/flow_past_sphere_Re100.xml (+2/-1)
examples/flow_past_sphere_Re1000/Makefile (+7/-22)
examples/flow_past_sphere_Re1000/envcheck.mk (+10/-10)
examples/flow_past_sphere_Re1000/flow_past_sphere_Re1000.xml (+2/-1)
examples/hokkaido-nansei-oki_tsunami/Makefile (+5/-3)
examples/hokkaido-nansei-oki_tsunami/envcheck.mk (+10/-10)
examples/hokkaido-nansei-oki_tsunami/hokkaido-nansei-oki_tsunami.xml (+2/-1)
examples/lock_exchange/envcheck.mk (+10/-10)
examples/restratification_after_oodc/Makefile (+6/-13)
examples/restratification_after_oodc/envcheck.mk (+10/-10)
examples/restratification_after_oodc/restratification_after_oodc.xml (+2/-1)
examples/rotating_channel/envcheck.mk (+10/-10)
examples/stokes_square_convection/envcheck.mk (+10/-10)
examples/tephra_settling/envcheck.mk (+10/-10)
examples/tephra_settling/tephra_settling.xml (+1/-1)
examples/tides_in_the_Mediterranean_Sea/Makefile (+5/-16)
examples/tides_in_the_Mediterranean_Sea/envcheck.mk (+10/-10)
examples/tides_in_the_Mediterranean_Sea/tides_in_the_Mediterranean_Sea.xml (+2/-1)
examples/top_hat/envcheck.mk (+10/-10)
examples/water_collapse/envcheck.mk (+10/-10)
femtools/Checkpoint.F90 (+8/-2)
fldecomp/fldmain.cpp (+23/-0)
manual/meshes.tex (+36/-14)
manual/parallel.tex (+14/-24)
manual/visualisation_and_diagnostics.tex (+12/-23)
ocean_forcing/Calendar.cpp (+6/-6)
preprocessor/Populate_State.F90 (+12/-3)
tests/5material-droplet-parallel/5material-droplet-parallel.xml (+1/-1)
tests/5material-droplet-parallel/Makefile (+2/-1)
tests/Stokes_square_convection_1e4_p1p1_parallel/Makefile (+2/-6)
tests/Stokes_square_convection_1e4_p1p1_parallel/Stokes_square_convection_1e4_p1p1_parallel.xml (+2/-1)
tests/Stokes_square_convection_1e4_p2p1_parallel/Makefile (+2/-6)
tests/Stokes_square_convection_1e4_p2p1_parallel/Stokes_square_convection_1e4_p2p1_parallel.xml (+2/-1)
tests/backward_facing_step_2d_zoltan_sam/Makefile (+2/-1)
tests/backward_facing_step_2d_zoltan_sam/backward_facing_step_2d_zoltan_sam.xml (+1/-1)
tests/biology_6_component_parallel/Makefile (+2/-1)
tests/biology_6_component_parallel/biology_6_component_parallel.xml (+1/-1)
tests/circle-2d-drag-zoltan/Makefile (+3/-1)
tests/circle-2d-drag-zoltan/circle-2d-drag-zoltan.xml (+2/-2)
tests/column-parallel/Makefile (+2/-2)
tests/column-parallel/column-parallel.xml (+1/-1)
tests/darcy_p0p1_test_cty_cv_pressBCinlet_advect_tracer_p0_steptwochannel/darcy_p0p1_test_cty_cv_pressBCinlet_advect_tracer_p0_steptwochannel.xml (+2/-2)
tests/detectors_mesh_movement_parallel/Makefile (+2/-1)
tests/detectors_mesh_movement_parallel/detectors_mesh_movement_parallel.xml (+1/-1)
tests/detectors_parallel_adaptivity/Makefile (+2/-1)
tests/detectors_parallel_adaptivity/detectors_parallel_adaptivity.xml (+1/-1)
tests/diffusion_2d_p0_adaptive_parallel/Makefile (+2/-1)
tests/diffusion_2d_p0_adaptive_parallel/diffusion_2d_p0_adaptive_parallel.xml (+1/-1)
tests/diffusion_2d_p0_parallel/Makefile (+2/-1)
tests/diffusion_2d_p0_parallel/diffusion_2d_p0_parallel.xml (+1/-1)
tests/fldecomp/Makefile (+0/-11)
tests/fldecomp/fldecomp.xml (+0/-27)
tests/fldecomp_1d/Makefile (+0/-11)
tests/fldecomp_1d/fldecomp_1d.xml (+0/-27)
tests/fldecomp_2d/Makefile (+0/-11)
tests/fldecomp_2d/fldecomp_2d.xml (+0/-24)
tests/flredecomp/Makefile (+12/-0)
tests/flredecomp/flredecomp.xml (+27/-0)
tests/flredecomp/test.flml (+69/-0)
tests/flredecomp_1d/Makefile (+12/-0)
tests/flredecomp_1d/flredecomp_1d.xml (+27/-0)
tests/flredecomp_1d/test.flml (+69/-0)
tests/flredecomp_2d/Makefile (+12/-0)
tests/flredecomp_2d/flredecomp_2d.xml (+27/-0)
tests/flredecomp_2d/test.flml (+69/-0)
tests/geopressure_convergence/Makefile (+7/-5)
tests/geopressure_convergence/geopressure_convergence.xml (+4/-4)
tests/geopressure_convergence_p1/Makefile (+8/-6)
tests/geopressure_convergence_p1/geopressure_convergence_p1.xml (+4/-4)
tests/heat_2d_dg/Makefile (+2/-1)
tests/heat_2d_dg/heat_2d_dg.xml (+1/-1)
tests/heat_2d_dg_ip/Makefile (+2/-1)
tests/heat_2d_dg_ip/heat_2d_dg_ip.xml (+1/-1)
tests/heat_2d_dg_local_assembly/Makefile (+2/-2)
tests/heat_2d_dg_local_assembly/heat_2d_dg_local_assembly.xml (+1/-1)
tests/lagrangian_detectors/Makefile (+2/-2)
tests/lagrangian_detectors/lagrangian_detectors.xml (+1/-1)
tests/lagrangian_detectors_3d/Makefile (+2/-2)
tests/lagrangian_detectors_3d/lagrangian_detectors_3d.xml (+1/-1)
tests/mixing_stats_test/Makefile (+2/-1)
tests/mixing_stats_test/mixing_stats_test.xml (+1/-1)
tests/mmat-adapt-after-checkpoint/mmat-adapt-after-checkpoint.xml (+5/-5)
tests/mmat-balancepressure-extrude-parallel/Makefile (+5/-1)
tests/mmat-balancepressure-extrude-parallel/mmat-balancepressure-extrude-parallel.xml (+1/-1)
tests/mmat-balancepressure-extrude/Makefile (+0/-1)
tests/mmat-interpolation-2d-parallel/Makefile (+2/-2)
tests/mmat-interpolation-2d-parallel/mmat-interpolation-2d-parallel.xml (+1/-1)
tests/mmat-interpolation-pseudo2d-parallel/Makefile (+2/-3)
tests/mmat-interpolation-pseudo2d-parallel/mmat-interpolation-pseudo2d-parallel.xml (+1/-1)
tests/parallel_dg/Makefile (+7/-6)
tests/parallel_dg/parallel_dg.xml (+8/-6)
tests/parallel_p0_consistent_interpolation/Makefile (+1/-1)
tests/parallel_p0_consistent_interpolation/parallel_p0_consistent_interpolation.xml (+1/-1)
tests/parallel_p0_consistent_interpolation_3d/Makefile (+1/-1)
tests/parallel_p0_consistent_interpolation_3d/parallel_p0_consistent_interpolation_3d.xml (+1/-1)
tests/parallel_p1_consistent_interpolation/Makefile (+1/-1)
tests/parallel_p1_consistent_interpolation/parallel_p1_consistent_interpolation.xml (+1/-1)
tests/parallel_p2_consistent_interpolation/Makefile (+1/-1)
tests/parallel_p2_consistent_interpolation/parallel_p2_consistent_interpolation.xml (+1/-1)
tests/petsc_readnsolve/Makefile (+1/-1)
tests/petsc_readnsolve/petsc_readnsolve.xml (+11/-5)
tests/photosynthetic_radiation/Makefile (+1/-2)
tests/photosynthetic_radiation/photosynthetic_radiation.xml (+1/-1)
tests/spherical_patch/Makefile (+2/-3)
tests/spherical_patch/spherical_patch.xml (+2/-1)
tests/square-convection-parallel-trivial/Makefile (+2/-2)
tests/square-convection-parallel-trivial/square-convection-parallel-trivial.xml (+2/-1)
tests/square-convection-parallel/Makefile (+2/-2)
tests/square-convection-parallel/square-convection-parallel.xml (+2/-1)
tests/standing_wave-parallel/Makefile (+1/-1)
tests/standing_wave-parallel/standing_wave-parallel.xml (+3/-1)
tests/test_adapt-at-first-time-step/Makefile (+2/-1)
tests/test_adapt-at-first-time-step/test_adapt-at-first-time-step.xml (+2/-1)
tests/test_energy_stats/Makefile (+1/-1)
tests/test_energy_stats/test_energy_stats.xml (+2/-1)
tests/test_metric_advection_parallel/Makefile (+1/-1)
tests/test_metric_advection_parallel/test_metric_advection_parallel.xml (+2/-1)
tests/vb_parallel/Makefile (+1/-1)
tests/vb_parallel/vb_parallel.xml (+2/-1)
tests/viscosity_2d_p0_parallel/Makefile (+1/-1)
tests/viscosity_2d_p0_parallel/viscosity_2d_p0_parallel.xml (+2/-1)
tests/viscosity_2d_p0_parallel_local_assembly/Makefile (+1/-2)
tests/viscosity_2d_p0_parallel_local_assembly/viscosity_2d_p0_parallel_local_assembly.xml (+2/-1)
tests/wetting_and_drying_balzano2_cg/Makefile (+1/-1)
tests/wetting_and_drying_balzano2_cg/mesh/makemesh_parallel.sh (+0/-6)
tests/wetting_and_drying_balzano3_cg_parallel/Makefile (+2/-1)
tests/wetting_and_drying_balzano3_cg_parallel/mesh/makemesh_parallel.sh (+0/-4)
tests/wetting_and_drying_balzano3_cg_parallel/wetting_and_drying_balzano3_cg_parallel.xml (+2/-1)
tools/Flredecomp.F90 (+1/-1)
To merge this branch: bzr merge lp:~fluidity-core/fluidity/excise-fldecomp
Reviewer Review Type Date Requested Status
Michael Lange Approve
Jon Hill Pending
Review via email: mp+121209@code.launchpad.net

Commit message

Changes the mesh decomposition tool from fldecomp to flredecomp.

Previously, fldecomp was used for the initial decomposition of a mesh
before running fluidity and flredecomp was used for re-decomposition
after a checkpoint. fldecomp is a stand-alone program; flredecomp is
part of Fluidity, using its input routines and its interface to the
Zoltan partitioner. Vertex and element re-numbering is being
developed in Fluidity to improve the NUMA and cache performance.
Using flredecomp for all mesh decomposition means that the
re-numbering needs to be implemented in Fluidity only and not in
fldecomp as well.

Most of the change is simply converting the tests from the fldecomp
work-flow:

<generate mesh>
fldecomp -n <nparts> <other options> mesh
mpiexec -n <nparts> fluidity <other options> sim.flml

to the flredecomp work-flow:

<generate mesh>
mpiexec -n <nparts> flredecomp -i 1 -o <nparts> sim sim_flredecomp
mpiexec -n <nparts> fluidity <other options> sim_flredecomp.flml

These changes have been implemented in all of the parallel tests,
longtests, and examples.

Code changes are:

1/ For spherical meshes, the spatial dimension as well as the
topological dimension is broadcast by insert_external_mesh
(Populate_State.F90). Both dimensions are needed in flredecomp.

Users will still have fldecomp in their work-flow, so fldecomp has not
yet been removed. It now prints a message recommending that the
decomposition is changed to use flredecomp, and warning that fldecomp
will be removed in a future release of Fluidity.

flredecomp cannot decompose Terreno meshes, so fldecomp has to be
retained until any Fluidity simulations using Terreno meshes are
converted to using the mesh extrusion available in Fluidity.

Description of the change

Changes the mesh decomposition tool from fldecomp to flredecomp.

Previously, fldecomp was used for the initial decomposition of a mesh
before running fluidity and flredecomp was used for re-decomposition
after a checkpoint. fldecomp is a stand-alone program; flredecomp is
part of Fluidity, using its input routines and its interface to the
Zoltan partitioner. Vertex and element re-numbering is being
developed in Fluidity to improve the NUMA and cache performance.
Using flredecomp for all mesh decomposition means that the
re-numbering needs to be implemented in Fluidity only and not in
fldecomp as well.

Most of the change is simply converting the tests from the fldecomp
work-flow:

<generate mesh>
fldecomp -n <nparts> <other options> mesh
mpiexec -n <nparts> fluidity <other options> sim.flml

to the flredecomp work-flow:

<generate mesh>
mpiexec -n <nparts> flredecomp -i 1 -o <nparts> sim sim_flredecomp
mpiexec -n <nparts> fluidity <other options> sim_flredecomp.flml

These changes have been implemented in all of the parallel tests,
longtests, and examples.

Code changes are:

1/ For spherical meshes, the spatial dimension as well as the
topological dimension is broadcast by insert_external_mesh
(Populate_State.F90). Both dimensions are needed in flredecomp.

Users will still have fldecomp in their work-flow, so fldecomp has not
yet been removed. It now prints a message recommending that the
decomposition is changed to use flredecomp, and warning that fldecomp
will be removed in a future release of Fluidity.

flredecomp cannot decompose Terreno meshes, so fldecomp has to be
retained until any Fluidity simulations using Terreno meshes are
converted to using the mesh extrusion available in Fluidity.

To post a comment you must log in.
Revision history for this message
Jon Hill (jon-hill) wrote :

Looks good. Few minor points:

 - Can we separate out the detector bug fix as a separate merge, before this one (just to keep the history cleaner)
 - Same with the changes to the climate forcing

Other than that, looks very good indeed.

Gerard is also going to look over it as a second pair of eyes.

Revision history for this message
Gerard (g-gorman) wrote :

Regarding "terreno" style meshes - the sentiment from the last dev meeting was that the ice shelf extrusion algorithm (the only application affected by this change) should be merge into Fluidity as it was a more scalable approach. The status of this needs to be checked with Adam Candy and Satoshi Kimura.

Revision history for this message
Gerard (g-gorman) wrote :

Recommend not removing the test case for fldecomp until fldecomp itself is removed.

Revision history for this message
Gerard (g-gorman) wrote :

Once the issues highlighted above are fixed; I think it will be good to go.

4043. By Mark Filipiak

Merge from trunk.

4044. By Mark Filipiak

Merge from trunk.

4045. By Mark Filipiak

Merge from trunk.

4046. By Mark Filipiak

Merge from ocean-forcing.

4047. By Mark Filipiak

Remove old get_ocean_options subroutine.

4048. By Mark Filipiak

Put back the fldecomp tests.

4049. By Mark Filipiak

Merge of trunk (the ocean-options stuff).

Revision history for this message
Mark Filipiak (mjf-q) wrote :

The detector bug has been corrected and merged with the trunk. The environment reading has been moved into a module in the ocean_options directory and also merged into the trunk.

The remaining changes were to re-merge from the latest trunk and make sure there were no calls to fldecomp left in the tests, longtests and examples. The fldecomp tests (i.e. the ones that test fldecomp itself) were put back. And there was a mesh file left out of the gyre_parallel longtest which I've added.

Buildbot succeeded.

I haven't re-tested the longtests and examples: is that necessary before the merge into trunk? The gyre_parallel test has run past dump 11.

Revision history for this message
Michael Lange (michael-lange) wrote :

Looks good. Great work, thanks Mark.

review: Approve
4050. By Mark Filipiak

Merge from trunk.

Revision history for this message
Mark Filipiak (mjf-q) wrote :

Ok, I'll merge this into the trunk now. And I'll merge the excise-fldecomp-longtests branch into longtests as well, to use flredecomp throughout.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Makefile.in'
--- Makefile.in 2012-10-24 14:28:13 +0000
+++ Makefile.in 2012-11-24 15:51:21 +0000
@@ -461,6 +461,14 @@
461 @cd tests; PYTHONPATH=../python ../tools/testharness.py --clean >/dev/null461 @cd tests; PYTHONPATH=../python ../tools/testharness.py --clean >/dev/null
462 @cd tests/data; $(MAKE) clean462 @cd tests/data; $(MAKE) clean
463463
464clean-all-tests: clean-test
465 @echo " CLEAN parallel/special/long tests"
466 @PYTHONPATH=python tools/testharness.py --parallelism=parallel --clean >/dev/null
467 @PYTHONPATH=python tools/testharness.py --length=special --clean >/dev/null
468 @PYTHONPATH=python tools/testharness.py --length=special --parallelism=parallel --clean >/dev/null
469 @PYTHONPATH=python tools/testharness.py --length=long --clean >/dev/null
470 @PYTHONPATH=python tools/testharness.py --length=long --parallelism=parallel --clean >/dev/null
471
464distclean: clean472distclean: clean
465 @echo " DISTCLEAN"473 @echo " DISTCLEAN"
466 @cd spatialindex-1.5 ; make distclean > /dev/null ; rm -rf \474 @cd spatialindex-1.5 ; make distclean > /dev/null ; rm -rf \
467475
=== modified file 'examples/backward_facing_step_2d/Makefile'
--- examples/backward_facing_step_2d/Makefile 2012-11-07 17:11:03 +0000
+++ examples/backward_facing_step_2d/Makefile 2012-11-24 15:51:21 +0000
@@ -3,7 +3,6 @@
33
4preprocess: envcheck4preprocess: envcheck
5 @if [ "x" == "x${TYPE}" ]; then echo "**********ERROR: Commandline should be make preprocess TYPE=type, where type is reference or kepsilon"; false; fi;5 @if [ "x" == "x${TYPE}" ]; then echo "**********ERROR: Commandline should be make preprocess TYPE=type, where type is reference or kepsilon"; false; fi;
6 @if [ "x" == "x${NPROCS}" ]; then echo "**********ERROR: Please define NPROCS to set the number of processors to use"; false; fi
7 echo **********Installing directory for $(TYPE) run:6 echo **********Installing directory for $(TYPE) run:
8 install -d $(TYPE); \7 install -d $(TYPE); \
9 cd $(TYPE); \8 cd $(TYPE); \
@@ -11,7 +10,6 @@
11 echo **********Generating mesh for $(TYPE) simulation.; \10 echo **********Generating mesh for $(TYPE) simulation.; \
12 gmsh -2 -o step2d-kim-med.msh ../src/step2d-kim-med.geo; \11 gmsh -2 -o step2d-kim-med.msh ../src/step2d-kim-med.geo; \
13 ${BINPREFIX}gmsh2triangle -2 step2d-kim-med.msh; \12 ${BINPREFIX}gmsh2triangle -2 step2d-kim-med.msh; \
14 if [ ${NPROCS} -ne 1 ]; then echo "**********Decomposing the mesh into $(NPROCS) parts for parallel run:"; ${BINPREFIX}fldecomp -n $(NPROCS) -f step2d-kim-med; fi; \
15 cd ..13 cd ..
1614
17run: envcheck15run: envcheck
@@ -28,10 +26,10 @@
28 cd ..26 cd ..
2927
30input: clean28input: clean
31 $(MAKE) preprocess TYPE=reference NPROCS=829 $(MAKE) preprocess TYPE=reference
32 $(MAKE) preprocess TYPE=kepsilon NPROCS=830 $(MAKE) preprocess TYPE=kepsilon
3331
34clean:32clean:
35 @echo **********Cleaning the output from previous fluidity runs33 @echo **********Cleaning the output from previous fluidity runs
36 rm -rf kepsilon reference *.pdf34 rm -rf kepsilon reference *.pdf *flredecomp*
3735
3836
=== modified file 'examples/backward_facing_step_2d/backward_facing_step_2d.xml'
--- examples/backward_facing_step_2d/backward_facing_step_2d.xml 2012-11-05 23:48:23 +0000
+++ examples/backward_facing_step_2d/backward_facing_step_2d.xml 2012-11-24 15:51:21 +0000
@@ -6,7 +6,7 @@
6 <tags>flml</tags>6 <tags>flml</tags>
7 <!-- uses flml -->7 <!-- uses flml -->
8 <problem_definition length="long" nprocs="8">8 <problem_definition length="long" nprocs="8">
9 <command_line>cd reference &amp;&amp; mpiexec fluidity -v2 -l backward_facing_step_2d_kim_reference.flml &amp;&amp; cd .. &amp;&amp; cd kepsilon &amp;&amp; mpiexec fluidity -v2 -l backward_facing_step_2d_kim_kepsilon.flml &amp;&amp; cd ..</command_line>9 <command_line>cd reference &amp;&amp; mpiexec flredecomp -i 1 -o 8 -v -l backward_facing_step_2d_kim_reference backward_facing_step_2d_kim_reference_flredecomp &amp;&amp; mpiexec fluidity -v2 -l backward_facing_step_2d_kim_reference_flredecomp.flml &amp;&amp; cd .. &amp;&amp; cd kepsilon &amp;&amp; mpiexec flredecomp -i 1 -o 8 -v -l backward_facing_step_2d_kim_kepsilon backward_facing_step_2d_kim_kepsilon_flredecomp &amp;&amp; mpiexec fluidity -v2 -l backward_facing_step_2d_kim_kepsilon_flredecomp.flml &amp;&amp; cd ..</command_line>
10 </problem_definition>10 </problem_definition>
11 <variables>11 <variables>
12 <variable name="reference_finishtime" language="python">from fluidity_tools import stat_parser as stat12 <variable name="reference_finishtime" language="python">from fluidity_tools import stat_parser as stat
1313
=== modified file 'examples/backward_facing_step_2d/envcheck.mk'
--- examples/backward_facing_step_2d/envcheck.mk 2012-11-02 12:02:33 +0000
+++ examples/backward_facing_step_2d/envcheck.mk 2012-11-24 15:51:21 +0000
@@ -4,29 +4,29 @@
4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}
55
6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)
7TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?)7TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?)
88
9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)
10TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?)10TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?)
1111
12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)
1313
14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP}14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP}
15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL}15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL}
1616
17envcheck:17envcheck:
18# Do we have both fluidity and fldecomp on the existing path?18# Do we have both fluidity and flredecomp on the existing path?
19ifneq (${TESTBIN},00)19ifneq (${TESTBIN},00)
20 # Do we only have fluidity (and not fldecomp) on the existing path?20 # Do we only have fluidity (and not flredecomp) on the existing path?
21 ifeq (${TESTBIN},01)21 ifeq (${TESTBIN},01)
22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'fldecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'flredecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."
23 @exit 123 @exit 1
24 else24 else
25 # fluidity isn't on the path; do we have both fluidity and fldecomp locally?25 # fluidity isn't on the path; do we have both fluidity and flredecomp locally?
26 ifneq (${TESTBINLOCAL},00)26 ifneq (${TESTBINLOCAL},00)
27 # Do we only have fluidity (and not fldecomp) locally?27 # Do we only have fluidity (and not flredecomp) locally?
28 ifeq (${TESTBINLOCAL},01)28 ifeq (${TESTBINLOCAL},01)
29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'fldecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'flredecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."
30 @exit 130 @exit 1
31 else31 else
32 # No fluidity binary on the system path or locally32 # No fluidity binary on the system path or locally
3333
=== modified file 'examples/backward_facing_step_3d/Makefile'
--- examples/backward_facing_step_3d/Makefile 2012-11-05 23:15:55 +0000
+++ examples/backward_facing_step_3d/Makefile 2012-11-24 15:51:21 +0000
@@ -1,22 +1,10 @@
1include envcheck.mk1include envcheck.mk
22
3preprocess: envcheck3preprocess: envcheck
4 @if [ "x" == "x${NPROCS}" ]; then echo "**********ERROR: Please define NPROCS to set the number of processors to use"; false; fi
5 @echo **********Generating the mesh using gmsh in 3d:4 @echo **********Generating the mesh using gmsh in 3d:
6 gmsh -3 -optimize -o step3d.msh src/step3d.geo5 gmsh -3 -optimize -o step3d.msh src/step3d.geo
7 @echo **********Converting the gmsh mesh to triangle format:6 @echo **********Converting the gmsh mesh to triangle format:
8 ${BINPREFIX}gmsh2triangle step3d.msh7 ${BINPREFIX}gmsh2triangle step3d.msh
9ifneq ($(NPROCS),8)
10 @echo **********WARNING: This simulation is best run on 8 processors
11endif
12ifeq ($(NPROCS),1)
13 @echo **********Serial run: not decomposing mesh
14 @echo **********WARNING: This is a large simulation and will take a very long time in serial. Find a handy supercomputer.
15else
16# exit if no fltools and print warning
17 @echo **********Decomposing the mesh into $(NPROCS) parts for parallel run:
18 ${BINPREFIX}fldecomp -n $(NPROCS) -f step3d
19endif
208
21run: envcheck9run: envcheck
22 @if [ "x" == "x${NPROCS}" ]; then echo "**********ERROR: Please define NPROCS to set the number of processors to use"; false; fi10 @if [ "x" == "x${NPROCS}" ]; then echo "**********ERROR: Please define NPROCS to set the number of processors to use"; false; fi
@@ -28,8 +16,10 @@
28 @echo **********Calling fluidity in serial with verbose log output enabled:16 @echo **********Calling fluidity in serial with verbose log output enabled:
29 ${BINPREFIX}fluidity -v2 -l backward_facing_step_3d.flml17 ${BINPREFIX}fluidity -v2 -l backward_facing_step_3d.flml
30else18else
19 @echo **********Calling flredecomp in parallel with verbose log output enabled:
20 mpiexec -n $(NPROCS) ${BINPREFIX}flredecomp -i 1 -o $(NPROCS) -v -l backward_facing_step_3d backward_facing_step_3d_flredecomp
31 @echo **********Calling fluidity in parallel with verbose log output enabled:21 @echo **********Calling fluidity in parallel with verbose log output enabled:
32 mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l backward_facing_step_3d.flml22 mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l backward_facing_step_3d_flredecomp.flml
33endif23endif
3424
35postprocess: envcheck25postprocess: envcheck
@@ -43,4 +33,4 @@
43clean:33clean:
44 @echo **********Cleaning the output from previous fluidity runs:34 @echo **********Cleaning the output from previous fluidity runs:
45 rm -rf *.stat *.msh *.node *.face *.ele backward_facing_step_3d_*.pvtu backward_facing_step_3d_* *.log-* *.err-* matrixdump* *.halo35 rm -rf *.stat *.msh *.node *.face *.ele backward_facing_step_3d_*.pvtu backward_facing_step_3d_* *.log-* *.err-* matrixdump* *.halo
4636 rm -rf *flredecomp*
4737
=== modified file 'examples/backward_facing_step_3d/backward_facing_step_3d.xml'
--- examples/backward_facing_step_3d/backward_facing_step_3d.xml 2012-11-05 14:01:40 +0000
+++ examples/backward_facing_step_3d/backward_facing_step_3d.xml 2012-11-24 15:51:21 +0000
@@ -6,7 +6,8 @@
6 <tags>flml 3dadapt</tags>6 <tags>flml 3dadapt</tags>
7 <!-- uses flml - uses 3d adaptivity -->7 <!-- uses flml - uses 3d adaptivity -->
8 <problem_definition length="long" nprocs="8">8 <problem_definition length="long" nprocs="8">
9 <command_line>mpiexec fluidity -v2 -l backward_facing_step_3d.flml</command_line>9 <command_line>mpiexec flredecomp -i 1 -o 8 -v -l backward_facing_step_3d backward_facing_step_3d_flredecomp &amp;&amp;
10mpiexec fluidity -v2 -l backward_facing_step_3d_flredecomp.flml</command_line>
10 </problem_definition>11 </problem_definition>
11 <variables>12 <variables>
12 <variable name="finishtime" language="python">from fluidity_tools import stat_parser as stat13 <variable name="finishtime" language="python">from fluidity_tools import stat_parser as stat
1314
=== modified file 'examples/backward_facing_step_3d/envcheck.mk'
--- examples/backward_facing_step_3d/envcheck.mk 2012-11-02 12:02:33 +0000
+++ examples/backward_facing_step_3d/envcheck.mk 2012-11-24 15:51:21 +0000
@@ -4,29 +4,29 @@
4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}
55
6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)
7TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?)7TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?)
88
9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)
10TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?)10TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?)
1111
12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)
1313
14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP}14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP}
15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL}15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL}
1616
17envcheck:17envcheck:
18# Do we have both fluidity and fldecomp on the existing path?18# Do we have both fluidity and flredecomp on the existing path?
19ifneq (${TESTBIN},00)19ifneq (${TESTBIN},00)
20 # Do we only have fluidity (and not fldecomp) on the existing path?20 # Do we only have fluidity (and not flredecomp) on the existing path?
21 ifeq (${TESTBIN},01)21 ifeq (${TESTBIN},01)
22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'fldecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'flredecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."
23 @exit 123 @exit 1
24 else24 else
25 # fluidity isn't on the path; do we have both fluidity and fldecomp locally?25 # fluidity isn't on the path; do we have both fluidity and flredecomp locally?
26 ifneq (${TESTBINLOCAL},00)26 ifneq (${TESTBINLOCAL},00)
27 # Do we only have fluidity (and not fldecomp) locally?27 # Do we only have fluidity (and not flredecomp) locally?
28 ifeq (${TESTBINLOCAL},01)28 ifeq (${TESTBINLOCAL},01)
29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'fldecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'flredecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."
30 @exit 130 @exit 1
31 else31 else
32 # No fluidity binary on the system path or locally32 # No fluidity binary on the system path or locally
3333
=== modified file 'examples/driven_cavity/envcheck.mk'
--- examples/driven_cavity/envcheck.mk 2012-11-02 12:02:33 +0000
+++ examples/driven_cavity/envcheck.mk 2012-11-24 15:51:21 +0000
@@ -4,29 +4,29 @@
4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}
55
6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)
7TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?)7TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?)
88
9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)
10TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?)10TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?)
1111
12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)
1313
14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP}14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP}
15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL}15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL}
1616
17envcheck:17envcheck:
18# Do we have both fluidity and fldecomp on the existing path?18# Do we have both fluidity and flredecomp on the existing path?
19ifneq (${TESTBIN},00)19ifneq (${TESTBIN},00)
20 # Do we only have fluidity (and not fldecomp) on the existing path?20 # Do we only have fluidity (and not flredecomp) on the existing path?
21 ifeq (${TESTBIN},01)21 ifeq (${TESTBIN},01)
22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'fldecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'flredecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."
23 @exit 123 @exit 1
24 else24 else
25 # fluidity isn't on the path; do we have both fluidity and fldecomp locally?25 # fluidity isn't on the path; do we have both fluidity and flredecomp locally?
26 ifneq (${TESTBINLOCAL},00)26 ifneq (${TESTBINLOCAL},00)
27 # Do we only have fluidity (and not fldecomp) locally?27 # Do we only have fluidity (and not flredecomp) locally?
28 ifeq (${TESTBINLOCAL},01)28 ifeq (${TESTBINLOCAL},01)
29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'fldecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'flredecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."
30 @exit 130 @exit 1
31 else31 else
32 # No fluidity binary on the system path or locally32 # No fluidity binary on the system path or locally
3333
=== modified file 'examples/flow_past_sphere_Re1/Makefile'
--- examples/flow_past_sphere_Re1/Makefile 2012-11-01 16:43:40 +0000
+++ examples/flow_past_sphere_Re1/Makefile 2012-11-24 15:51:21 +0000
@@ -17,4 +17,5 @@
17clean:17clean:
18 @echo **********Cleaning the output from previous fluidity runs:18 @echo **********Cleaning the output from previous fluidity runs:
19 rm -f *.ele *.edge *.face *.node *.halo *.poly *.vtu *.stat *.log-0 *.err-0 matrixdump* 19 rm -f *.ele *.edge *.face *.node *.halo *.poly *.vtu *.stat *.log-0 *.err-0 matrixdump*
20 rm -rf first_timestep_adapted_mesh*
20 rm -f Sphere_drag.pdf21 rm -f Sphere_drag.pdf
2122
=== modified file 'examples/flow_past_sphere_Re1/envcheck.mk'
--- examples/flow_past_sphere_Re1/envcheck.mk 2012-11-02 12:02:33 +0000
+++ examples/flow_past_sphere_Re1/envcheck.mk 2012-11-24 15:51:21 +0000
@@ -4,29 +4,29 @@
4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}
55
6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)
7TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?)7TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?)
88
9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)
10TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?)10TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?)
1111
12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)
1313
14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP}14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP}
15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL}15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL}
1616
17envcheck:17envcheck:
18# Do we have both fluidity and fldecomp on the existing path?18# Do we have both fluidity and flredecomp on the existing path?
19ifneq (${TESTBIN},00)19ifneq (${TESTBIN},00)
20 # Do we only have fluidity (and not fldecomp) on the existing path?20 # Do we only have fluidity (and not flredecomp) on the existing path?
21 ifeq (${TESTBIN},01)21 ifeq (${TESTBIN},01)
22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'fldecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'flredecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."
23 @exit 123 @exit 1
24 else24 else
25 # fluidity isn't on the path; do we have both fluidity and fldecomp locally?25 # fluidity isn't on the path; do we have both fluidity and flredecomp locally?
26 ifneq (${TESTBINLOCAL},00)26 ifneq (${TESTBINLOCAL},00)
27 # Do we only have fluidity (and not fldecomp) locally?27 # Do we only have fluidity (and not flredecomp) locally?
28 ifeq (${TESTBINLOCAL},01)28 ifeq (${TESTBINLOCAL},01)
29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'fldecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'flredecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."
30 @exit 130 @exit 1
31 else31 else
32 # No fluidity binary on the system path or locally32 # No fluidity binary on the system path or locally
3333
=== modified file 'examples/flow_past_sphere_Re10/Makefile'
--- examples/flow_past_sphere_Re10/Makefile 2012-11-01 16:43:40 +0000
+++ examples/flow_past_sphere_Re10/Makefile 2012-11-24 15:51:21 +0000
@@ -17,4 +17,5 @@
17clean:17clean:
18 @echo **********Cleaning the output from previous fluidity runs:18 @echo **********Cleaning the output from previous fluidity runs:
19 rm -f *.ele *.edge *.face *.node *.halo *.poly *.vtu *.stat *.log-0 *.err-0 matrixdump* 19 rm -f *.ele *.edge *.face *.node *.halo *.poly *.vtu *.stat *.log-0 *.err-0 matrixdump*
20 rm -rf first_timestep_adapted_mesh*
20 rm -f Sphere_drag.pdf21 rm -f Sphere_drag.pdf
2122
=== modified file 'examples/flow_past_sphere_Re10/envcheck.mk'
--- examples/flow_past_sphere_Re10/envcheck.mk 2012-11-02 12:02:33 +0000
+++ examples/flow_past_sphere_Re10/envcheck.mk 2012-11-24 15:51:21 +0000
@@ -4,29 +4,29 @@
4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}
55
6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)
7TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?)7TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?)
88
9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)
10TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?)10TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?)
1111
12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)
1313
14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP}14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP}
15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL}15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL}
1616
17envcheck:17envcheck:
18# Do we have both fluidity and fldecomp on the existing path?18# Do we have both fluidity and flredecomp on the existing path?
19ifneq (${TESTBIN},00)19ifneq (${TESTBIN},00)
20 # Do we only have fluidity (and not fldecomp) on the existing path?20 # Do we only have fluidity (and not flredecomp) on the existing path?
21 ifeq (${TESTBIN},01)21 ifeq (${TESTBIN},01)
22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'fldecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'flredecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."
23 @exit 123 @exit 1
24 else24 else
25 # fluidity isn't on the path; do we have both fluidity and fldecomp locally?25 # fluidity isn't on the path; do we have both fluidity and flredecomp locally?
26 ifneq (${TESTBINLOCAL},00)26 ifneq (${TESTBINLOCAL},00)
27 # Do we only have fluidity (and not fldecomp) locally?27 # Do we only have fluidity (and not flredecomp) locally?
28 ifeq (${TESTBINLOCAL},01)28 ifeq (${TESTBINLOCAL},01)
29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'fldecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'flredecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."
30 @exit 130 @exit 1
31 else31 else
32 # No fluidity binary on the system path or locally32 # No fluidity binary on the system path or locally
3333
=== modified file 'examples/flow_past_sphere_Re100/Makefile'
--- examples/flow_past_sphere_Re100/Makefile 2012-11-01 16:43:40 +0000
+++ examples/flow_past_sphere_Re100/Makefile 2012-11-24 15:51:21 +0000
@@ -4,22 +4,8 @@
4NPROCS=14NPROCS=1
55
6preprocess: envcheck6preprocess: envcheck
7ifeq ("x","x${NPROCS}")
8 @echo "**********ERROR: Please define NPROCS to set the number of processors to use"
9 @exit 1
10endif
11 @echo **********Converting the gmsh mesh to triangle format:7 @echo **********Converting the gmsh mesh to triangle format:
12 ${BINPREFIX}gmsh2triangle unit_sphere.msh8 ${BINPREFIX}gmsh2triangle unit_sphere.msh
13ifneq ($(NPROCS),8)
14 @echo **********WARNING: This simulation is best run on 8 processors
15endif
16ifeq ($(NPROCS),1)
17 @echo **********Serial run: not decomposing mesh
18 @echo **********WARNING: This is a large simulation and will take a very long time in serial. Find a handy supercomputer.
19else
20 @echo **********Decomposing the mesh into $(NPROCS) parts for parallel run:
21 ${BINPREFIX}fldecomp -n $(NPROCS) -f unit_sphere
22endif
239
24run: envcheck10run: envcheck
25ifneq ($(NPROCS),8)11ifneq ($(NPROCS),8)
@@ -30,8 +16,10 @@
30 @echo **********Calling fluidity in serial with verbose log output enabled:16 @echo **********Calling fluidity in serial with verbose log output enabled:
31 ${BINPREFIX}fluidity -v2 -l flow_past_sphere_Re100.flml17 ${BINPREFIX}fluidity -v2 -l flow_past_sphere_Re100.flml
32else18else
19 @echo **********Calling flredecomp in parallel with verbose log output enabled:
20 mpiexec -n $(NPROCS) ${BINPREFIX}flredecomp -i 1 -o $(NPROCS) -v -l flow_past_sphere_Re100 flow_past_sphere_Re100_flredecomp
33 @echo **********Calling fluidity in parallel with verbose log output enabled:21 @echo **********Calling fluidity in parallel with verbose log output enabled:
34 mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l flow_past_sphere_Re100.flml22 mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l flow_past_sphere_Re100_flredecomp.flml
35endif23endif
3624
37postprocess:25postprocess:
@@ -39,10 +27,12 @@
39 python ./plot_data.py27 python ./plot_data.py
4028
41input: clean29input: clean
42 $(MAKE) preprocess NPROCS=830 $(MAKE) preprocess
4331
44clean:32clean:
45 @echo **********Cleaning the output from previous fluidity runs:33 @echo **********Cleaning the output from previous fluidity runs:
46 rm -f *.ele *.edge *.face *.node *.halo *.poly *vtu *.stat *.log-? *.err-? matrixdump* 34 rm -f *.ele *.edge *.face *.node *.halo *.poly *vtu *.stat *.log-* *.err-* matrixdump*
47 rm -rf flow_past_sphere_Re100_? flow_past_sphere_Re100_?? 35 rm -rf flow_past_sphere_Re100_? flow_past_sphere_Re100_??
36 rm -rf first_timestep_adapted_mesh*
48 rm -f Sphere_drag.pdf37 rm -f Sphere_drag.pdf
38 rm -rf *flredecomp*
4939
=== modified file 'examples/flow_past_sphere_Re100/envcheck.mk'
--- examples/flow_past_sphere_Re100/envcheck.mk 2012-11-02 12:02:33 +0000
+++ examples/flow_past_sphere_Re100/envcheck.mk 2012-11-24 15:51:21 +0000
@@ -4,29 +4,29 @@
4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}
55
6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)
7TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?)7TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?)
88
9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)
10TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?)10TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?)
1111
12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)
1313
14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP}14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP}
15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL}15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL}
1616
17envcheck:17envcheck:
18# Do we have both fluidity and fldecomp on the existing path?18# Do we have both fluidity and flredecomp on the existing path?
19ifneq (${TESTBIN},00)19ifneq (${TESTBIN},00)
20 # Do we only have fluidity (and not fldecomp) on the existing path?20 # Do we only have fluidity (and not flredecomp) on the existing path?
21 ifeq (${TESTBIN},01)21 ifeq (${TESTBIN},01)
22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'fldecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'flredecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."
23 @exit 123 @exit 1
24 else24 else
25 # fluidity isn't on the path; do we have both fluidity and fldecomp locally?25 # fluidity isn't on the path; do we have both fluidity and flredecomp locally?
26 ifneq (${TESTBINLOCAL},00)26 ifneq (${TESTBINLOCAL},00)
27 # Do we only have fluidity (and not fldecomp) locally?27 # Do we only have fluidity (and not flredecomp) locally?
28 ifeq (${TESTBINLOCAL},01)28 ifeq (${TESTBINLOCAL},01)
29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'fldecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'flredecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."
30 @exit 130 @exit 1
31 else31 else
32 # No fluidity binary on the system path or locally32 # No fluidity binary on the system path or locally
3333
=== modified file 'examples/flow_past_sphere_Re100/flow_past_sphere_Re100.xml'
--- examples/flow_past_sphere_Re100/flow_past_sphere_Re100.xml 2010-11-06 21:27:46 +0000
+++ examples/flow_past_sphere_Re100/flow_past_sphere_Re100.xml 2012-11-24 15:51:21 +0000
@@ -7,7 +7,8 @@
7 <owner userid="piggt01"/>7 <owner userid="piggt01"/>
8 <tags>flml</tags>8 <tags>flml</tags>
9 <problem_definition length="long" nprocs="8">9 <problem_definition length="long" nprocs="8">
10 <command_line>mpiexec fluidity -v1 -l flow_past_sphere_Re100.flml</command_line>10 <command_line>mpiexec flredecomp -i 1 -o 8 -v -l flow_past_sphere_Re100 flow_past_sphere_Re100_flredecomp &amp;&amp;
11mpiexec fluidity -v1 -l flow_past_sphere_Re100_flredecomp.flml</command_line>
11 </problem_definition>12 </problem_definition>
12 <variables>13 <variables>
13 <variable name="time_average_xforce" language="python">14 <variable name="time_average_xforce" language="python">
1415
=== modified file 'examples/flow_past_sphere_Re1000/Makefile'
--- examples/flow_past_sphere_Re1000/Makefile 2012-11-01 16:43:40 +0000
+++ examples/flow_past_sphere_Re1000/Makefile 2012-11-24 15:51:21 +0000
@@ -1,27 +1,8 @@
1include envcheck.mk1include envcheck.mk
22
3preprocess: envcheck3preprocess: envcheck
4ifeq ("x","x${NPROCS}")
5 @echo "**********ERROR: Please define NPROCS to set the number of processors with"
6 @echo "make preprocess NPROCS=N, where N is the number of processors."
7 @echo "Similarly use make run NPROCS=N."
8 @echo "This is a large simulation and will take a very long time in serial."
9 @echo "It is best run in parallel on 8 processors."
10 @exit 1
11endif
12 @echo **********Converting the gmsh mesh to triangle format:4 @echo **********Converting the gmsh mesh to triangle format:
13 ${BINPREFIX}gmsh2triangle unit_sphere.msh5 ${BINPREFIX}gmsh2triangle unit_sphere.msh
14ifneq ($(NPROCS),8)
15 @echo **********WARNING: This simulation is best run on 8 processors
16endif
17ifeq ($(NPROCS),1)
18 @echo **********Serial run: not decomposing mesh
19 @echo **********WARNING: This is a large simulation and will take a very long time in serial. Find a handy supercomputer.
20else
21 @echo **********Decomposing the mesh into $(NPROCS) parts for parallel run:
22 ${BINPREFIX}fldecomp -n $(NPROCS) -f unit_sphere
23endif
24
256
26run: envcheck7run: envcheck
27ifneq ($(NPROCS),8)8ifneq ($(NPROCS),8)
@@ -32,8 +13,10 @@
32 @echo **********Calling fluidity in serial with verbose log output enabled:13 @echo **********Calling fluidity in serial with verbose log output enabled:
33 ${BINPREFIX}fluidity -v2 -l flow_past_sphere_Re1000.flml14 ${BINPREFIX}fluidity -v2 -l flow_past_sphere_Re1000.flml
34else15else
16 @echo **********Calling flredecomp in parallel with verbose log output enabled:
17 mpiexec -n $(NPROCS) ${BINPREFIX}flredecomp -i 1 -o $(NPROCS) -v -l flow_past_sphere_Re1000 flow_past_sphere_Re1000_flredecomp
35 @echo **********Calling fluidity in parallel with verbose log output enabled:18 @echo **********Calling fluidity in parallel with verbose log output enabled:
36 mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l flow_past_sphere_Re1000.flml19 mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l flow_past_sphere_Re1000_flredecomp.flml
37endif20endif
3821
39postprocess:22postprocess:
@@ -41,10 +24,12 @@
41 python ./plot_data.py24 python ./plot_data.py
4225
43input: clean26input: clean
44 $(MAKE) preprocess NPROCS=827 $(MAKE) preprocess
4528
46clean:29clean:
47 @echo **********Cleaning the output from previous fluidity runs:30 @echo **********Cleaning the output from previous fluidity runs:
48 rm -f *.ele *.edge *.face *.node *.halo *.poly *vtu *.stat *.log-? *.err-? matrixdump* 31 rm -f *.ele *.edge *.face *.node *.halo *.poly *vtu *.stat *.log-* *.err-* matrixdump*
49 rm -rf flow_past_sphere_Re1000_? flow_past_sphere_Re1000_?? 32 rm -rf flow_past_sphere_Re1000_? flow_past_sphere_Re1000_??
33 rm -rf first_timestep_adapted_mesh*
50 rm -f Sphere_drag.pdf34 rm -f Sphere_drag.pdf
35 rm -rf *flredecomp*
5136
=== modified file 'examples/flow_past_sphere_Re1000/envcheck.mk'
--- examples/flow_past_sphere_Re1000/envcheck.mk 2012-11-02 12:02:33 +0000
+++ examples/flow_past_sphere_Re1000/envcheck.mk 2012-11-24 15:51:21 +0000
@@ -4,29 +4,29 @@
4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}
55
6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)
7TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?)7TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?)
88
9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)
10TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?)10TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?)
1111
12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)
1313
14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP}14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP}
15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL}15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL}
1616
17envcheck:17envcheck:
18# Do we have both fluidity and fldecomp on the existing path?18# Do we have both fluidity and flredecomp on the existing path?
19ifneq (${TESTBIN},00)19ifneq (${TESTBIN},00)
20 # Do we only have fluidity (and not fldecomp) on the existing path?20 # Do we only have fluidity (and not flredecomp) on the existing path?
21 ifeq (${TESTBIN},01)21 ifeq (${TESTBIN},01)
22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'fldecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'flredecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."
23 @exit 123 @exit 1
24 else24 else
25 # fluidity isn't on the path; do we have both fluidity and fldecomp locally?25 # fluidity isn't on the path; do we have both fluidity and flredecomp locally?
26 ifneq (${TESTBINLOCAL},00)26 ifneq (${TESTBINLOCAL},00)
27 # Do we only have fluidity (and not fldecomp) locally?27 # Do we only have fluidity (and not flredecomp) locally?
28 ifeq (${TESTBINLOCAL},01)28 ifeq (${TESTBINLOCAL},01)
29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'fldecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'flredecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."
30 @exit 130 @exit 1
31 else31 else
32 # No fluidity binary on the system path or locally32 # No fluidity binary on the system path or locally
3333
=== modified file 'examples/flow_past_sphere_Re1000/flow_past_sphere_Re1000.xml'
--- examples/flow_past_sphere_Re1000/flow_past_sphere_Re1000.xml 2011-11-07 12:28:49 +0000
+++ examples/flow_past_sphere_Re1000/flow_past_sphere_Re1000.xml 2012-11-24 15:51:21 +0000
@@ -7,7 +7,8 @@
7 <owner userid="piggt01"/>7 <owner userid="piggt01"/>
8 <tags>flml</tags>8 <tags>flml</tags>
9 <problem_definition length="long" nprocs="8">9 <problem_definition length="long" nprocs="8">
10 <command_line>mpiexec fluidity -v1 -l flow_past_sphere_Re1000.flml</command_line>10 <command_line>mpiexec flredecomp -i 1 -o 8 -v -l flow_past_sphere_Re1000 flow_past_sphere_Re1000_flredecomp &amp;&amp;
11mpiexec fluidity -v1 -l flow_past_sphere_Re1000_flredecomp.flml</command_line>
11 </problem_definition>12 </problem_definition>
12 <variables>13 <variables>
13 <variable name="time_average_xforce" language="python">14 <variable name="time_average_xforce" language="python">
1415
=== modified file 'examples/hokkaido-nansei-oki_tsunami/Makefile'
--- examples/hokkaido-nansei-oki_tsunami/Makefile 2012-11-01 19:14:50 +0000
+++ examples/hokkaido-nansei-oki_tsunami/Makefile 2012-11-24 15:51:21 +0000
@@ -4,11 +4,13 @@
44
5preprocess: envcheck5preprocess: envcheck
6 @echo **********Generating the mesh using gmsh in 2d:6 @echo **********Generating the mesh using gmsh in 2d:
7 cd mesh; gmsh -bin MonaiValley_C.geo -2; ${BINPREFIX}fldecomp -n 4 -m gmsh MonaiValley_C7 cd mesh; gmsh -bin MonaiValley_C.geo -2
88
9run: envcheck9run: envcheck
10 @echo **********Calling flredecomp in parallel with verbose log output enabled:
11 mpiexec -n 4 ${BINPREFIX}flredecomp -i 1 -o 4 -v -l MonaiValley_C_p1p1_nu0.01_kmkstab_drag0.002_butcircularoundisland0.2 MonaiValley_C_p1p1_nu0.01_kmkstab_drag0.002_butcircularoundisland0.2_flredecomp
10 @echo **********Calling fluidity with verbose log output enabled:12 @echo **********Calling fluidity with verbose log output enabled:
11 mpirun -n 4 ${BINPREFIX}fluidity -v2 -l MonaiValley_C_p1p1_nu0.01_kmkstab_drag0.002_butcircularoundisland0.2.flml13 mpirun -n 4 ${BINPREFIX}fluidity -v2 -l MonaiValley_C_p1p1_nu0.01_kmkstab_drag0.002_butcircularoundisland0.2_flredecomp.flml
1214
13postprocess: envcheck15postprocess: envcheck
14 @echo **********Calling the data extraction and plotting python script:16 @echo **********Calling the data extraction and plotting python script:
@@ -22,4 +24,4 @@
22 cd mesh; rm -f *.ele *.edge *.node *.poly *.vtu *.s *.d.1 *.stat *.msh *.detectors matrixdump* *.halo24 cd mesh; rm -f *.ele *.edge *.node *.poly *.vtu *.s *.d.1 *.stat *.msh *.detectors matrixdump* *.halo
23 @echo **********Cleaning the output from previous python runs:25 @echo **********Cleaning the output from previous python runs:
24 rm -rf *.pyc26 rm -rf *.pyc
2527 rm -rf *flredecomp*
2628
=== modified file 'examples/hokkaido-nansei-oki_tsunami/envcheck.mk'
--- examples/hokkaido-nansei-oki_tsunami/envcheck.mk 2012-11-02 12:02:33 +0000
+++ examples/hokkaido-nansei-oki_tsunami/envcheck.mk 2012-11-24 15:51:21 +0000
@@ -4,29 +4,29 @@
4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}
55
6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)
7TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?)7TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?)
88
9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)
10TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?)10TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?)
1111
12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)
1313
14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP}14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP}
15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL}15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL}
1616
17envcheck:17envcheck:
18# Do we have both fluidity and fldecomp on the existing path?18# Do we have both fluidity and flredecomp on the existing path?
19ifneq (${TESTBIN},00)19ifneq (${TESTBIN},00)
20 # Do we only have fluidity (and not fldecomp) on the existing path?20 # Do we only have fluidity (and not flredecomp) on the existing path?
21 ifeq (${TESTBIN},01)21 ifeq (${TESTBIN},01)
22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'fldecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'flredecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."
23 @exit 123 @exit 1
24 else24 else
25 # fluidity isn't on the path; do we have both fluidity and fldecomp locally?25 # fluidity isn't on the path; do we have both fluidity and flredecomp locally?
26 ifneq (${TESTBINLOCAL},00)26 ifneq (${TESTBINLOCAL},00)
27 # Do we only have fluidity (and not fldecomp) locally?27 # Do we only have fluidity (and not flredecomp) locally?
28 ifeq (${TESTBINLOCAL},01)28 ifeq (${TESTBINLOCAL},01)
29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'fldecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'flredecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."
30 @exit 130 @exit 1
31 else31 else
32 # No fluidity binary on the system path or locally32 # No fluidity binary on the system path or locally
3333
=== modified file 'examples/hokkaido-nansei-oki_tsunami/hokkaido-nansei-oki_tsunami.xml'
--- examples/hokkaido-nansei-oki_tsunami/hokkaido-nansei-oki_tsunami.xml 2012-08-22 21:21:08 +0000
+++ examples/hokkaido-nansei-oki_tsunami/hokkaido-nansei-oki_tsunami.xml 2012-11-24 15:51:21 +0000
@@ -3,7 +3,8 @@
3 <name>Monai Valley</name>3 <name>Monai Valley</name>
4 <owner userid="sf1409"/>4 <owner userid="sf1409"/>
5 <problem_definition length="long" nprocs="4">5 <problem_definition length="long" nprocs="4">
6 <command_line>fluidity MonaiValley_C_p1p1_nu0.01_kmkstab_drag0.002_butcircularoundisland0.2.flml</command_line>6 <command_line>mpiexec flredecomp -i 1 -o 4 -v -l MonaiValley_C_p1p1_nu0.01_kmkstab_drag0.002_butcircularoundisland0.2 MonaiValley_C_p1p1_nu0.01_kmkstab_drag0.002_butcircularoundisland0.2_flredecomp &amp;&amp;
7mpiexec fluidity -v2 -l MonaiValley_C_p1p1_nu0.01_kmkstab_drag0.002_butcircularoundisland0.2_flredecomp.flml</command_line>
7 </problem_definition>8 </problem_definition>
8 <variables>9 <variables>
9 <variable name="gage_integral_error" language="python">import tools10 <variable name="gage_integral_error" language="python">import tools
1011
=== modified file 'examples/lock_exchange/envcheck.mk'
--- examples/lock_exchange/envcheck.mk 2012-11-02 12:02:33 +0000
+++ examples/lock_exchange/envcheck.mk 2012-11-24 15:51:21 +0000
@@ -4,29 +4,29 @@
4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}
55
6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)
7TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?)7TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?)
88
9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)
10TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?)10TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?)
1111
12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)
1313
14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP}14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP}
15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL}15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL}
1616
17envcheck:17envcheck:
18# Do we have both fluidity and fldecomp on the existing path?18# Do we have both fluidity and flredecomp on the existing path?
19ifneq (${TESTBIN},00)19ifneq (${TESTBIN},00)
20 # Do we only have fluidity (and not fldecomp) on the existing path?20 # Do we only have fluidity (and not flredecomp) on the existing path?
21 ifeq (${TESTBIN},01)21 ifeq (${TESTBIN},01)
22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'fldecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'flredecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."
23 @exit 123 @exit 1
24 else24 else
25 # fluidity isn't on the path; do we have both fluidity and fldecomp locally?25 # fluidity isn't on the path; do we have both fluidity and flredecomp locally?
26 ifneq (${TESTBINLOCAL},00)26 ifneq (${TESTBINLOCAL},00)
27 # Do we only have fluidity (and not fldecomp) locally?27 # Do we only have fluidity (and not flredecomp) locally?
28 ifeq (${TESTBINLOCAL},01)28 ifeq (${TESTBINLOCAL},01)
29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'fldecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'flredecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."
30 @exit 130 @exit 1
31 else31 else
32 # No fluidity binary on the system path or locally32 # No fluidity binary on the system path or locally
3333
=== modified file 'examples/restratification_after_oodc/Makefile'
--- examples/restratification_after_oodc/Makefile 2012-11-01 16:49:23 +0000
+++ examples/restratification_after_oodc/Makefile 2012-11-24 15:51:21 +0000
@@ -9,16 +9,6 @@
9 gmsh -2 circle.geo 9 gmsh -2 circle.geo
10 @echo **********Converting the gmsh mesh to triangle format:10 @echo **********Converting the gmsh mesh to triangle format:
11 ${BINPREFIX}gmsh2triangle --2d circle.msh; 11 ${BINPREFIX}gmsh2triangle --2d circle.msh;
12ifneq ($(NPROCS),64)
13 @echo **********WARNING: This simulation is best run on 64 processors
14endif
15ifeq ($(NPROCS),1)
16 @echo **********Serial run: not decomposing mesh
17 @echo **********WARNING: This is a large simulation and will take a very long time in serial. Find a handy supercomputer.
18else
19 @echo **********Decomposing the mesh into $(NPROCS) parts for parallel run:
20 ${BINPREFIX}fldecomp -n $(NPROCS) -f circle
21endif
2212
23run: envcheck13run: envcheck
24ifneq ($(NPROCS),64)14ifneq ($(NPROCS),64)
@@ -29,10 +19,12 @@
29 @echo **********Calling fluidity in serial with verbose log output enabled:19 @echo **********Calling fluidity in serial with verbose log output enabled:
30 ${BINPREFIX}fluidity -v2 -l restratification_after_oodc.flml20 ${BINPREFIX}fluidity -v2 -l restratification_after_oodc.flml
31else21else
22 @echo **********Calling flredecomp in parallel with verbose log output enabled:
23 mpiexec -n $(NPROCS) ${BINPREFIX}flredecomp -i 1 -o $(NPROCS) -v -l restratification_after_oodc restratification_after_oodc_flredecomp
32 @echo **********Calling fluidity in parallel with verbose log output enabled:24 @echo **********Calling fluidity in parallel with verbose log output enabled:
33 mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l restratification_after_oodc.flml25 mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l restratification_after_oodc_flredecomp.flml
34endif26endif
35 27
36postprocess:28postprocess:
37 @echo **********No postprocessing needed29 @echo **********No postprocessing needed
3830
@@ -41,8 +33,9 @@
4133
42clean:34clean:
43 @echo **********Cleaning the output from previous fluidity runs:35 @echo **********Cleaning the output from previous fluidity runs:
44 rm -f *.ele *.edge *.face *.node *.halo *.poly *.vtu *.pvtu *.stat *.log-0 *.err-0 */matrixdump*36 rm -f *.geo *.msh *.ele *.edge *.face *.node *.halo *.poly *.vtu *.pvtu *.stat *.log-* *.err-* */matrixdump*
45 rm -rf restratification_after_oodc_? restratification_after_oodc_??37 rm -rf restratification_after_oodc_? restratification_after_oodc_??
38 rm -rf *flredecomp*
4639
47realclean: clean40realclean: clean
48 @echo **********Cleaning the output and checkpoints from previous fluidity runs:41 @echo **********Cleaning the output and checkpoints from previous fluidity runs:
4942
=== modified file 'examples/restratification_after_oodc/envcheck.mk'
--- examples/restratification_after_oodc/envcheck.mk 2012-11-02 12:02:33 +0000
+++ examples/restratification_after_oodc/envcheck.mk 2012-11-24 15:51:21 +0000
@@ -4,29 +4,29 @@
4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}
55
6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)
7TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?)7TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?)
88
9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)
10TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?)10TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?)
1111
12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)
1313
14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP}14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP}
15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL}15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL}
1616
17envcheck:17envcheck:
18# Do we have both fluidity and fldecomp on the existing path?18# Do we have both fluidity and flredecomp on the existing path?
19ifneq (${TESTBIN},00)19ifneq (${TESTBIN},00)
20 # Do we only have fluidity (and not fldecomp) on the existing path?20 # Do we only have fluidity (and not flredecomp) on the existing path?
21 ifeq (${TESTBIN},01)21 ifeq (${TESTBIN},01)
22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'fldecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'flredecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."
23 @exit 123 @exit 1
24 else24 else
25 # fluidity isn't on the path; do we have both fluidity and fldecomp locally?25 # fluidity isn't on the path; do we have both fluidity and flredecomp locally?
26 ifneq (${TESTBINLOCAL},00)26 ifneq (${TESTBINLOCAL},00)
27 # Do we only have fluidity (and not fldecomp) locally?27 # Do we only have fluidity (and not flredecomp) locally?
28 ifeq (${TESTBINLOCAL},01)28 ifeq (${TESTBINLOCAL},01)
29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'fldecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'flredecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."
30 @exit 130 @exit 1
31 else31 else
32 # No fluidity binary on the system path or locally32 # No fluidity binary on the system path or locally
3333
=== modified file 'examples/restratification_after_oodc/restratification_after_oodc.xml'
--- examples/restratification_after_oodc/restratification_after_oodc.xml 2012-09-05 13:12:22 +0000
+++ examples/restratification_after_oodc/restratification_after_oodc.xml 2012-11-24 15:51:21 +0000
@@ -7,7 +7,8 @@
7 <owner userid="fpm08"/>7 <owner userid="fpm08"/>
8 <tags>flml </tags>8 <tags>flml </tags>
9 <problem_definition length="long" nprocs="64">9 <problem_definition length="long" nprocs="64">
10 <command_line>mpiexec fluidity -v2 -l restratification_after_oodc.flml </command_line>10 <command_line>mpiexec flredecomp -i 1 -o 64 -v -l restratification_after_oodc restratification_after_oodc_flredecomp &amp;&amp;
11mpiexec fluidity -v2 -l restratification_after_oodc_flredecomp.flml </command_line>
11 </problem_definition> 12 </problem_definition>
12 <variables>13 <variables>
13 <variable name="final_time" language="python">14 <variable name="final_time" language="python">
1415
=== modified file 'examples/rotating_channel/envcheck.mk'
--- examples/rotating_channel/envcheck.mk 2012-11-02 12:02:33 +0000
+++ examples/rotating_channel/envcheck.mk 2012-11-24 15:51:21 +0000
@@ -4,29 +4,29 @@
4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}
55
6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)
7TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?)7TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?)
88
9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)
10TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?)10TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?)
1111
12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)
1313
14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP}14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP}
15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL}15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL}
1616
17envcheck:17envcheck:
18# Do we have both fluidity and fldecomp on the existing path?18# Do we have both fluidity and flredecomp on the existing path?
19ifneq (${TESTBIN},00)19ifneq (${TESTBIN},00)
20 # Do we only have fluidity (and not fldecomp) on the existing path?20 # Do we only have fluidity (and not flredecomp) on the existing path?
21 ifeq (${TESTBIN},01)21 ifeq (${TESTBIN},01)
22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'fldecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'flredecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."
23 @exit 123 @exit 1
24 else24 else
25 # fluidity isn't on the path; do we have both fluidity and fldecomp locally?25 # fluidity isn't on the path; do we have both fluidity and flredecomp locally?
26 ifneq (${TESTBINLOCAL},00)26 ifneq (${TESTBINLOCAL},00)
27 # Do we only have fluidity (and not fldecomp) locally?27 # Do we only have fluidity (and not flredecomp) locally?
28 ifeq (${TESTBINLOCAL},01)28 ifeq (${TESTBINLOCAL},01)
29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'fldecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'flredecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."
30 @exit 130 @exit 1
31 else31 else
32 # No fluidity binary on the system path or locally32 # No fluidity binary on the system path or locally
3333
=== modified file 'examples/stokes_square_convection/envcheck.mk'
--- examples/stokes_square_convection/envcheck.mk 2012-11-02 12:02:33 +0000
+++ examples/stokes_square_convection/envcheck.mk 2012-11-24 15:51:21 +0000
@@ -4,29 +4,29 @@
4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}
55
6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)
7TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?)7TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?)
88
9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)
10TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?)10TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?)
1111
12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)
1313
14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP}14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP}
15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL}15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL}
1616
17envcheck:17envcheck:
18# Do we have both fluidity and fldecomp on the existing path?18# Do we have both fluidity and flredecomp on the existing path?
19ifneq (${TESTBIN},00)19ifneq (${TESTBIN},00)
20 # Do we only have fluidity (and not fldecomp) on the existing path?20 # Do we only have fluidity (and not flredecomp) on the existing path?
21 ifeq (${TESTBIN},01)21 ifeq (${TESTBIN},01)
22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'fldecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'flredecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."
23 @exit 123 @exit 1
24 else24 else
25 # fluidity isn't on the path; do we have both fluidity and fldecomp locally?25 # fluidity isn't on the path; do we have both fluidity and flredecomp locally?
26 ifneq (${TESTBINLOCAL},00)26 ifneq (${TESTBINLOCAL},00)
27 # Do we only have fluidity (and not fldecomp) locally?27 # Do we only have fluidity (and not flredecomp) locally?
28 ifeq (${TESTBINLOCAL},01)28 ifeq (${TESTBINLOCAL},01)
29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'fldecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'flredecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."
30 @exit 130 @exit 1
31 else31 else
32 # No fluidity binary on the system path or locally32 # No fluidity binary on the system path or locally
3333
=== modified file 'examples/tephra_settling/envcheck.mk'
--- examples/tephra_settling/envcheck.mk 2012-11-02 12:02:33 +0000
+++ examples/tephra_settling/envcheck.mk 2012-11-24 15:51:21 +0000
@@ -4,29 +4,29 @@
4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}
55
6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)
7TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?)7TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?)
88
9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)
10TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?)10TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?)
1111
12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)
1313
14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP}14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP}
15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL}15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL}
1616
17envcheck:17envcheck:
18# Do we have both fluidity and fldecomp on the existing path?18# Do we have both fluidity and flredecomp on the existing path?
19ifneq (${TESTBIN},00)19ifneq (${TESTBIN},00)
20 # Do we only have fluidity (and not fldecomp) on the existing path?20 # Do we only have fluidity (and not flredecomp) on the existing path?
21 ifeq (${TESTBIN},01)21 ifeq (${TESTBIN},01)
22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'fldecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'flredecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."
23 @exit 123 @exit 1
24 else24 else
25 # fluidity isn't on the path; do we have both fluidity and fldecomp locally?25 # fluidity isn't on the path; do we have both fluidity and flredecomp locally?
26 ifneq (${TESTBINLOCAL},00)26 ifneq (${TESTBINLOCAL},00)
27 # Do we only have fluidity (and not fldecomp) locally?27 # Do we only have fluidity (and not flredecomp) locally?
28 ifeq (${TESTBINLOCAL},01)28 ifeq (${TESTBINLOCAL},01)
29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'fldecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'flredecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."
30 @exit 130 @exit 1
31 else31 else
32 # No fluidity binary on the system path or locally32 # No fluidity binary on the system path or locally
3333
=== modified file 'examples/tephra_settling/tephra_settling.xml'
--- examples/tephra_settling/tephra_settling.xml 2012-08-19 00:21:26 +0000
+++ examples/tephra_settling/tephra_settling.xml 2012-11-24 15:51:21 +0000
@@ -8,7 +8,7 @@
8 <tags>flml</tags>8 <tags>flml</tags>
9 9
10 <problem_definition length="long" nprocs="1">10 <problem_definition length="long" nprocs="1">
11 <command_line>mpiexec ../../bin/fluidity -v2 -l tephra_settling.flml</command_line>11 <command_line>mpiexec fluidity -v2 -l tephra_settling.flml</command_line>
12 <!-- This is a 2D simulation of the formation of density currents. We consider a -->12 <!-- This is a 2D simulation of the formation of density currents. We consider a -->
13 <!-- body of water with a constant inflow of (denser) tephra at the top boundary. -->13 <!-- body of water with a constant inflow of (denser) tephra at the top boundary. -->
14 <!-- Density currents/plumes should eventually form when the bulk density is large enough. -->14 <!-- Density currents/plumes should eventually form when the bulk density is large enough. -->
1515
=== modified file 'examples/tides_in_the_Mediterranean_Sea/Makefile'
--- examples/tides_in_the_Mediterranean_Sea/Makefile 2012-11-01 16:56:24 +0000
+++ examples/tides_in_the_Mediterranean_Sea/Makefile 2012-11-24 15:51:21 +0000
@@ -1,26 +1,12 @@
1include envcheck.mk1include envcheck.mk
22
3preprocess: envcheck3preprocess: envcheck
4ifeq ("x","x${NPROCS}")
5 @echo "**********ERROR: Please define NPROCS to set the number of processors to use"
6 @exit 1
7endif
8 @echo **********Converting the gmsh mesh to triangle format:4 @echo **********Converting the gmsh mesh to triangle format:
9 ${BINPREFIX}gmsh2triangle med.msh5 ${BINPREFIX}gmsh2triangle med.msh
10 @echo **********Modifying mesh nodal file using sed:6 @echo **********Modifying mesh nodal file using sed:
11 sed '1s/3/2/2' < med.node > med2.node7 sed '1s/3/2/2' < med.node > med2.node
12 @echo **********Replacing mesh with modified version:8 @echo **********Replacing mesh with modified version:
13 mv med2.node med.node9 mv med2.node med.node
14ifneq ($(NPROCS),64)
15 @echo **********WARNING: This simulation is best run on 64 processors
16endif
17ifeq ($(NPROCS),1)
18 @echo **********Serial run: not decomposing mesh
19 @echo **********WARNING: This is a large simulation and will take a very long time in serial. Find a handy supercomputer.
20else
21 @echo **********Decomposing the mesh into $(NPROCS) parts for parallel run:
22 ${BINPREFIX}fldecomp -n $(NPROCS) -s med
23endif
2410
25run: envcheck11run: envcheck
26ifndef ($(NPROCS))12ifndef ($(NPROCS))
@@ -35,8 +21,10 @@
35 @echo **********Calling fluidity in serial with verbose log output enabled:21 @echo **********Calling fluidity in serial with verbose log output enabled:
36 ${BINPREFIX}fluidity -v2 -l med.flml22 ${BINPREFIX}fluidity -v2 -l med.flml
37else23else
24 @echo **********Calling flredecomp in parallel with verbose log output enabled:
25 mpiexec -n $(NPROCS) ${BINPREFIX}flredecomp -i 1 -o $(NPROCS) -v -l med med_flredecomp
38 @echo **********Calling fluidity in parallel with verbose log output enabled:26 @echo **********Calling fluidity in parallel with verbose log output enabled:
39 mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l med.flml27 mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l med_flredecomp.flml
40endif28endif
4129
42postprocess: envcheck30postprocess: envcheck
@@ -48,7 +36,8 @@
48clean:36clean:
49 @echo **********Cleaning the output from previous fluidity runs:37 @echo **********Cleaning the output from previous fluidity runs:
50 rm -rf *gmt* *.ele *.node *.edge Med-GEBCO-5m-gauges-fes2004-O1-102 *med_* *.halo *.pvtu *.vtu *.stat *.log-* *.err-* *checkp* *Check* *matrixdump*38 rm -rf *gmt* *.ele *.node *.edge Med-GEBCO-5m-gauges-fes2004-O1-102 *med_* *.halo *.pvtu *.vtu *.stat *.log-* *.err-* *checkp* *Check* *matrixdump*
39 rm -rf *flredecomp*
5140
52input: clean41input: clean
53 $(MAKE) preprocess NPROCS=6442 $(MAKE) preprocess
5443
5544
=== modified file 'examples/tides_in_the_Mediterranean_Sea/envcheck.mk'
--- examples/tides_in_the_Mediterranean_Sea/envcheck.mk 2012-11-02 12:02:33 +0000
+++ examples/tides_in_the_Mediterranean_Sea/envcheck.mk 2012-11-24 15:51:21 +0000
@@ -4,29 +4,29 @@
4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}
55
6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)
7TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?)7TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?)
88
9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)
10TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?)10TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?)
1111
12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)
1313
14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP}14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP}
15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL}15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL}
1616
17envcheck:17envcheck:
18# Do we have both fluidity and fldecomp on the existing path?18# Do we have both fluidity and flredecomp on the existing path?
19ifneq (${TESTBIN},00)19ifneq (${TESTBIN},00)
20 # Do we only have fluidity (and not fldecomp) on the existing path?20 # Do we only have fluidity (and not flredecomp) on the existing path?
21 ifeq (${TESTBIN},01)21 ifeq (${TESTBIN},01)
22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'fldecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'flredecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."
23 @exit 123 @exit 1
24 else24 else
25 # fluidity isn't on the path; do we have both fluidity and fldecomp locally?25 # fluidity isn't on the path; do we have both fluidity and flredecomp locally?
26 ifneq (${TESTBINLOCAL},00)26 ifneq (${TESTBINLOCAL},00)
27 # Do we only have fluidity (and not fldecomp) locally?27 # Do we only have fluidity (and not flredecomp) locally?
28 ifeq (${TESTBINLOCAL},01)28 ifeq (${TESTBINLOCAL},01)
29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'fldecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'flredecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."
30 @exit 130 @exit 1
31 else31 else
32 # No fluidity binary on the system path or locally32 # No fluidity binary on the system path or locally
3333
=== modified file 'examples/tides_in_the_Mediterranean_Sea/tides_in_the_Mediterranean_Sea.xml'
--- examples/tides_in_the_Mediterranean_Sea/tides_in_the_Mediterranean_Sea.xml 2010-11-08 18:38:29 +0000
+++ examples/tides_in_the_Mediterranean_Sea/tides_in_the_Mediterranean_Sea.xml 2012-11-24 15:51:21 +0000
@@ -4,7 +4,8 @@
4 <owner userid="ajm02"/>4 <owner userid="ajm02"/>
5 <tags>flml</tags>5 <tags>flml</tags>
6 <problem_definition length="long" nprocs="64">6 <problem_definition length="long" nprocs="64">
7 <command_line>mpiexec fluidity -v2 -l med.flml</command_line>7 <command_line>mpiexec flredecomp -i 1 -o 64 -v -l med med_flredecomp &amp;&amp;
8mpiexec fluidity -v2 -l med_flredecomp.flml</command_line>
8 </problem_definition>9 </problem_definition>
9 <variables>10 <variables>
10 <variable name="final_time" language="python">11 <variable name="final_time" language="python">
1112
=== modified file 'examples/top_hat/envcheck.mk'
--- examples/top_hat/envcheck.mk 2012-11-02 12:02:33 +0000
+++ examples/top_hat/envcheck.mk 2012-11-24 15:51:21 +0000
@@ -4,29 +4,29 @@
4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}
55
6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)
7TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?)7TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?)
88
9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)
10TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?)10TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?)
1111
12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)
1313
14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP}14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP}
15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL}15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL}
1616
17envcheck:17envcheck:
18# Do we have both fluidity and fldecomp on the existing path?18# Do we have both fluidity and flredecomp on the existing path?
19ifneq (${TESTBIN},00)19ifneq (${TESTBIN},00)
20 # Do we only have fluidity (and not fldecomp) on the existing path?20 # Do we only have fluidity (and not flredecomp) on the existing path?
21 ifeq (${TESTBIN},01)21 ifeq (${TESTBIN},01)
22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'fldecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'flredecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."
23 @exit 123 @exit 1
24 else24 else
25 # fluidity isn't on the path; do we have both fluidity and fldecomp locally?25 # fluidity isn't on the path; do we have both fluidity and flredecomp locally?
26 ifneq (${TESTBINLOCAL},00)26 ifneq (${TESTBINLOCAL},00)
27 # Do we only have fluidity (and not fldecomp) locally?27 # Do we only have fluidity (and not flredecomp) locally?
28 ifeq (${TESTBINLOCAL},01)28 ifeq (${TESTBINLOCAL},01)
29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'fldecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'flredecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."
30 @exit 130 @exit 1
31 else31 else
32 # No fluidity binary on the system path or locally32 # No fluidity binary on the system path or locally
3333
=== modified file 'examples/water_collapse/envcheck.mk'
--- examples/water_collapse/envcheck.mk 2012-11-02 12:02:33 +0000
+++ examples/water_collapse/envcheck.mk 2012-11-24 15:51:21 +0000
@@ -4,29 +4,29 @@
4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}4TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL}
55
6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)6TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?)
7TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?)7TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?)
88
9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)9TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?)
10TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?)10TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?)
1111
12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)12BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/)
1313
14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP}14TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP}
15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL}15TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL}
1616
17envcheck:17envcheck:
18# Do we have both fluidity and fldecomp on the existing path?18# Do we have both fluidity and flredecomp on the existing path?
19ifneq (${TESTBIN},00)19ifneq (${TESTBIN},00)
20 # Do we only have fluidity (and not fldecomp) on the existing path?20 # Do we only have fluidity (and not flredecomp) on the existing path?
21 ifeq (${TESTBIN},01)21 ifeq (${TESTBIN},01)
22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'fldecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."22 @echo "*** ERROR ***\nThe 'fluidity' binary is available on your system, but the 'flredecomp' binary\nisn't. This indicates that you have a partial install; perhaps you copied the\n'fluidity' binary into a system directory by hand? If you installed from\nsource, please rebuild Fluidity using the '--prefix' argument to specify an\ninstall directory, and run 'make install'. If Fluidity was installed for youon\nthe system, please pass this message on to your system administrator and ask\nthem to resolve the problem."
23 @exit 123 @exit 1
24 else24 else
25 # fluidity isn't on the path; do we have both fluidity and fldecomp locally?25 # fluidity isn't on the path; do we have both fluidity and flredecomp locally?
26 ifneq (${TESTBINLOCAL},00)26 ifneq (${TESTBINLOCAL},00)
27 # Do we only have fluidity (and not fldecomp) locally?27 # Do we only have fluidity (and not flredecomp) locally?
28 ifeq (${TESTBINLOCAL},01)28 ifeq (${TESTBINLOCAL},01)
29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'fldecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."29 @echo "*** ERROR ***\nYou appear to be running within a partially-built Fluidity source tree. The\n'fluidity' binary is present, but the 'flredecomp' binary was not found. Please\nensure that 'make fltools' has been run in this source tree before you proceed\nto run examples."
30 @exit 130 @exit 1
31 else31 else
32 # No fluidity binary on the system path or locally32 # No fluidity binary on the system path or locally
3333
=== modified file 'femtools/Checkpoint.F90'
--- femtools/Checkpoint.F90 2012-03-21 17:52:32 +0000
+++ femtools/Checkpoint.F90 2012-11-24 15:51:21 +0000
@@ -98,7 +98,7 @@
98 end function do_checkpoint_simulation98 end function do_checkpoint_simulation
9999
100 subroutine checkpoint_simulation(state, prefix, postfix, cp_no, protect_simulation_name, &100 subroutine checkpoint_simulation(state, prefix, postfix, cp_no, protect_simulation_name, &
101 keep_initial_data)101 keep_initial_data, ignore_detectors)
102 !!< Checkpoint the whole simulation102 !!< Checkpoint the whole simulation
103 103
104 type(state_type), dimension(:), intent(in) :: state104 type(state_type), dimension(:), intent(in) :: state
@@ -114,6 +114,11 @@
114 !! checkpoint extruded meshes if the extrusion can be repeated using the initial sizing_function, 114 !! checkpoint extruded meshes if the extrusion can be repeated using the initial sizing_function,
115 !! i.e. if this run has not been started with a checkpointed extruded mesh (extrude/checkpoint_from_file)115 !! i.e. if this run has not been started with a checkpointed extruded mesh (extrude/checkpoint_from_file)
116 logical, optional, intent(in) :: keep_initial_data116 logical, optional, intent(in) :: keep_initial_data
117 !! When using flredecomp to re-partition the domain, the detectors
118 !! are ignored since they are kept in one header and one data file,
119 !! not in a set of per-process files. So flredecomp does not want to
120 !! checkpoint detectors.
121 logical, optional, intent(in) :: ignore_detectors
117122
118 character(len = PREFIX_LEN) :: lpostfix, lprefix123 character(len = PREFIX_LEN) :: lpostfix, lprefix
119124
@@ -136,7 +141,8 @@
136141
137 call checkpoint_state(state, lprefix, postfix = lpostfix, cp_no = cp_no, &142 call checkpoint_state(state, lprefix, postfix = lpostfix, cp_no = cp_no, &
138 keep_initial_data = keep_initial_data)143 keep_initial_data = keep_initial_data)
139 if(have_option("/io/detectors")) then144 if(have_option("/io/detectors") &
145 .and. .not.present_and_true(ignore_detectors)) then
140 call checkpoint_detectors(state, lprefix, postfix = lpostfix, cp_no = cp_no)146 call checkpoint_detectors(state, lprefix, postfix = lpostfix, cp_no = cp_no)
141 end if147 end if
142 if(getrank() == 0) then148 if(getrank() == 0) then
143149
=== modified file 'fldecomp/fldmain.cpp'
--- fldecomp/fldmain.cpp 2012-04-03 14:10:55 +0000
+++ fldecomp/fldmain.cpp 2012-11-24 15:51:21 +0000
@@ -78,6 +78,29 @@
78 {0, 0, 0, 0}78 {0, 0, 0, 0}
79 };79 };
80#endif80#endif
81
82 // Always recommend using flredecomp
83 cerr<<"\n"
84 <<"\t*** fldecomp will be removed in a future release of Fluidity. ***\n"
85 <<"\n"
86 <<"\tflredecomp is the recommended tool for mesh decomposition.\n"
87 <<"\n"
88 <<"\tReplace the fldecomp workflow:\n"
89 <<"\n"
90 <<"\t<generate mesh>\n"
91 <<"\tfldecomp -n <nparts> <other options> mesh\n"
92 <<"\tmpiexec -n <nparts> fluidity <other options> foo.flml\n"
93 <<"\n"
94 <<"\twith the flredecomp workflow:\n"
95 <<"\n"
96 <<"\t<generate mesh>\n"
97 <<"\tmpiexec -n <nparts> flredecomp -i 1 -o <nparts> foo foo_flredecomp\n"
98 <<"\tmpiexec -n <nparts> fluidity <other options> foo_flredecomp.flml\n"
99 <<"\n"
100 <<"\tfldecomp is retained only to decompose Terreno meshes, which\n"
101 <<"\tflredecomp cannot process.\n"
102 <<"\n";
103
81 int optionIndex = 0;104 int optionIndex = 0;
82 105
83 optarg = NULL; 106 optarg = NULL;
84107
=== modified file 'manual/meshes.tex'
--- manual/meshes.tex 2012-10-24 14:28:13 +0000
+++ manual/meshes.tex 2012-11-24 15:51:21 +0000
@@ -224,22 +224,10 @@
224 \label{fig:NACA0025_mesh_with_partitions}224 \label{fig:NACA0025_mesh_with_partitions}
225\end{figure}225\end{figure}
226226
227\subsubsection{fldecomp}
228\index{mesh!meshing tools!fldecomp}
229\label{mesh!meshing tools!fldecomp}
230
231\lstinline[language=bash]+fldecomp+ can be used to decompose a mesh. For example, if your mesh
232file is \lstinline[language=bash]+foo.msh+ and you want to decompose into four parts, type:
233\begin{lstlisting}[language = Bash]
234`\fluiditysourcepath'/bin/fldecomp -n 4 -m gmsh foo
235\end{lstlisting}
236See section \ref{sec:fldecomp} for more details.
237
238\subsubsection{flredecomp}227\subsubsection{flredecomp}
239\index{mesh!meshing tools!flredecomp}228\index{mesh!meshing tools!flredecomp}
240\label{mesh!meshing tools!flredecomp}229\label{mesh!meshing tools!flredecomp}
241\lstinline[language=bash]+flredecomp+ is a tool similar to \lstinline[language=bash]+fldecomp+ but runs in parallel. 230\lstinline[language=bash]+flredecomp+ can be used to perform the initial decomposition of a mesh, or to perform a re-decomposition of a \fluidity\ checkpoint. \lstinline[language=bash]+flredecomp+ runs in parallel.
242It performs a re-decomposition of a Fluidity checkpoint.
243For example, to decompose the serial file \lstinline+foo.flml+231For example, to decompose the serial file \lstinline+foo.flml+
244into four parts, running on 4 processors type:232into four parts, running on 4 processors type:
245233
@@ -249,7 +237,7 @@
249\end{lstlisting}237\end{lstlisting}
250238
251The output of running flredecomp is a series of mesh and vtu files as well239The output of running flredecomp is a series of mesh and vtu files as well
252as the new flml; in this case \lstinline+foo_flredecomp.flml+. 240as the new flml to be used in the subsequent run of \fluidity. In the example above, this file is \lstinline+foo_flredecomp.flml+.
253Note that \lstinline[language=bash]+flredecomp+ must be run on a number of processors equal to the larger number of processors between input and output.241Note that \lstinline[language=bash]+flredecomp+ must be run on a number of processors equal to the larger number of processors between input and output.
254242
255When using flredecomp, it is possible to partition the mesh based upon a user defined weighting. 243When using flredecomp, it is possible to partition the mesh based upon a user defined weighting.
@@ -259,6 +247,39 @@
259247
260Further information on flredecomp can be found in section~\ref{sec:flredecomp}.248Further information on flredecomp can be found in section~\ref{sec:flredecomp}.
261249
250\subsubsection{fldecomp}
251\index{mesh!meshing tools!fldecomp}
252\label{mesh!meshing tools!fldecomp}
253
254{\bf \lstinline[language=bash]+fldecomp+ will be removed in a future release of Fluidity.}
255
256\lstinline[language=bash]+fldecomp+ is a tool similar to \lstinline[language=bash]+flredecomp+ but runs in serial. \lstinline[language=bash]+flredecomp+ is the recommended tool for mesh decomposition.
257
258Here is an example of how to convert from using \lstinline[language=bash]+fldecomp+ to using \lstinline[language=bash]+flredecomp+. For a \fluidity\ input file called \lstinline[language=bash]+simulation.flml+ referring to a mesh file with basename \lstinline[language=bash]+mesh+, the \lstinline[language=bash]+fldecomp+ workflow would be
259
260\begin{lstlisting}[language=bash]
261<generate mesh>
262fldecomp -n <nparts> <other options> mesh
263mpiexec -n <nparts> fluidity <other options> simulation.flml
264\end{lstlisting}
265
266To use \lstinline[language=bash]+flredecomp+, the workflow becomes
267
268\begin{lstlisting}[language=bash]
269<generate mesh>
270mpiexec -n <nparts> flredecomp -i 1 -o <nparts> \
271 simulation simulation_flredecomp
272mpiexec -n <nparts> fluidity <other options> simulation_flredecomp.flml
273\end{lstlisting}
274
275\lstinline[language=bash]+fldecomp+ is retained only to decompose Terreno meshes (section~\ref{sec:Terreno}), which \lstinline[language=bash]+flredecomp+ cannot process.
276
277For example, if your Terreno mesh files have the base name \lstinline[language=bash]+foo+ and you want to decompose the mesh into four parts, type:
278\begin{lstlisting}[language = Bash]
279`\fluiditysourcepath'/bin/fldecomp -n 4 -t foo
280\end{lstlisting}
281See section \ref{sec:fldecomp} for more details.
282
262\subsection{Decomposing a periodic mesh}283\subsection{Decomposing a periodic mesh}
263\index{mesh!meshing tools!periodise}284\index{mesh!meshing tools!periodise}
264\label{sec:decomposing_meshes_periodise}285\label{sec:decomposing_meshes_periodise}
@@ -299,6 +320,7 @@
299\subsection{Terreno}320\subsection{Terreno}
300\index{mesh!meshing tools!Terreno}321\index{mesh!meshing tools!Terreno}
301\index{Terreno}322\index{Terreno}
323\label{sec:Terreno}
302324
303Terreno uses a 2D anisotropic mesh optimisation algorithm to explicitly optimise for 325Terreno uses a 2D anisotropic mesh optimisation algorithm to explicitly optimise for
304element quality and bathymetric approximation while minimising the number of mesh326element quality and bathymetric approximation while minimising the number of mesh
305327
=== modified file 'manual/parallel.tex'
--- manual/parallel.tex 2011-10-21 10:05:25 +0000
+++ manual/parallel.tex 2012-11-24 15:51:21 +0000
@@ -12,41 +12,31 @@
12\section{Set up}12\section{Set up}
1313
14The first step in running a \fluidity\ set-up in parallel is to create the software14The first step in running a \fluidity\ set-up in parallel is to create the software
15use to decompose the initial mesh into multiple parts, fldecomp. This can be made using:15use to decompose the initial mesh into multiple parts, flredecomp. This can be made using:
16\begin{lstlisting}[language=bash]16\begin{lstlisting}[language=bash]
17make fltools17make fltools
18\end{lstlisting}18\end{lstlisting}
19inside your \fluidity\ folder.The fldecomp binary will then be created in the bin/ directory. 19inside your \fluidity\ folder.The flredecomp binary will then be created in the bin/ directory.
20You can then decompose the initial mesh into multiple regions, one per process using the following command20You can then decompose the initial mesh into multiple regions, one per process using the following command
21\begin{lstlisting}[language=bash]21\begin{lstlisting}[language=bash]
22fldecomp -n [PARTS] [BASENAME]22mpiexec -n [PARTS] flredecomp -i 1 -o [PARTS] [FLMLBASE] [NEWFLMLBASE]
23\end{lstlisting}23\end{lstlisting}
24where BASENAME is the triangle mesh base name (excluding extensions). "-i triangle"24where FLMLBASE is the \fluidity input flml file base name (excluding
25instruct fldecomp to perform a triangle-to-triangle decomposition. 25extensions), e.g. foo for foo.flml, and NEWFLMLBASE is the new flml
26This will create PARTS partition triangle meshes together with PARTS .halo files. 26file base name, e.g. foo\_flredecomp for foo\_flredecomp.flml. For
2727example, to decompose a mesh to be run on four processors
28\subsection{Decomposing a periodic mesh}28simply type:
29
30To decompose a periodic mesh to be run on four processors simply type:
3129
32\begin{lstlisting}[language=bash]30\begin{lstlisting}[language=bash]
33mpiexec -n 4 ./myfluidity/bin/flredecomp \31mpiexec -n 4 ./myfluidity/bin/flredecomp \
34 -i 1 -o 4 foo_periodised foo_periodised_flredecomp32 -i 1 -o 4 foo foo_flredecomp
35\end{lstlisting}33\end{lstlisting}
3634
37Where:35The output of running flredecomp is a series of mesh and vtu files as well as the new flml; in this case foo\_flredecomp.flml. It is this flml that you use to run a periodic parallel mesh. Therefore, as previously:
38
39\begin{lstlisting}[language=bash]
40mpiexec -n [target number of processors] \
41 ./myfluidity/bin/flredecomp -i [input number of processors] \
42 -o [target number of processors] [input flml] [output flml]
43\end{lstlisting}
44
45The output of running flredecomp is a series of mesh and vtu files as well as the new flml; in this case foo\_periodised\_flredecomp.flml. It is this flml that you use to run a periodic parallel mesh. Therefore, as previously:
4636
47\begin{lstlisting}[language=bash]37\begin{lstlisting}[language=bash]
48mpiexec -n [number of processors] \38mpiexec -n [number of processors] \
49 ./myfluidity/bin/fluidity [options] foo_periodised_flredecomp.flml39 ./myfluidity/bin/fluidity [options] foo_flredecomp.flml
50\end{lstlisting}40\end{lstlisting}
5141
52\section{Running}42\section{Running}
@@ -127,4 +117,4 @@
127117
128\begin{lstlisting}[language=bash]118\begin{lstlisting}[language=bash]
129$HOME/modules/fluidity-cx1119$HOME/modules/fluidity-cx1
130\end{lstlisting}
131\ No newline at end of file120\ No newline at end of file
121\end{lstlisting}
132122
=== modified file 'manual/visualisation_and_diagnostics.tex'
--- manual/visualisation_and_diagnostics.tex 2012-09-21 14:30:52 +0000
+++ manual/visualisation_and_diagnostics.tex 2012-11-24 15:51:21 +0000
@@ -728,36 +728,25 @@
728728
729\subsubsection{fldecomp}729\subsubsection{fldecomp}
730\label{sec:fldecomp}730\label{sec:fldecomp}
731fldecomp is used to decompose a mesh into multiple regions, one per731
732process. In order to run fldecomp, if your mesh files have the base name732{\bf fldecomp will be removed in a future release of Fluidity.}
733\lstinline{foo}\ and you want to decompose into four parts, type:733
734flredecomp (section~\ref{sec:flredecomp}) is the recommended mesh decomposition tool but it cannot process Terreno meshes. fldecomp is used to decompose a Terreno mesh (section~\ref{sec:Terreno}) into multiple regions, one per
735process. In order to run fldecomp, if your Terreno mesh files have the base name
736\lstinline{foo}\ and you want to decompose the mesh into four parts, type:
734\begin{lstlisting}[language = Bash]737\begin{lstlisting}[language = Bash]
735fldecomp -n 4 -m mesh_format mesh_file738fldecomp -n 4 -t mesh_file
736\end{lstlisting}739\end{lstlisting}
737740
738Where:741Where:
739\begin{center}742\begin{center}
740 \begin{tabular}{lp{.8\textwidth}}743 \begin{tabular}{lp{.8\textwidth}}
741 \lstinline+mesh_file+ & is the base name of your mesh file(s). For744 \lstinline+mesh_file+ & is the base name of your mesh files. For
742 example, \lstinline+foo+ for \lstinline+foo.msh+ with Gmsh format, or745 example, \lstinline+foo+ for \lstinline+foo.face/node/ele+ in the triangle
743 \lstinline+foo.face/node/ele+ with triangle format.\\746 format generated by Terreno.
744 \lstinline+mesh_format+ & is the format of the mesh file you wish to
745 decompose. It can take two values: \lstinline+gmsh+ or
746 \lstinline+triangle+. If you omit the \lstinline+-m+ option,
747 \lstinline+fldecomp+ will default to \lstinline+triangle+.
748 \end{tabular}747 \end{tabular}
749\end{center}748\end{center}
750749
751For performance reasons, \lstinline[language=Bash]{fldecomp} supports only
752binary Gmsh files. These are generated by passing the \lstinline{-bin}\
753argument to Gmsh, for example:
754
755\begin{lstlisting}[language=bash]
756gmsh -3 -bin project.geo -o project.msh
757\end{lstlisting}
758
759This creates a 3D binary Gmsh mesh called \lstinline{project.msh} from the geometry file.
760
761%%%%%%%%%%%%%%%%%%%%%%%%% FLDIAGNOSTICS %%%%%%%%%%%%%%%%%%%%%%%%%%750%%%%%%%%%%%%%%%%%%%%%%%%% FLDIAGNOSTICS %%%%%%%%%%%%%%%%%%%%%%%%%%
762751
763\subsubsection{fldiagnostics}752\subsubsection{fldiagnostics}
@@ -793,10 +782,10 @@
793782
794\subsubsection{flredecomp}783\subsubsection{flredecomp}
795\label{sec:flredecomp}784\label{sec:flredecomp}
796flredecomp is a parallel tool that performs a re-decomposition of a Fluidity checkpoint.785flredecomp is a parallel tool that performs a decomposition of an initial mesh, or a re-decomposition of a Fluidity checkpoint.
797It is invoked as follows:786It is invoked as follows:
798\begin{lstlisting}[language=bash]787\begin{lstlisting}[language=bash]
799mpiexec -n [target number of processors] flredecomp \788mpiexec -n [maximum of input and target number of processors] flredecomp \
800 -i [input number of processors] \789 -i [input number of processors] \
801 -o [target number of processors] [input flml] [output flml]790 -o [target number of processors] [input flml] [output flml]
802\end{lstlisting}791\end{lstlisting}
803792
=== modified file 'ocean_forcing/Calendar.cpp'
--- ocean_forcing/Calendar.cpp 2010-03-26 23:20:56 +0000
+++ ocean_forcing/Calendar.cpp 2012-11-24 15:51:21 +0000
@@ -85,11 +85,11 @@
85 if(err==UT_ENOINIT){85 if(err==UT_ENOINIT){
86 cerr<<"ERROR ("<<__FILE__<<"): UDUNITS has not been initialized.\n";86 cerr<<"ERROR ("<<__FILE__<<"): UDUNITS has not been initialized.\n";
87 }else if(err==UT_EINVALID){87 }else if(err==UT_EINVALID){
88 cerr<<"ERROR ("<<__FILE__<<"): The unit argument is a null pointer.\n";88 cerr<<"ERROR ("<<__FILE__<<"): The _from_unit unit argument is a null pointer.\n";
89 }else if(err==UT_EUNKNOWN){89 }else if(err==UT_EUNKNOWN){
90 cerr<<"ERROR ("<<__FILE__<<"): The specification contains an unknown unit.\n";90 cerr<<"ERROR ("<<__FILE__<<"): The _from_unit specification contains an unknown unit.\n";
91 }else if(err==UT_ESYNTAX){91 }else if(err==UT_ESYNTAX){
92 cerr<<"ERROR ("<<__FILE__<<"): The specification contains a syntax error.\n";92 cerr<<"ERROR ("<<__FILE__<<"): The _from_unit specification contains a syntax error.\n";
93 }93 }
94 if(err)94 if(err)
95 exit(-1);95 exit(-1);
@@ -98,11 +98,11 @@
98 if(err==UT_ENOINIT){98 if(err==UT_ENOINIT){
99 cerr<<"ERROR ("<<__FILE__<<"): UDUNITS has not been initialized.\n";99 cerr<<"ERROR ("<<__FILE__<<"): UDUNITS has not been initialized.\n";
100 }else if(err==UT_EINVALID){100 }else if(err==UT_EINVALID){
101 cerr<<"ERROR ("<<__FILE__<<"): The unit argument is a null pointer.\n";101 cerr<<"ERROR ("<<__FILE__<<"): The _to_unit unit argument is a null pointer.\n";
102 }else if(err==UT_EUNKNOWN){102 }else if(err==UT_EUNKNOWN){
103 cerr<<"ERROR ("<<__FILE__<<"): The specification contains an unknown unit.\n";103 cerr<<"ERROR ("<<__FILE__<<"): The _to_unit specification contains an unknown unit.\n";
104 }else if(err==UT_ESYNTAX){104 }else if(err==UT_ESYNTAX){
105 cerr<<"ERROR ("<<__FILE__<<"): The specification contains a syntax error.\n";105 cerr<<"ERROR ("<<__FILE__<<"): The _to_unit specification contains a syntax error.\n";
106 }106 }
107 if(err)107 if(err)
108 exit(-1);108 exit(-1);
109109
=== modified file 'preprocessor/Populate_State.F90'
--- preprocessor/Populate_State.F90 2012-11-18 11:22:44 +0000
+++ preprocessor/Populate_State.F90 2012-11-24 15:51:21 +0000
@@ -232,6 +232,8 @@
232 call get_option("/geometry/quadrature/degree", quad_degree)232 call get_option("/geometry/quadrature/degree", quad_degree)
233 quad_family = get_quad_family()233 quad_family = get_quad_family()
234234
235 ! to make sure that the dimension is set even if MPI is not being used
236 call get_option('/geometry/dimension', dim)
235237
236 if (is_active_process) then238 if (is_active_process) then
237 select case (mesh_file_format)239 select case (mesh_file_format)
@@ -310,14 +312,21 @@
310 else312 else
311 mesh_dims(3)=0313 mesh_dims(3)=0
312 end if314 end if
315 ! The coordinate dimension is not the same as the mesh dimension
316 ! in the case of spherical shells, and needs to be broadcast as
317 ! well. And this needs to be here to allow for the special case
318 ! below
319 dim=position%dim
313 else320 else
314 ! this is a special case for a unit test with 1 inactive process321 ! this is a special case for a unit test with 1 inactive process
315 call get_option('/geometry/dimension', mesh_dims(1))322 call get_option('/geometry/dimension', mesh_dims(1))
316 mesh_dims(2)=mesh_dims(1)+1323 mesh_dims(2)=mesh_dims(1)+1
317 mesh_dims(3)=0324 mesh_dims(3)=0
325 dim = mesh_dims(1)
318 end if326 end if
319 end if327 end if
320 call MPI_bcast(mesh_dims, 3, getpinteger(), 0, MPI_COMM_FEMTOOLS, stat)328 call MPI_bcast(mesh_dims, 3, getpinteger(), 0, MPI_COMM_FEMTOOLS, stat)
329 call MPI_bcast(dim, 1, getpinteger(), 0, MPI_COMM_FEMTOOLS, stat)
321 end if330 end if
322331
323 332
@@ -326,14 +335,14 @@
326 ! see the comment in Global_Parameters. In this block, 335 ! see the comment in Global_Parameters. In this block,
327 ! we want to allocate an empty mesh and positions.336 ! we want to allocate an empty mesh and positions.
328337
329 dim=mesh_dims(1)338 mdim=mesh_dims(1)
330 loc=mesh_dims(2)339 loc=mesh_dims(2)
331 column_ids=mesh_dims(3)340 column_ids=mesh_dims(3)
332341
333 allocate(quad)342 allocate(quad)
334 allocate(shape)343 allocate(shape)
335 quad = make_quadrature(loc, dim, degree=quad_degree, family=quad_family)344 quad = make_quadrature(loc, mdim, degree=quad_degree, family=quad_family)
336 shape=make_element_shape(loc, dim, 1, quad)345 shape=make_element_shape(loc, mdim, 1, quad)
337 call allocate(mesh, nodes=0, elements=0, shape=shape, name="EmptyMesh")346 call allocate(mesh, nodes=0, elements=0, shape=shape, name="EmptyMesh")
338 call allocate(position, dim, mesh, "EmptyCoordinate")347 call allocate(position, dim, mesh, "EmptyCoordinate")
339 call add_faces(mesh)348 call add_faces(mesh)
340349
=== modified file 'tests/5material-droplet-parallel/5material-droplet-parallel.xml'
--- tests/5material-droplet-parallel/5material-droplet-parallel.xml 2012-06-28 08:23:27 +0000
+++ tests/5material-droplet-parallel/5material-droplet-parallel.xml 2012-11-24 15:51:21 +0000
@@ -5,7 +5,7 @@
5 <owner userid="cwilson"/>5 <owner userid="cwilson"/>
6 <tags>flml solidity parallel</tags>6 <tags>flml solidity parallel</tags>
7 <problem_definition length="medium" nprocs="1">7 <problem_definition length="medium" nprocs="1">
8 <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l 5material-droplet.flml</command_line>8 <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l 5material-droplet_flredecomp.flml</command_line>
9 </problem_definition> 9 </problem_definition>
10 <variables> 10 <variables>
11 <variable name="solvers_converged" language="python">11 <variable name="solvers_converged" language="python">
1212
=== modified file 'tests/5material-droplet-parallel/Makefile'
--- tests/5material-droplet-parallel/Makefile 2012-06-28 08:23:27 +0000
+++ tests/5material-droplet-parallel/Makefile 2012-11-24 15:51:21 +0000
@@ -1,9 +1,10 @@
1input: clean1input: clean
2 ../../bin/gmsh2triangle --2d src/square.msh2 ../../bin/gmsh2triangle --2d src/square.msh
3 ../../bin/fldecomp -n 2 square3 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l 5material-droplet 5material-droplet_flredecomp
44
5clean:5clean:
6 rm -rf *.halo *.stat *.vtu *.pvtu *.node *.ele *.edge *.log-0 *.err-0 *checkpoint *.convergence6 rm -rf *.halo *.stat *.vtu *.pvtu *.node *.ele *.edge *.log-0 *.err-0 *checkpoint *.convergence
7 rm -f *.err-? *.log-?7 rm -f *.err-? *.log-?
8 rm -rf 5material-droplet_? 5material-droplet_?? \8 rm -rf 5material-droplet_? 5material-droplet_?? \
9 matrixdump matrixdump.info9 matrixdump matrixdump.info
10 rm -rf *flredecomp*
1011
=== modified file 'tests/Stokes_square_convection_1e4_p1p1_parallel/Makefile'
--- tests/Stokes_square_convection_1e4_p1p1_parallel/Makefile 2011-10-27 22:51:21 +0000
+++ tests/Stokes_square_convection_1e4_p1p1_parallel/Makefile 2012-11-24 15:51:21 +0000
@@ -3,21 +3,16 @@
3FLUIDITY = dfluidity3FLUIDITY = dfluidity
4MESH = square-structured-linear4MESH = square-structured-linear
5MODEL = Stokes-square-convection-1e4-p1p15MODEL = Stokes-square-convection-1e4-p1p1
6NP = 2
76
8default: input7default: input
98
10input: src/$(MESH).edge src/$(MESH).ele src/$(MESH).node clean9input: src/$(MESH).edge src/$(MESH).ele src/$(MESH).node clean
11 cp src/$(MESH).edge src/$(MESH).ele src/$(MESH).node .10 cp src/$(MESH).edge src/$(MESH).ele src/$(MESH).node .
1211
13ifdef NP
14 fldecomp -n $(NP) -v $(MESH) > decomp.log 2> decomp_err.log
15endif
16
17clean: clean-mesh clean-run-debug12clean: clean-mesh clean-run-debug
18clean-mesh:13clean-mesh:
19 rm -f $(MESH).ele $(MESH).face $(MESH).node $(MESH).edge14 rm -f $(MESH).ele $(MESH).face $(MESH).node $(MESH).edge
20 rm -f $(MESH)_?*.ele $(MESH)_?*.edge $(MESH)_?*.face $(MESH)_?*.halo $(MESH)_?*.node decomp.log decomp_err.log15 rm -f $(MESH)_?*.ele $(MESH)_?*.edge $(MESH)_?*.face $(MESH)_?*.halo $(MESH)_?*.node
21clean-run:16clean-run:
22 rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*.vtu17 rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*.vtu
23 rm -f $(FLMLMODEL).detectors.dat $(FLMLMODEL).detectors $(FLMLMODEL).stat tmpf*18 rm -f $(FLMLMODEL).detectors.dat $(FLMLMODEL).detectors $(FLMLMODEL).stat tmpf*
@@ -28,6 +23,7 @@
28 rm -f $(FLMLMODEL)_?*_?*_checkpoint.pvtu $(FLMLMODEL)_?*_?*_checkpoint.vtu23 rm -f $(FLMLMODEL)_?*_?*_checkpoint.pvtu $(FLMLMODEL)_?*_?*_checkpoint.vtu
29 rm -f $(FLMLMODEL)_?*_checkpoint.ele $(FLMLMODEL)_?*_checkpoint.face $(FLMLMODEL)_?*_checkpoint.node24 rm -f $(FLMLMODEL)_?*_checkpoint.ele $(FLMLMODEL)_?*_checkpoint.face $(FLMLMODEL)_?*_checkpoint.node
30 rm -f $(FLMLMODEL)_?*_checkpoint.vtu25 rm -f $(FLMLMODEL)_?*_checkpoint.vtu
26 rm -rf *flredecomp*
31clean-run-debug: clean-run27clean-run-debug: clean-run
32 rm -f adapted_mesh_?*.vtu bounding_box_?*_?*.vtu final_metric_?*.vtu gmon.out gradation_metric_?*.vtu interpolation_metric_final_?*.vtu interpolation_metric_hessian_?*_?*.vtu interpolation_metric_merge_?*_?*.vtu interpolation_metric_metric_?*_?*.vtu metric_input_?*_?*.vtu28 rm -f adapted_mesh_?*.vtu bounding_box_?*_?*.vtu final_metric_?*.vtu gmon.out gradation_metric_?*.vtu interpolation_metric_final_?*.vtu interpolation_metric_hessian_?*_?*.vtu interpolation_metric_merge_?*_?*.vtu interpolation_metric_metric_?*_?*.vtu metric_input_?*_?*.vtu
33 rm -rf $(FLMLMODEL)_?29 rm -rf $(FLMLMODEL)_?
3430
=== modified file 'tests/Stokes_square_convection_1e4_p1p1_parallel/Stokes_square_convection_1e4_p1p1_parallel.xml'
--- tests/Stokes_square_convection_1e4_p1p1_parallel/Stokes_square_convection_1e4_p1p1_parallel.xml 2012-06-28 08:23:27 +0000
+++ tests/Stokes_square_convection_1e4_p1p1_parallel/Stokes_square_convection_1e4_p1p1_parallel.xml 2012-11-24 15:51:21 +0000
@@ -6,7 +6,8 @@
6 <tags>flml parallel</tags>6 <tags>flml parallel</tags>
77
8 <problem_definition length="medium" nprocs="1">8 <problem_definition length="medium" nprocs="1">
9 <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l Stokes-square-convection-1e4-p1p1-parallel.flml</command_line>9 <command_line>mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l Stokes-square-convection-1e4-p1p1-parallel Stokes-square-convection-1e4-p1p1-parallel_flredecomp &amp;&amp;
10mpiexec -np 2 ../../bin/fluidity -v2 -l Stokes-square-convection-1e4-p1p1-parallel_flredecomp.flml</command_line>
10 </problem_definition>11 </problem_definition>
1112
12<variables> 13<variables>
1314
=== modified file 'tests/Stokes_square_convection_1e4_p2p1_parallel/Makefile'
--- tests/Stokes_square_convection_1e4_p2p1_parallel/Makefile 2011-10-27 22:51:21 +0000
+++ tests/Stokes_square_convection_1e4_p2p1_parallel/Makefile 2012-11-24 15:51:21 +0000
@@ -3,21 +3,16 @@
3FLUIDITY = fluidity3FLUIDITY = fluidity
4MESH = square-structured-linear4MESH = square-structured-linear
5MODEL = Stokes-square-convection-1e4-parallel-p2p15MODEL = Stokes-square-convection-1e4-parallel-p2p1
6NP = 2
76
8default: input7default: input
98
10input: src/$(MESH).edge src/$(MESH).ele src/$(MESH).node clean9input: src/$(MESH).edge src/$(MESH).ele src/$(MESH).node clean
11 cp src/$(MESH).edge src/$(MESH).ele src/$(MESH).node .10 cp src/$(MESH).edge src/$(MESH).ele src/$(MESH).node .
1211
13ifdef NP
14 fldecomp -n $(NP) -v $(MESH) > decomp.log 2> decomp_err.log
15endif
16
17clean: clean-mesh clean-run-debug12clean: clean-mesh clean-run-debug
18clean-mesh:13clean-mesh:
19 rm -f $(MESH).ele $(MESH).face $(MESH).node $(MESH).edge14 rm -f $(MESH).ele $(MESH).face $(MESH).node $(MESH).edge
20 rm -f $(MESH)_?*.ele $(MESH)_?*.edge $(MESH)_?*.face $(MESH)_?*.halo $(MESH)_?*.node decomp.log decomp_err.log15 rm -f $(MESH)_?*.ele $(MESH)_?*.edge $(MESH)_?*.face $(MESH)_?*.halo $(MESH)_?*.node
21clean-run:16clean-run:
22 rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*.vtu17 rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*.vtu
23 rm -f $(FLMLMODEL).detectors $(FLMLMODEL).stat tmpf*18 rm -f $(FLMLMODEL).detectors $(FLMLMODEL).stat tmpf*
@@ -29,6 +24,7 @@
29 rm -f $(FLMLMODEL)_?*_checkpoint.ele $(FLMLMODEL)_?*_checkpoint.face $(FLMLMODEL)_?*_checkpoint.node24 rm -f $(FLMLMODEL)_?*_checkpoint.ele $(FLMLMODEL)_?*_checkpoint.face $(FLMLMODEL)_?*_checkpoint.node
30 rm -f $(FLMLMODEL)_?*_checkpoint.vtu25 rm -f $(FLMLMODEL)_?*_checkpoint.vtu
31 rm -f -R $(FLMLMODEL)_* rm $(FLMLMODEL)*.dat26 rm -f -R $(FLMLMODEL)_* rm $(FLMLMODEL)*.dat
27 rm -rf *flredecomp*
32clean-run-debug: clean-run28clean-run-debug: clean-run
33 rm -f adapted_mesh_?*.vtu bounding_box_?*_?*.vtu final_metric_?*.vtu gmon.out gradation_metric_?*.vtu interpolation_metric_final_?*.vtu interpolation_metric_hessian_?*_?*.vtu interpolation_metric_merge_?*_?*.vtu interpolation_metric_metric_?*_?*.vtu metric_input_?*_?*.vtu29 rm -f adapted_mesh_?*.vtu bounding_box_?*_?*.vtu final_metric_?*.vtu gmon.out gradation_metric_?*.vtu interpolation_metric_final_?*.vtu interpolation_metric_hessian_?*_?*.vtu interpolation_metric_merge_?*_?*.vtu interpolation_metric_metric_?*_?*.vtu metric_input_?*_?*.vtu
3430
3531
=== modified file 'tests/Stokes_square_convection_1e4_p2p1_parallel/Stokes_square_convection_1e4_p2p1_parallel.xml'
--- tests/Stokes_square_convection_1e4_p2p1_parallel/Stokes_square_convection_1e4_p2p1_parallel.xml 2012-06-28 08:23:27 +0000
+++ tests/Stokes_square_convection_1e4_p2p1_parallel/Stokes_square_convection_1e4_p2p1_parallel.xml 2012-11-24 15:51:21 +0000
@@ -6,7 +6,8 @@
6 <tags>flml parallel</tags>6 <tags>flml parallel</tags>
77
8 <problem_definition length="medium" nprocs="1">8 <problem_definition length="medium" nprocs="1">
9 <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l Stokes-square-convection-1e4-p2p1-parallel.flml</command_line>9 <command_line>mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l Stokes-square-convection-1e4-p2p1-parallel Stokes-square-convection-1e4-p2p1-parallel_flredecomp &amp;&amp;
10mpiexec -np 2 ../../bin/fluidity -v2 -l Stokes-square-convection-1e4-p2p1-parallel_flredecomp.flml</command_line>
10 </problem_definition>11 </problem_definition>
1112
12<variables> 13<variables>
1314
=== modified file 'tests/backward_facing_step_2d_zoltan_sam/Makefile'
--- tests/backward_facing_step_2d_zoltan_sam/Makefile 2012-06-28 08:23:27 +0000
+++ tests/backward_facing_step_2d_zoltan_sam/Makefile 2012-11-24 15:51:21 +0000
@@ -1,6 +1,6 @@
1input:1input:
2 gmsh -2 -o unstructured.msh src/unstructured.geo && ../../bin/gmsh2triangle --2d unstructured.msh2 gmsh -2 -o unstructured.msh src/unstructured.geo && ../../bin/gmsh2triangle --2d unstructured.msh
3 ../../bin/fldecomp -n 2 unstructured3 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l backward_facing_step_2d backward_facing_step_2d_flredecomp
4 cp -r sam_output/* .4 cp -r sam_output/* .
55
6clean:6clean:
@@ -8,3 +8,4 @@
8 rm -rf backward_facing_step_2d_?8 rm -rf backward_facing_step_2d_?
9 rm -rf backward_facing_step_2d_sam_9* \9 rm -rf backward_facing_step_2d_sam_9* \
10 matrixdump matrixdump.info10 matrixdump matrixdump.info
11 rm -rf *flredecomp*
1112
=== modified file 'tests/backward_facing_step_2d_zoltan_sam/backward_facing_step_2d_zoltan_sam.xml'
--- tests/backward_facing_step_2d_zoltan_sam/backward_facing_step_2d_zoltan_sam.xml 2012-06-28 08:23:27 +0000
+++ tests/backward_facing_step_2d_zoltan_sam/backward_facing_step_2d_zoltan_sam.xml 2012-11-24 15:51:21 +0000
@@ -6,7 +6,7 @@
6 <owner userid="jhill1"/>6 <owner userid="jhill1"/>
7 <tags>flml zoltan parallel 2dadapt</tags>7 <tags>flml zoltan parallel 2dadapt</tags>
8 <problem_definition length="medium" nprocs="1">8 <problem_definition length="medium" nprocs="1">
9 <command_line>mpiexec -n 2 ../../bin/fluidity backward_facing_step_2d.flml</command_line>9 <command_line>mpiexec -n 2 ../../bin/fluidity backward_facing_step_2d_flredecomp.flml</command_line>
10 </problem_definition>10 </problem_definition>
11 <variables>11 <variables>
12 <variable name="solvers_converged" language="python">12 <variable name="solvers_converged" language="python">
1313
=== modified file 'tests/biology_6_component_parallel/Makefile'
--- tests/biology_6_component_parallel/Makefile 2012-06-28 08:23:27 +0000
+++ tests/biology_6_component_parallel/Makefile 2012-11-24 15:51:21 +0000
@@ -1,6 +1,6 @@
1input: clean1input: clean
2 ../../bin/create_aligned_mesh box 50 50 -- -50 10 10 102 ../../bin/create_aligned_mesh box 50 50 -- -50 10 10 10
3 ../../bin/fldecomp -n 2 box3 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l biology_conservation_parallel biology_conservation_parallel_flredecomp
44
5clean:5clean:
6 # serial6 # serial
@@ -11,3 +11,4 @@
11 rm -rf biology_conservation_parallel_*11 rm -rf biology_conservation_parallel_*
12 rm -rf *.halo \12 rm -rf *.halo \
13 matrixdump matrixdump.info13 matrixdump matrixdump.info
14 rm -rf *flredecomp*
1415
=== modified file 'tests/biology_6_component_parallel/biology_6_component_parallel.xml'
--- tests/biology_6_component_parallel/biology_6_component_parallel.xml 2012-06-28 08:23:27 +0000
+++ tests/biology_6_component_parallel/biology_6_component_parallel.xml 2012-11-24 15:51:21 +0000
@@ -5,7 +5,7 @@
5 <owner userid="jhill1"/>5 <owner userid="jhill1"/>
6 <tags>flml biology parallel</tags>6 <tags>flml biology parallel</tags>
7 <problem_definition length="short" nprocs="1">7 <problem_definition length="short" nprocs="1">
8 <command_line>mpiexec -n 2 ../../bin/fluidity biology_conservation_parallel.flml; fluidity biology_conservation.flml; </command_line>8 <command_line>mpiexec -n 2 ../../bin/fluidity biology_conservation_parallel_flredecomp.flml; fluidity biology_conservation.flml; </command_line>
9 <!-- PZNDAC model running in a water column not solving for any physics. No sinking of detritus, so everything conserved -->9 <!-- PZNDAC model running in a water column not solving for any physics. No sinking of detritus, so everything conserved -->
10 </problem_definition>10 </problem_definition>
11 <variables>11 <variables>
1212
=== modified file 'tests/circle-2d-drag-zoltan/Makefile'
--- tests/circle-2d-drag-zoltan/Makefile 2012-06-28 08:23:27 +0000
+++ tests/circle-2d-drag-zoltan/Makefile 2012-11-24 15:51:21 +0000
@@ -1,9 +1,11 @@
1input: clean1input: clean
2 ../../bin/gmsh2triangle -2 src/circle-serial.msh2 ../../bin/gmsh2triangle -2 src/circle-serial.msh
3 ../../bin/gmsh2triangle -2 src/circle-parallel.msh3 ../../bin/gmsh2triangle -2 src/circle-parallel.msh
4 ../../bin/fldecomp -n 3 circle-parallel4 mpiexec -n 3 ../../bin/flredecomp -i 1 -o 3 -v -l circle-2d-drag-parallel circle-2d-drag-parallel_flredecomp
5 mpiexec -n 3 ../../bin/flredecomp -i 1 -o 3 -v -l circle-2d-drag-parallel-adaptive circle-2d-drag-parallel-adaptive_flredecomp
56
6clean:7clean:
7 rm -f *.halo *.ele *.edge *.face *.node *.poly *.vtu *.pvtu *.s *.d.* *.stat *.s *.log-0 *.err-08 rm -f *.halo *.ele *.edge *.face *.node *.poly *.vtu *.pvtu *.s *.d.* *.stat *.s *.log-0 *.err-0
8 rm -rf circle-2d-drag-parallel_? circle-2d-drag-parallel-adaptive_? \9 rm -rf circle-2d-drag-parallel_? circle-2d-drag-parallel-adaptive_? \
9 matrixdump matrixdump.info10 matrixdump matrixdump.info
11 rm -rf *flredecomp*
1012
=== modified file 'tests/circle-2d-drag-zoltan/circle-2d-drag-zoltan.xml'
--- tests/circle-2d-drag-zoltan/circle-2d-drag-zoltan.xml 2012-06-28 08:23:27 +0000
+++ tests/circle-2d-drag-zoltan/circle-2d-drag-zoltan.xml 2012-11-24 15:51:21 +0000
@@ -8,8 +8,8 @@
8 <tags>flml zoltan parallel 2dadapt</tags>8 <tags>flml zoltan parallel 2dadapt</tags>
9 <problem_definition length="medium" nprocs="1">9 <problem_definition length="medium" nprocs="1">
10 <command_line>fluidity circle-2d-drag-serial.flml;10 <command_line>fluidity circle-2d-drag-serial.flml;
11 mpiexec -n 3 ../../bin/fluidity circle-2d-drag-parallel.flml;11 mpiexec -n 3 ../../bin/fluidity circle-2d-drag-parallel_flredecomp.flml;
12 mpiexec -n 3 ../../bin/fluidity circle-2d-drag-parallel-adaptive.flml;12 mpiexec -n 3 ../../bin/fluidity circle-2d-drag-parallel-adaptive_flredecomp.flml;
13 </command_line>13 </command_line>
14 </problem_definition>14 </problem_definition>
15 <variables>15 <variables>
1616
=== modified file 'tests/column-parallel/Makefile'
--- tests/column-parallel/Makefile 2012-09-19 10:31:15 +0000
+++ tests/column-parallel/Makefile 2012-11-24 15:51:21 +0000
@@ -1,8 +1,8 @@
1input: clean1input: clean
2 gmsh -3 -o column.msh src/column.geo2 gmsh -3 -o column.msh src/column.geo
3 ../../bin/gmsh2triangle column.msh3 ../../bin/gmsh2triangle column.msh
4 ../../bin/fldecomp -n 2 column4 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l column-parallel column-parallel_flredecomp
55
6clean: 6clean:
7 rm -f *.ele *.edge *.msh *.node *.face *.poly *.pvtu *.vtu *.s *.stat *.log-? *.err-? matrixdump* *log *err7 rm -f *.ele *.edge *.msh *.node *.face *.poly *.pvtu *.vtu *.s *.stat *.log-* *.err-* matrixdump* *log *err
8 rm -rf column-parallel_* *.halo8 rm -rf column-parallel_* *.halo
99
=== modified file 'tests/column-parallel/column-parallel.xml'
--- tests/column-parallel/column-parallel.xml 2012-06-28 08:23:27 +0000
+++ tests/column-parallel/column-parallel.xml 2012-11-24 15:51:21 +0000
@@ -5,7 +5,7 @@
5 <owner userid="jhill1"/>5 <owner userid="jhill1"/>
6 <tags>flml</tags>6 <tags>flml</tags>
7 <problem_definition length="short" nprocs="1">7 <problem_definition length="short" nprocs="1">
8 <command_line>mpiexec -n 2 ../../bin/fluidity -v1 -l column-parallel.flml </command_line>8 <command_line>mpiexec -n 2 ../../bin/fluidity -v1 -l column-parallel_flredecomp.flml </command_line>
9 </problem_definition>9 </problem_definition>
10 <variables>10 <variables>
11 <variable name="solvers_converged" language="python">11 <variable name="solvers_converged" language="python">
1212
=== modified file 'tests/darcy_p0p1_test_cty_cv_pressBCinlet_advect_tracer_p0_steptwochannel/darcy_p0p1_test_cty_cv_pressBCinlet_advect_tracer_p0_steptwochannel.xml'
--- tests/darcy_p0p1_test_cty_cv_pressBCinlet_advect_tracer_p0_steptwochannel/darcy_p0p1_test_cty_cv_pressBCinlet_advect_tracer_p0_steptwochannel.xml 2012-02-24 07:39:50 +0000
+++ tests/darcy_p0p1_test_cty_cv_pressBCinlet_advect_tracer_p0_steptwochannel/darcy_p0p1_test_cty_cv_pressBCinlet_advect_tracer_p0_steptwochannel.xml 2012-11-24 15:51:21 +0000
@@ -68,10 +68,10 @@
68print 'Solution relative error: ',abs((integral_tracer_cons_exp_weakbc_upwind_2d - analytic_int)/analytic_int)68print 'Solution relative error: ',abs((integral_tracer_cons_exp_weakbc_upwind_2d - analytic_int)/analytic_int)
69assert abs((integral_tracer_cons_exp_weakbc_upwind_2d - analytic_int)/analytic_int) &lt; 8.0e-0369assert abs((integral_tracer_cons_exp_weakbc_upwind_2d - analytic_int)/analytic_int) &lt; 8.0e-03
70 </test>70 </test>
71 <test name="Max of tracer_cons_exp_weakbc_upwind for 2d should be 1.0, check with tolerance 1.0e-08" language="python">71 <test name="Max of tracer_cons_exp_weakbc_upwind for 2d should be 1.0, check with tolerance 1.1e-08" language="python">
72analytic_int = 1.072analytic_int = 1.0
73print 'Solution relative error: ',abs((max_tracer_cons_exp_weakbc_upwind_2d - analytic_int)/analytic_int)73print 'Solution relative error: ',abs((max_tracer_cons_exp_weakbc_upwind_2d - analytic_int)/analytic_int)
74assert abs((max_tracer_cons_exp_weakbc_upwind_2d - analytic_int)/analytic_int) &lt; 1.0e-0874assert abs((max_tracer_cons_exp_weakbc_upwind_2d - analytic_int)/analytic_int) &lt; 1.1e-08
75 </test>75 </test>
76 <test name="Min of tracer_cons_exp_weakbc_upwind for 2d should be 0.0, check with tolerance 6.0e-04" language="python">76 <test name="Min of tracer_cons_exp_weakbc_upwind for 2d should be 0.0, check with tolerance 6.0e-04" language="python">
77analytic_int = 0.077analytic_int = 0.0
7878
=== modified file 'tests/detectors_mesh_movement_parallel/Makefile'
--- tests/detectors_mesh_movement_parallel/Makefile 2011-10-27 22:51:21 +0000
+++ tests/detectors_mesh_movement_parallel/Makefile 2012-11-24 15:51:21 +0000
@@ -2,7 +2,7 @@
22
3input: clean3input: clean
4 ../../bin/gmsh2triangle --2d src/square.msh4 ../../bin/gmsh2triangle --2d src/square.msh
5 ../../bin/fldecomp -n 2 -v square5 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l detectors detectors_flredecomp
66
7clean: clean-mesh clean-run7clean: clean-mesh clean-run
8clean-mesh:8clean-mesh:
@@ -12,3 +12,4 @@
12 rm -f matrixdump matrixdump.info12 rm -f matrixdump matrixdump.info
13 rm -f fluidity.err-* fluidity.log-*13 rm -f fluidity.err-* fluidity.log-*
14 rm -rf detectors_?14 rm -rf detectors_?
15 rm -rf *flredecomp*
1516
=== modified file 'tests/detectors_mesh_movement_parallel/detectors_mesh_movement_parallel.xml'
--- tests/detectors_mesh_movement_parallel/detectors_mesh_movement_parallel.xml 2012-06-28 08:23:27 +0000
+++ tests/detectors_mesh_movement_parallel/detectors_mesh_movement_parallel.xml 2012-11-24 15:51:21 +0000
@@ -4,7 +4,7 @@
4 <owner userid="mlange"/>4 <owner userid="mlange"/>
5 <tags>flml parallel</tags>5 <tags>flml parallel</tags>
6 <problem_definition length="short" nprocs="1">6 <problem_definition length="short" nprocs="1">
7 <command_line>mpiexec -n 2 ../../bin/fluidity -v2 -l detectors.flml</command_line>7 <command_line>mpiexec -n 2 ../../bin/fluidity -v2 -l detectors_flredecomp.flml</command_line>
8 </problem_definition>8 </problem_definition>
9 <variables>9 <variables>
10 <variable name="solvers_converged" language="python">10 <variable name="solvers_converged" language="python">
1111
=== modified file 'tests/detectors_parallel_adaptivity/Makefile'
--- tests/detectors_parallel_adaptivity/Makefile 2011-10-21 10:05:25 +0000
+++ tests/detectors_parallel_adaptivity/Makefile 2012-11-24 15:51:21 +0000
@@ -2,7 +2,7 @@
22
3input: clean3input: clean
4 ../../bin/gmsh2triangle --2d src/square.msh4 ../../bin/gmsh2triangle --2d src/square.msh
5 ../../bin/fldecomp -n 2 -v square5 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l detectors detectors_flredecomp
66
7clean: clean-mesh clean-run7clean: clean-mesh clean-run
8clean-mesh:8clean-mesh:
@@ -12,3 +12,4 @@
12 rm -f matrixdump matrixdump.info12 rm -f matrixdump matrixdump.info
13 rm -f fluidity.err-* fluidity.log-*13 rm -f fluidity.err-* fluidity.log-*
14 rm -rf detectors_[0-4]*14 rm -rf detectors_[0-4]*
15 rm -rf *flredecomp*
1516
=== modified file 'tests/detectors_parallel_adaptivity/detectors_parallel_adaptivity.xml'
--- tests/detectors_parallel_adaptivity/detectors_parallel_adaptivity.xml 2012-06-28 08:23:27 +0000
+++ tests/detectors_parallel_adaptivity/detectors_parallel_adaptivity.xml 2012-11-24 15:51:21 +0000
@@ -4,7 +4,7 @@
4 <owner userid="jhill1"/>4 <owner userid="jhill1"/>
5 <tags>flml parallel</tags>5 <tags>flml parallel</tags>
6 <problem_definition length="short" nprocs="1">6 <problem_definition length="short" nprocs="1">
7 <command_line>mpiexec -n 2 ../../bin/fluidity -v2 -l detectors.flml</command_line>7 <command_line>mpiexec -n 2 ../../bin/fluidity -v2 -l detectors_flredecomp.flml</command_line>
8 </problem_definition>8 </problem_definition>
9 <variables>9 <variables>
10 <variable name="solvers_converged" language="python">10 <variable name="solvers_converged" language="python">
1111
=== modified file 'tests/diffusion_2d_p0_adaptive_parallel/Makefile'
--- tests/diffusion_2d_p0_adaptive_parallel/Makefile 2012-06-28 08:23:27 +0000
+++ tests/diffusion_2d_p0_adaptive_parallel/Makefile 2012-11-24 15:51:21 +0000
@@ -1,8 +1,9 @@
1input: clean1input: clean
2 ../../bin/gmsh2triangle --2d src/square.msh2 ../../bin/gmsh2triangle --2d src/square.msh
3 ../../bin/fldecomp -n 3 square3 mpiexec -n 3 ../../bin/flredecomp -i 1 -o 3 -v -l heat heat_flredecomp
44
5clean:5clean:
6 rm -f *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu fluidity.* *.s *.d.1 *.stat *detectors*6 rm -f *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu fluidity.* *.s *.d.1 *.stat *detectors*
7 rm -rf heat_? \7 rm -rf heat_? \
8 matrixdump matrixdump.info8 matrixdump matrixdump.info
9 rm -rf *flredecomp*
910
=== modified file 'tests/diffusion_2d_p0_adaptive_parallel/diffusion_2d_p0_adaptive_parallel.xml'
--- tests/diffusion_2d_p0_adaptive_parallel/diffusion_2d_p0_adaptive_parallel.xml 2012-06-28 08:23:27 +0000
+++ tests/diffusion_2d_p0_adaptive_parallel/diffusion_2d_p0_adaptive_parallel.xml 2012-11-24 15:51:21 +0000
@@ -5,7 +5,7 @@
5 <owner userid="cwilson"/>5 <owner userid="cwilson"/>
6 <tags>flml zoltan parallel 2dadapt</tags>6 <tags>flml zoltan parallel 2dadapt</tags>
7 <problem_definition length="medium" nprocs="1">7 <problem_definition length="medium" nprocs="1">
8 <command_line>mpiexec -np 3 fluidity -v2 -l heat.flml </command_line>8 <command_line>mpiexec -np 3 fluidity -v2 -l heat_flredecomp.flml </command_line>
9 <!-- Two dimensional diffusion only problem. -->9 <!-- Two dimensional diffusion only problem. -->
10 </problem_definition>10 </problem_definition>
11 <variables>11 <variables>
1212
=== modified file 'tests/diffusion_2d_p0_parallel/Makefile'
--- tests/diffusion_2d_p0_parallel/Makefile 2012-06-28 08:23:27 +0000
+++ tests/diffusion_2d_p0_parallel/Makefile 2012-11-24 15:51:21 +0000
@@ -1,7 +1,8 @@
1input: clean1input: clean
2 ../../bin/gmsh2triangle --2d src/square.msh2 ../../bin/gmsh2triangle --2d src/square.msh
3 ../../bin/fldecomp -n 2 square3 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l heat heat_flredecomp
44
5clean:5clean:
6 rm -fr *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu fluidity.* *.s *.d.1 *.stat heat_[0-9]* \6 rm -fr *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu fluidity.* *.s *.d.1 *.stat heat_[0-9]* \
7 matrixdump matrixdump.info7 matrixdump matrixdump.info
8 rm -rf *flredecomp*
89
=== modified file 'tests/diffusion_2d_p0_parallel/diffusion_2d_p0_parallel.xml'
--- tests/diffusion_2d_p0_parallel/diffusion_2d_p0_parallel.xml 2012-06-28 08:23:27 +0000
+++ tests/diffusion_2d_p0_parallel/diffusion_2d_p0_parallel.xml 2012-11-24 15:51:21 +0000
@@ -5,7 +5,7 @@
5 <owner userid="cwilson"/>5 <owner userid="cwilson"/>
6 <tags>flml parallel</tags>6 <tags>flml parallel</tags>
7 <problem_definition length="short" nprocs="1">7 <problem_definition length="short" nprocs="1">
8 <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l heat.flml </command_line>8 <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l heat_flredecomp.flml </command_line>
9 <!-- Two dimensional diffusion only problem. -->9 <!-- Two dimensional diffusion only problem. -->
10 </problem_definition>10 </problem_definition>
11 <variables>11 <variables>
1212
=== added directory 'tests/fldecomp'
=== removed directory 'tests/fldecomp'
=== added file 'tests/fldecomp/Makefile'
--- tests/fldecomp/Makefile 1970-01-01 00:00:00 +0000
+++ tests/fldecomp/Makefile 2012-11-24 15:51:21 +0000
@@ -0,0 +1,11 @@
1default: input
2
3input: src/cube.tar.bz2
4 tar -xvjf src/cube.tar.bz2
5
6clean: clean-mesh clean-run
7clean-mesh:
8 rm -f cube.ele cube.face cube.node
9clean-run:
10 rm -f cube_?*.ele cube_?*.face cube_?*.halo cube_?*.node
11 rm -f fldecomp.log
012
=== removed file 'tests/fldecomp/Makefile'
--- tests/fldecomp/Makefile 2009-12-16 14:11:47 +0000
+++ tests/fldecomp/Makefile 1970-01-01 00:00:00 +0000
@@ -1,11 +0,0 @@
1default: input
2
3input: src/cube.tar.bz2
4 tar -xvjf src/cube.tar.bz2
5
6clean: clean-mesh clean-run
7clean-mesh:
8 rm -f cube.ele cube.face cube.node
9clean-run:
10 rm -f cube_?*.ele cube_?*.face cube_?*.halo cube_?*.node
11 rm -f fldecomp.log
120
=== added file 'tests/fldecomp/fldecomp.xml'
--- tests/fldecomp/fldecomp.xml 1970-01-01 00:00:00 +0000
+++ tests/fldecomp/fldecomp.xml 2012-11-24 15:51:21 +0000
@@ -0,0 +1,27 @@
1<?xml version = "1.0" encoding = "UTF-8" ?>
2<testproblem>
3 <name>fldecomp</name>
4 <owner userid="ggorman"/>
5 <problem_definition length = "short" nprocs = "1">
6 <command_line>rm -f fldecomp.log; make clean-run; fldecomp -n 4 -k -v cube > fldecomp.log</command_line>
7 </problem_definition>
8 <variables>
9 <variable name = "partitions" language = "python">
10import fluidity.diagnostics.triangletools as triangletools
11partitions = []
12for i in range(4):
13 partitions.append(triangletools.ReadTriangle("cube_" + str(i)))
14 </variable>
15 </variables>
16 <pass_tests>
17 <test name = "Equal sized partitions (owned nodes)" language = "python">
18import fluidity_tools
19nodeCounts = []
20for partition in partitions:
21 nodeCounts.append(partition.GetNOwnedNodes())
22fluidity_tools.compare_variables([float(nodeCount) for nodeCount in nodeCounts[1:]], [float(nodeCounts[0]) for i in range(len(nodeCounts) - 1)], 0.075)
23 </test>
24 </pass_tests>
25 <warn_tests>
26 </warn_tests>
27</testproblem>
028
=== removed file 'tests/fldecomp/fldecomp.xml'
--- tests/fldecomp/fldecomp.xml 2011-10-21 10:05:25 +0000
+++ tests/fldecomp/fldecomp.xml 1970-01-01 00:00:00 +0000
@@ -1,27 +0,0 @@
1<?xml version = "1.0" encoding = "UTF-8" ?>
2<testproblem>
3 <name>fldecomp</name>
4 <owner userid="ggorman"/>
5 <problem_definition length = "short" nprocs = "1">
6 <command_line>rm -f fldecomp.log; make clean-run; fldecomp -n 4 -k -v cube > fldecomp.log</command_line>
7 </problem_definition>
8 <variables>
9 <variable name = "partitions" language = "python">
10import fluidity.diagnostics.triangletools as triangletools
11partitions = []
12for i in range(4):
13 partitions.append(triangletools.ReadTriangle("cube_" + str(i)))
14 </variable>
15 </variables>
16 <pass_tests>
17 <test name = "Equal sized partitions (owned nodes)" language = "python">
18import fluidity_tools
19nodeCounts = []
20for partition in partitions:
21 nodeCounts.append(partition.GetNOwnedNodes())
22fluidity_tools.compare_variables([float(nodeCount) for nodeCount in nodeCounts[1:]], [float(nodeCounts[0]) for i in range(len(nodeCounts) - 1)], 0.075)
23 </test>
24 </pass_tests>
25 <warn_tests>
26 </warn_tests>
27</testproblem>
280
=== added directory 'tests/fldecomp/src'
=== removed directory 'tests/fldecomp/src'
=== added file 'tests/fldecomp/src/cube.tar.bz2'
29Binary files tests/fldecomp/src/cube.tar.bz2 1970-01-01 00:00:00 +0000 and tests/fldecomp/src/cube.tar.bz2 2012-11-24 15:51:21 +0000 differ1Binary files tests/fldecomp/src/cube.tar.bz2 1970-01-01 00:00:00 +0000 and tests/fldecomp/src/cube.tar.bz2 2012-11-24 15:51:21 +0000 differ
=== removed file 'tests/fldecomp/src/cube.tar.bz2'
30Binary files tests/fldecomp/src/cube.tar.bz2 2009-12-16 14:11:47 +0000 and tests/fldecomp/src/cube.tar.bz2 1970-01-01 00:00:00 +0000 differ2Binary files tests/fldecomp/src/cube.tar.bz2 2009-12-16 14:11:47 +0000 and tests/fldecomp/src/cube.tar.bz2 1970-01-01 00:00:00 +0000 differ
=== added directory 'tests/fldecomp_1d'
=== removed directory 'tests/fldecomp_1d'
=== added file 'tests/fldecomp_1d/Makefile'
--- tests/fldecomp_1d/Makefile 1970-01-01 00:00:00 +0000
+++ tests/fldecomp_1d/Makefile 2012-11-24 15:51:21 +0000
@@ -0,0 +1,11 @@
1default: input
2
3input: src/line.tar.bz2
4 tar -xvjf src/line.tar.bz2
5
6clean: clean-mesh clean-run
7clean-mesh:
8 rm -f line.bound line.ele line.node
9clean-run:
10 rm -f line_?*.bound line_?*.ele line_?*.halo line_?*.node
11 rm -f *.log *.err *.log-* *.err-*
012
=== removed file 'tests/fldecomp_1d/Makefile'
--- tests/fldecomp_1d/Makefile 2009-12-16 14:11:47 +0000
+++ tests/fldecomp_1d/Makefile 1970-01-01 00:00:00 +0000
@@ -1,11 +0,0 @@
1default: input
2
3input: src/line.tar.bz2
4 tar -xvjf src/line.tar.bz2
5
6clean: clean-mesh clean-run
7clean-mesh:
8 rm -f line.bound line.ele line.node
9clean-run:
10 rm -f line_?*.bound line_?*.ele line_?*.halo line_?*.node
11 rm -f fldecomp.log
120
=== added file 'tests/fldecomp_1d/fldecomp_1d.xml'
--- tests/fldecomp_1d/fldecomp_1d.xml 1970-01-01 00:00:00 +0000
+++ tests/fldecomp_1d/fldecomp_1d.xml 2012-11-24 15:51:21 +0000
@@ -0,0 +1,27 @@
1<?xml version = "1.0" encoding = "UTF-8" ?>
2<testproblem>
3 <name>fldecomp</name>
4 <owner userid="ggorman"/>
5 <problem_definition length = "short" nprocs = "1">
6 <command_line>rm -f fldecomp.log; make clean-run; fldecomp -n 4 -k -v line > fldecomp.log</command_line>
7 </problem_definition>
8 <variables>
9 <variable name = "partitions" language = "python">
10import fluidity.diagnostics.triangletools as triangletools
11partitions = []
12for i in range(4):
13 partitions.append(triangletools.ReadTriangle("line_" + str(i)))
14 </variable>
15 </variables>
16 <pass_tests>
17 <test name = "Equal sized partitions (owned nodes)" language = "python">
18import fluidity_tools
19nodeCounts = []
20for partition in partitions:
21 nodeCounts.append(partition.GetNOwnedNodes())
22fluidity_tools.compare_variables([float(nodeCount) for nodeCount in nodeCounts[1:]], [float(nodeCounts[0]) for i in range(len(nodeCounts) - 1)], 0.075)
23 </test>
24 </pass_tests>
25 <warn_tests>
26 </warn_tests>
27</testproblem>
028
=== removed file 'tests/fldecomp_1d/fldecomp_1d.xml'
--- tests/fldecomp_1d/fldecomp_1d.xml 2011-10-21 10:05:25 +0000
+++ tests/fldecomp_1d/fldecomp_1d.xml 1970-01-01 00:00:00 +0000
@@ -1,27 +0,0 @@
1<?xml version = "1.0" encoding = "UTF-8" ?>
2<testproblem>
3 <name>fldecomp</name>
4 <owner userid="ggorman"/>
5 <problem_definition length = "short" nprocs = "1">
6 <command_line>rm -f fldecomp.log; make clean-run; fldecomp -n 4 -k -v line > fldecomp.log</command_line>
7 </problem_definition>
8 <variables>
9 <variable name = "partitions" language = "python">
10import fluidity.diagnostics.triangletools as triangletools
11partitions = []
12for i in range(4):
13 partitions.append(triangletools.ReadTriangle("line_" + str(i)))
14 </variable>
15 </variables>
16 <pass_tests>
17 <test name = "Equal sized partitions (owned nodes)" language = "python">
18import fluidity_tools
19nodeCounts = []
20for partition in partitions:
21 nodeCounts.append(partition.GetNOwnedNodes())
22fluidity_tools.compare_variables([float(nodeCount) for nodeCount in nodeCounts[1:]], [float(nodeCounts[0]) for i in range(len(nodeCounts) - 1)], 0.075)
23 </test>
24 </pass_tests>
25 <warn_tests>
26 </warn_tests>
27</testproblem>
280
=== added directory 'tests/fldecomp_1d/src'
=== removed directory 'tests/fldecomp_1d/src'
=== added file 'tests/fldecomp_1d/src/line.tar.bz2'
29Binary files tests/fldecomp_1d/src/line.tar.bz2 1970-01-01 00:00:00 +0000 and tests/fldecomp_1d/src/line.tar.bz2 2012-11-24 15:51:21 +0000 differ1Binary files tests/fldecomp_1d/src/line.tar.bz2 1970-01-01 00:00:00 +0000 and tests/fldecomp_1d/src/line.tar.bz2 2012-11-24 15:51:21 +0000 differ
=== removed file 'tests/fldecomp_1d/src/line.tar.bz2'
30Binary files tests/fldecomp_1d/src/line.tar.bz2 2009-12-16 14:11:47 +0000 and tests/fldecomp_1d/src/line.tar.bz2 1970-01-01 00:00:00 +0000 differ2Binary files tests/fldecomp_1d/src/line.tar.bz2 2009-12-16 14:11:47 +0000 and tests/fldecomp_1d/src/line.tar.bz2 1970-01-01 00:00:00 +0000 differ
=== added directory 'tests/fldecomp_2d'
=== removed directory 'tests/fldecomp_2d'
=== added file 'tests/fldecomp_2d/Makefile'
--- tests/fldecomp_2d/Makefile 1970-01-01 00:00:00 +0000
+++ tests/fldecomp_2d/Makefile 2012-11-24 15:51:21 +0000
@@ -0,0 +1,11 @@
1default: input
2
3input: src/square.tar.bz2
4 tar -xvjf src/square.tar.bz2
5
6clean: clean-mesh clean-run
7clean-mesh:
8 rm -f square.edge square.ele square.node
9clean-run:
10 rm -f square_?*.edge square_?*.ele square_?*.halo square_?*.node
11 rm -f fldecomp.log
012
=== removed file 'tests/fldecomp_2d/Makefile'
--- tests/fldecomp_2d/Makefile 2009-12-16 14:11:47 +0000
+++ tests/fldecomp_2d/Makefile 1970-01-01 00:00:00 +0000
@@ -1,11 +0,0 @@
1default: input
2
3input: src/square.tar.bz2
4 tar -xvjf src/square.tar.bz2
5
6clean: clean-mesh clean-run
7clean-mesh:
8 rm -f square.edge square.ele square.node
9clean-run:
10 rm -f square_?*.edge square_?*.ele square_?*.halo square_?*.node
11 rm -f fldecomp.log
120
=== added file 'tests/fldecomp_2d/fldecomp_2d.xml'
--- tests/fldecomp_2d/fldecomp_2d.xml 1970-01-01 00:00:00 +0000
+++ tests/fldecomp_2d/fldecomp_2d.xml 2012-11-24 15:51:21 +0000
@@ -0,0 +1,24 @@
1<?xml version='1.0' encoding='utf-8'?>
2<testproblem>
3 <name>fldecomp</name>
4 <owner userid="ggorman"/>
5 <problem_definition length="short" nprocs="1">
6 <command_line>rm -f fldecomp.log; make clean-run; fldecomp -n 4 -k -v square &gt; fldecomp.log</command_line>
7 </problem_definition>
8 <variables>
9 <variable name="partitions" language="python">import fluidity.diagnostics.triangletools as triangletools
10partitions = []
11for i in range(4):
12 partitions.append(triangletools.ReadTriangle("square_" + str(i)))</variable>
13 </variables>
14 <pass_tests>
15 <test name = "Equal sized partitions (owned nodes)" language = "python">
16import fluidity_tools
17nodeCounts = []
18for partition in partitions:
19 nodeCounts.append(partition.GetNOwnedNodes())
20fluidity_tools.compare_variables([float(nodeCount) for nodeCount in nodeCounts[1:]], [float(nodeCounts[0]) for i in range(len(nodeCounts) - 1)], 0.075)
21 </test>
22 </pass_tests>
23 <warn_tests/>
24</testproblem>
025
=== removed file 'tests/fldecomp_2d/fldecomp_2d.xml'
--- tests/fldecomp_2d/fldecomp_2d.xml 2010-10-28 10:21:28 +0000
+++ tests/fldecomp_2d/fldecomp_2d.xml 1970-01-01 00:00:00 +0000
@@ -1,24 +0,0 @@
1<?xml version='1.0' encoding='utf-8'?>
2<testproblem>
3 <name>fldecomp</name>
4 <owner userid="ggorman"/>
5 <problem_definition length="short" nprocs="1">
6 <command_line>rm -f fldecomp.log; make clean-run; fldecomp -n 4 -k -v square &gt; fldecomp.log</command_line>
7 </problem_definition>
8 <variables>
9 <variable name="partitions" language="python">import fluidity.diagnostics.triangletools as triangletools
10partitions = []
11for i in range(4):
12 partitions.append(triangletools.ReadTriangle("square_" + str(i)))</variable>
13 </variables>
14 <pass_tests>
15 <test name = "Equal sized partitions (owned nodes)" language = "python">
16import fluidity_tools
17nodeCounts = []
18for partition in partitions:
19 nodeCounts.append(partition.GetNOwnedNodes())
20fluidity_tools.compare_variables([float(nodeCount) for nodeCount in nodeCounts[1:]], [float(nodeCounts[0]) for i in range(len(nodeCounts) - 1)], 0.075)
21 </test>
22 </pass_tests>
23 <warn_tests/>
24</testproblem>
250
=== added directory 'tests/fldecomp_2d/src'
=== removed directory 'tests/fldecomp_2d/src'
=== added file 'tests/fldecomp_2d/src/square.tar.bz2'
26Binary files tests/fldecomp_2d/src/square.tar.bz2 1970-01-01 00:00:00 +0000 and tests/fldecomp_2d/src/square.tar.bz2 2012-11-24 15:51:21 +0000 differ1Binary files tests/fldecomp_2d/src/square.tar.bz2 1970-01-01 00:00:00 +0000 and tests/fldecomp_2d/src/square.tar.bz2 2012-11-24 15:51:21 +0000 differ
=== removed file 'tests/fldecomp_2d/src/square.tar.bz2'
27Binary files tests/fldecomp_2d/src/square.tar.bz2 2009-12-16 14:11:47 +0000 and tests/fldecomp_2d/src/square.tar.bz2 1970-01-01 00:00:00 +0000 differ2Binary files tests/fldecomp_2d/src/square.tar.bz2 2009-12-16 14:11:47 +0000 and tests/fldecomp_2d/src/square.tar.bz2 1970-01-01 00:00:00 +0000 differ
=== added directory 'tests/flredecomp'
=== added file 'tests/flredecomp/Makefile'
--- tests/flredecomp/Makefile 1970-01-01 00:00:00 +0000
+++ tests/flredecomp/Makefile 2012-11-24 15:51:21 +0000
@@ -0,0 +1,12 @@
1default: input
2
3input: src/cube.tar.bz2
4 tar -xvjf src/cube.tar.bz2
5
6clean: clean-mesh clean-run
7clean-mesh:
8 rm -f cube.ele cube.face cube.node
9clean-run:
10 rm -f cube_?*.ele cube_?*.face cube_?*.halo cube_?*.node
11 rm -f *.log* *.err* test_flredecomp.flml
12 rm -f test_flredecomp_CoordinateMesh_*
013
=== added file 'tests/flredecomp/flredecomp.xml'
--- tests/flredecomp/flredecomp.xml 1970-01-01 00:00:00 +0000
+++ tests/flredecomp/flredecomp.xml 2012-11-24 15:51:21 +0000
@@ -0,0 +1,27 @@
1<?xml version = "1.0" encoding = "UTF-8" ?>
2<testproblem>
3 <name>flredecomp</name>
4 <owner userid="ggorman"/>
5 <problem_definition length = "short" nprocs = "1">
6 <command_line>make clean-run; mpiexec -n 4 ../../bin/flredecomp -i 1 -o 4 -v -l test test_flredecomp</command_line>
7 </problem_definition>
8 <variables>
9 <variable name = "partitions" language = "python">
10import fluidity.diagnostics.triangletools as triangletools
11partitions = []
12for i in range(4):
13 partitions.append(triangletools.ReadTriangle("test_flredecomp_CoordinateMesh_" + str(i)))
14 </variable>
15 </variables>
16 <pass_tests>
17 <test name = "Equal sized partitions (owned nodes)" language = "python">
18import fluidity_tools
19nodeCounts = []
20for partition in partitions:
21 nodeCounts.append(partition.GetNOwnedNodes())
22fluidity_tools.compare_variables([float(nodeCount) for nodeCount in nodeCounts[1:]], [float(nodeCounts[0]) for i in range(len(nodeCounts) - 1)], 0.075)
23 </test>
24 </pass_tests>
25 <warn_tests>
26 </warn_tests>
27</testproblem>
028
=== added directory 'tests/flredecomp/src'
=== added file 'tests/flredecomp/src/cube.tar.bz2'
1Binary files tests/flredecomp/src/cube.tar.bz2 1970-01-01 00:00:00 +0000 and tests/flredecomp/src/cube.tar.bz2 2012-11-24 15:51:21 +0000 differ29Binary files tests/flredecomp/src/cube.tar.bz2 1970-01-01 00:00:00 +0000 and tests/flredecomp/src/cube.tar.bz2 2012-11-24 15:51:21 +0000 differ
=== added file 'tests/flredecomp/test.flml'
--- tests/flredecomp/test.flml 1970-01-01 00:00:00 +0000
+++ tests/flredecomp/test.flml 2012-11-24 15:51:21 +0000
@@ -0,0 +1,69 @@
1<?xml version='1.0' encoding='utf-8'?>
2<fluidity_options>
3 <simulation_name>
4 <string_value lines="1">test</string_value>
5 </simulation_name>
6 <problem_type>
7 <string_value lines="1">fluids</string_value>
8 </problem_type>
9 <geometry>
10 <dimension>
11 <integer_value rank="0">3</integer_value>
12 </dimension>
13 <mesh name="CoordinateMesh">
14 <from_file file_name="cube">
15 <format name="triangle"/>
16 <stat>
17 <include_in_stat/>
18 </stat>
19 </from_file>
20 </mesh>
21 <quadrature>
22 <degree>
23 <integer_value rank="0">1</integer_value>
24 </degree>
25 </quadrature>
26 </geometry>
27 <io>
28 <dump_format>
29 <string_value>vtk</string_value>
30 </dump_format>
31 <dump_period>
32 <constant>
33 <real_value rank="0">0</real_value>
34 </constant>
35 </dump_period>
36 <output_mesh name="CoordinateMesh"/>
37 <stat/>
38 </io>
39 <timestepping>
40 <current_time>
41 <real_value rank="0">0</real_value>
42 </current_time>
43 <timestep>
44 <real_value rank="0">1</real_value>
45 </timestep>
46 <finish_time>
47 <real_value rank="0">0</real_value>
48 </finish_time>
49 </timestepping>
50 <material_phase name="air">
51 <vector_field name="Velocity" rank="1">
52 <prescribed>
53 <mesh name="CoordinateMesh"/>
54 <value name="WholeMesh">
55 <constant>
56 <real_value shape="3" dim1="dim" rank="1">0 0 0</real_value>
57 </constant>
58 </value>
59 <output/>
60 <stat>
61 <include_in_stat/>
62 </stat>
63 <detectors>
64 <exclude_from_detectors/>
65 </detectors>
66 </prescribed>
67 </vector_field>
68 </material_phase>
69</fluidity_options>
070
=== added directory 'tests/flredecomp_1d'
=== added file 'tests/flredecomp_1d/Makefile'
--- tests/flredecomp_1d/Makefile 1970-01-01 00:00:00 +0000
+++ tests/flredecomp_1d/Makefile 2012-11-24 15:51:21 +0000
@@ -0,0 +1,12 @@
1default: input
2
3input: src/line.tar.bz2
4 tar -xvjf src/line.tar.bz2
5
6clean: clean-mesh clean-run
7clean-mesh:
8 rm -f line.bound line.ele line.node
9clean-run:
10 rm -f line_?*.bound line_?*.ele line_?*.halo line_?*.node
11 rm -f *.log* *.err* test_flredecomp.flml
12 rm -f test_flredecomp_CoordinateMesh_*
013
=== added file 'tests/flredecomp_1d/flredecomp_1d.xml'
--- tests/flredecomp_1d/flredecomp_1d.xml 1970-01-01 00:00:00 +0000
+++ tests/flredecomp_1d/flredecomp_1d.xml 2012-11-24 15:51:21 +0000
@@ -0,0 +1,27 @@
1<?xml version = "1.0" encoding = "UTF-8" ?>
2<testproblem>
3 <name>flredecomp</name>
4 <owner userid="ggorman"/>
5 <problem_definition length = "short" nprocs = "1">
6 <command_line>make clean-run; mpiexec -n 4 ../../bin/flredecomp -i 1 -o 4 -v -l test test_flredecomp</command_line>
7 </problem_definition>
8 <variables>
9 <variable name = "partitions" language = "python">
10import fluidity.diagnostics.triangletools as triangletools
11partitions = []
12for i in range(4):
13 partitions.append(triangletools.ReadTriangle("test_flredecomp_CoordinateMesh_" + str(i)))
14 </variable>
15 </variables>
16 <pass_tests>
17 <test name = "Equal sized partitions (owned nodes)" language = "python">
18import fluidity_tools
19nodeCounts = []
20for partition in partitions:
21 nodeCounts.append(partition.GetNOwnedNodes())
22fluidity_tools.compare_variables([float(nodeCount) for nodeCount in nodeCounts[1:]], [float(nodeCounts[0]) for i in range(len(nodeCounts) - 1)], 0.075)
23 </test>
24 </pass_tests>
25 <warn_tests>
26 </warn_tests>
27</testproblem>
028
=== added directory 'tests/flredecomp_1d/src'
=== added file 'tests/flredecomp_1d/src/line.tar.bz2'
1Binary files tests/flredecomp_1d/src/line.tar.bz2 1970-01-01 00:00:00 +0000 and tests/flredecomp_1d/src/line.tar.bz2 2012-11-24 15:51:21 +0000 differ29Binary files tests/flredecomp_1d/src/line.tar.bz2 1970-01-01 00:00:00 +0000 and tests/flredecomp_1d/src/line.tar.bz2 2012-11-24 15:51:21 +0000 differ
=== added file 'tests/flredecomp_1d/test.flml'
--- tests/flredecomp_1d/test.flml 1970-01-01 00:00:00 +0000
+++ tests/flredecomp_1d/test.flml 2012-11-24 15:51:21 +0000
@@ -0,0 +1,69 @@
1<?xml version='1.0' encoding='utf-8'?>
2<fluidity_options>
3 <simulation_name>
4 <string_value lines="1">test</string_value>
5 </simulation_name>
6 <problem_type>
7 <string_value lines="1">fluids</string_value>
8 </problem_type>
9 <geometry>
10 <dimension>
11 <integer_value rank="0">1</integer_value>
12 </dimension>
13 <mesh name="CoordinateMesh">
14 <from_file file_name="line">
15 <format name="triangle"/>
16 <stat>
17 <include_in_stat/>
18 </stat>
19 </from_file>
20 </mesh>
21 <quadrature>
22 <degree>
23 <integer_value rank="0">1</integer_value>
24 </degree>
25 </quadrature>
26 </geometry>
27 <io>
28 <dump_format>
29 <string_value>vtk</string_value>
30 </dump_format>
31 <dump_period>
32 <constant>
33 <real_value rank="0">0</real_value>
34 </constant>
35 </dump_period>
36 <output_mesh name="CoordinateMesh"/>
37 <stat/>
38 </io>
39 <timestepping>
40 <current_time>
41 <real_value rank="0">0</real_value>
42 </current_time>
43 <timestep>
44 <real_value rank="0">1</real_value>
45 </timestep>
46 <finish_time>
47 <real_value rank="0">0</real_value>
48 </finish_time>
49 </timestepping>
50 <material_phase name="air">
51 <vector_field name="Velocity" rank="1">
52 <prescribed>
53 <mesh name="CoordinateMesh"/>
54 <value name="WholeMesh">
55 <constant>
56 <real_value shape="1" dim1="dim" rank="1">0</real_value>
57 </constant>
58 </value>
59 <output/>
60 <stat>
61 <include_in_stat/>
62 </stat>
63 <detectors>
64 <exclude_from_detectors/>
65 </detectors>
66 </prescribed>
67 </vector_field>
68 </material_phase>
69</fluidity_options>
070
=== added directory 'tests/flredecomp_2d'
=== added file 'tests/flredecomp_2d/Makefile'
--- tests/flredecomp_2d/Makefile 1970-01-01 00:00:00 +0000
+++ tests/flredecomp_2d/Makefile 2012-11-24 15:51:21 +0000
@@ -0,0 +1,12 @@
1default: input
2
3input: src/square.tar.bz2
4 tar -xvjf src/square.tar.bz2
5
6clean: clean-mesh clean-run
7clean-mesh:
8 rm -f square.edge square.ele square.node
9clean-run:
10 rm -f square_?*.edge square_?*.ele square_?*.halo square_?*.node
11 rm -f *.log* *.err* test_flredecomp.flml
12 rm -f test_flredecomp_CoordinateMesh_*
013
=== added file 'tests/flredecomp_2d/flredecomp_2d.xml'
--- tests/flredecomp_2d/flredecomp_2d.xml 1970-01-01 00:00:00 +0000
+++ tests/flredecomp_2d/flredecomp_2d.xml 2012-11-24 15:51:21 +0000
@@ -0,0 +1,27 @@
1<?xml version = "1.0" encoding = "UTF-8" ?>
2<testproblem>
3 <name>flredecomp</name>
4 <owner userid="ggorman"/>
5 <problem_definition length = "short" nprocs = "1">
6 <command_line>make clean-run; mpiexec -n 4 ../../bin/flredecomp -i 1 -o 4 -v -l test test_flredecomp</command_line>
7 </problem_definition>
8 <variables>
9 <variable name = "partitions" language = "python">
10import fluidity.diagnostics.triangletools as triangletools
11partitions = []
12for i in range(4):
13 partitions.append(triangletools.ReadTriangle("test_flredecomp_CoordinateMesh_" + str(i)))
14 </variable>
15 </variables>
16 <pass_tests>
17 <test name = "Equal sized partitions (owned nodes)" language = "python">
18import fluidity_tools
19nodeCounts = []
20for partition in partitions:
21 nodeCounts.append(partition.GetNOwnedNodes())
22fluidity_tools.compare_variables([float(nodeCount) for nodeCount in nodeCounts[1:]], [float(nodeCounts[0]) for i in range(len(nodeCounts) - 1)], 0.075)
23 </test>
24 </pass_tests>
25 <warn_tests>
26 </warn_tests>
27</testproblem>
028
=== added directory 'tests/flredecomp_2d/src'
=== added file 'tests/flredecomp_2d/src/square.tar.bz2'
1Binary files tests/flredecomp_2d/src/square.tar.bz2 1970-01-01 00:00:00 +0000 and tests/flredecomp_2d/src/square.tar.bz2 2012-11-24 15:51:21 +0000 differ29Binary files tests/flredecomp_2d/src/square.tar.bz2 1970-01-01 00:00:00 +0000 and tests/flredecomp_2d/src/square.tar.bz2 2012-11-24 15:51:21 +0000 differ
=== added file 'tests/flredecomp_2d/test.flml'
--- tests/flredecomp_2d/test.flml 1970-01-01 00:00:00 +0000
+++ tests/flredecomp_2d/test.flml 2012-11-24 15:51:21 +0000
@@ -0,0 +1,69 @@
1<?xml version='1.0' encoding='utf-8'?>
2<fluidity_options>
3 <simulation_name>
4 <string_value lines="1">test</string_value>
5 </simulation_name>
6 <problem_type>
7 <string_value lines="1">fluids</string_value>
8 </problem_type>
9 <geometry>
10 <dimension>
11 <integer_value rank="0">2</integer_value>
12 </dimension>
13 <mesh name="CoordinateMesh">
14 <from_file file_name="square">
15 <format name="triangle"/>
16 <stat>
17 <include_in_stat/>
18 </stat>
19 </from_file>
20 </mesh>
21 <quadrature>
22 <degree>
23 <integer_value rank="0">1</integer_value>
24 </degree>
25 </quadrature>
26 </geometry>
27 <io>
28 <dump_format>
29 <string_value>vtk</string_value>
30 </dump_format>
31 <dump_period>
32 <constant>
33 <real_value rank="0">0</real_value>
34 </constant>
35 </dump_period>
36 <output_mesh name="CoordinateMesh"/>
37 <stat/>
38 </io>
39 <timestepping>
40 <current_time>
41 <real_value rank="0">0</real_value>
42 </current_time>
43 <timestep>
44 <real_value rank="0">1</real_value>
45 </timestep>
46 <finish_time>
47 <real_value rank="0">0</real_value>
48 </finish_time>
49 </timestepping>
50 <material_phase name="air">
51 <vector_field name="Velocity" rank="1">
52 <prescribed>
53 <mesh name="CoordinateMesh"/>
54 <value name="WholeMesh">
55 <constant>
56 <real_value shape="2" dim1="dim" rank="1">0 0</real_value>
57 </constant>
58 </value>
59 <output/>
60 <stat>
61 <include_in_stat/>
62 </stat>
63 <detectors>
64 <exclude_from_detectors/>
65 </detectors>
66 </prescribed>
67 </vector_field>
68 </material_phase>
69</fluidity_options>
070
=== modified file 'tests/geopressure_convergence/Makefile'
--- tests/geopressure_convergence/Makefile 2011-12-17 18:17:49 +0000
+++ tests/geopressure_convergence/Makefile 2012-11-24 15:51:21 +0000
@@ -7,10 +7,6 @@
77
8input:8input:
9 tar -xvjf src/meshes.tar.bz29 tar -xvjf src/meshes.tar.bz2
10 ../../bin/fldecomp -n 2 square-8
11 ../../bin/fldecomp -n 2 square-16
12 ../../bin/fldecomp -n 2 square-32
13 ../../bin/fldecomp -n 2 square-64
14 cp $(FLMLMODEL1).flml $(FLMLMODEL2).flml 10 cp $(FLMLMODEL1).flml $(FLMLMODEL2).flml
15 sed -i "s/"$(FLMLMODEL1)"/"$(FLMLMODEL2)"/g" $(FLMLMODEL2).flml 11 sed -i "s/"$(FLMLMODEL1)"/"$(FLMLMODEL2)"/g" $(FLMLMODEL2).flml
16 sed -i "s/square-8/square-16/g" $(FLMLMODEL2).flml 12 sed -i "s/square-8/square-16/g" $(FLMLMODEL2).flml
@@ -19,12 +15,18 @@
19 sed -i "s/square-8/square-32/g" $(FLMLMODEL3).flml 15 sed -i "s/square-8/square-32/g" $(FLMLMODEL3).flml
20 cp $(FLMLMODEL1).flml $(FLMLMODEL4).flml 16 cp $(FLMLMODEL1).flml $(FLMLMODEL4).flml
21 sed -i "s/"$(FLMLMODEL1)"/"$(FLMLMODEL4)"/g" $(FLMLMODEL4).flml 17 sed -i "s/"$(FLMLMODEL1)"/"$(FLMLMODEL4)"/g" $(FLMLMODEL4).flml
22 sed -i "s/square-8/square-64/g" $(FLMLMODEL4).flml 18 sed -i "s/square-8/square-64/g" $(FLMLMODEL4).flml
19 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l $(FLMLMODEL1) $(FLMLMODEL1)_flredecomp
20 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l $(FLMLMODEL2) $(FLMLMODEL2)_flredecomp
21 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l $(FLMLMODEL3) $(FLMLMODEL3)_flredecomp
22 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l $(FLMLMODEL4) $(FLMLMODEL4)_flredecomp
23
2324
24clean: clean-mesh clean-run-debug25clean: clean-mesh clean-run-debug
25 rm -f $(FLMLMODEL2).flml26 rm -f $(FLMLMODEL2).flml
26 rm -f $(FLMLMODEL3).flml27 rm -f $(FLMLMODEL3).flml
27 rm -f $(FLMLMODEL4).flml28 rm -f $(FLMLMODEL4).flml
29 rm -rf *flredecomp*
28clean-mesh:30clean-mesh:
29 rm -f square-?*.edge square-?*.ele square-?*.node31 rm -f square-?*.edge square-?*.ele square-?*.node
30 rm -f square-?*_?*.edge square-?*_*.ele square-?*_?*.node square-?*_?*.halo32 rm -f square-?*_?*.edge square-?*_*.ele square-?*_?*.node square-?*_?*.halo
3133
=== modified file 'tests/geopressure_convergence/geopressure_convergence.xml'
--- tests/geopressure_convergence/geopressure_convergence.xml 2011-10-21 10:05:25 +0000
+++ tests/geopressure_convergence/geopressure_convergence.xml 2012-11-24 15:51:21 +0000
@@ -5,10 +5,10 @@
5 <tags>flml parallel</tags>5 <tags>flml parallel</tags>
6 <problem_definition length = "medium" nprocs = "1">6 <problem_definition length = "medium" nprocs = "1">
7 <command_line>make clean-run; rm -f 8.log 16.log 32.log 64.log;7 <command_line>make clean-run; rm -f 8.log 16.log 32.log 64.log;
8mpiexec -n 2 ../../bin/fluidity -v2 geopressure_8.flml > 8.log;8mpiexec -n 2 ../../bin/fluidity -v2 geopressure_8_flredecomp.flml > 8.log;
9mpiexec -n 2 ../../bin/fluidity -v2 geopressure_16.flml > 16.log;9mpiexec -n 2 ../../bin/fluidity -v2 geopressure_16_flredecomp.flml > 16.log;
10mpiexec -n 2 ../../bin/fluidity -v2 geopressure_32.flml > 32.log;10mpiexec -n 2 ../../bin/fluidity -v2 geopressure_32_flredecomp.flml > 32.log;
11mpiexec -n 2 ../../bin/fluidity -v2 geopressure_64.flml > 64.log;11mpiexec -n 2 ../../bin/fluidity -v2 geopressure_64_flredecomp.flml > 64.log;
12 </command_line>12 </command_line>
13 </problem_definition>13 </problem_definition>
14 <variables>14 <variables>
1515
=== modified file 'tests/geopressure_convergence_p1/Makefile'
--- tests/geopressure_convergence_p1/Makefile 2011-10-27 22:51:21 +0000
+++ tests/geopressure_convergence_p1/Makefile 2012-11-24 15:51:21 +0000
@@ -7,10 +7,6 @@
77
8input:8input:
9 tar -xvjf src/meshes.tar.bz29 tar -xvjf src/meshes.tar.bz2
10 fldecomp -n 2 square-8
11 fldecomp -n 2 square-16
12 fldecomp -n 2 square-32
13 fldecomp -n 2 square-64
14 cp $(FLMLMODEL1).flml $(FLMLMODEL2).flml 10 cp $(FLMLMODEL1).flml $(FLMLMODEL2).flml
15 sed -i "s/"$(FLMLMODEL1)"/"$(FLMLMODEL2)"/g" $(FLMLMODEL2).flml 11 sed -i "s/"$(FLMLMODEL1)"/"$(FLMLMODEL2)"/g" $(FLMLMODEL2).flml
16 sed -i "s/square-8/square-16/g" $(FLMLMODEL2).flml 12 sed -i "s/square-8/square-16/g" $(FLMLMODEL2).flml
@@ -19,12 +15,18 @@
19 sed -i "s/square-8/square-32/g" $(FLMLMODEL3).flml 15 sed -i "s/square-8/square-32/g" $(FLMLMODEL3).flml
20 cp $(FLMLMODEL1).flml $(FLMLMODEL4).flml 16 cp $(FLMLMODEL1).flml $(FLMLMODEL4).flml
21 sed -i "s/"$(FLMLMODEL1)"/"$(FLMLMODEL4)"/g" $(FLMLMODEL4).flml 17 sed -i "s/"$(FLMLMODEL1)"/"$(FLMLMODEL4)"/g" $(FLMLMODEL4).flml
22 sed -i "s/square-8/square-64/g" $(FLMLMODEL4).flml 18 sed -i "s/square-8/square-64/g" $(FLMLMODEL4).flml
19 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l $(FLMLMODEL1) $(FLMLMODEL1)_flredecomp
20 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l $(FLMLMODEL2) $(FLMLMODEL2)_flredecomp
21 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l $(FLMLMODEL3) $(FLMLMODEL3)_flredecomp
22 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l $(FLMLMODEL4) $(FLMLMODEL4)_flredecomp
23
2324
24clean: clean-mesh clean-run-debug25clean: clean-mesh clean-run-debug
25 rm -f $(FLMLMODEL2).flml26 rm -f $(FLMLMODEL2).flml
26 rm -f $(FLMLMODEL3).flml27 rm -f $(FLMLMODEL3).flml
27 rm -f $(FLMLMODEL4).flml28 rm -f $(FLMLMODEL4).flml
29 rm -rf *flredecomp*
28clean-mesh:30clean-mesh:
29 rm -f square-?*.edge square-?*.ele square-?*.node31 rm -f square-?*.edge square-?*.ele square-?*.node
30 rm -f square-?*_?*.edge square-?*_*.ele square-?*_?*.node square-?*_?*.halo32 rm -f square-?*_?*.edge square-?*_*.ele square-?*_?*.node square-?*_?*.halo
@@ -39,9 +41,9 @@
39 rm -f $(FLMLMODEL4).detectors $(FLMLMODEL4).stat tmpf*41 rm -f $(FLMLMODEL4).detectors $(FLMLMODEL4).stat tmpf*
40 rm -f fluidity.err-?* fluidity.log-?*42 rm -f fluidity.err-?* fluidity.log-?*
41 rm -f matrixdump matrixdump.info43 rm -f matrixdump matrixdump.info
44 rm -f *.log
42 rm -rf $(FLMLMODEL1)_?45 rm -rf $(FLMLMODEL1)_?
43 rm -rf $(FLMLMODEL2)_?46 rm -rf $(FLMLMODEL2)_?
44 rm -rf $(FLMLMODEL3)_?47 rm -rf $(FLMLMODEL3)_?
45 rm -rf $(FLMLMODEL4)_?48 rm -rf $(FLMLMODEL4)_?
46 rm -f *.log
47clean-run-debug: clean-run49clean-run-debug: clean-run
4850
=== modified file 'tests/geopressure_convergence_p1/geopressure_convergence_p1.xml'
--- tests/geopressure_convergence_p1/geopressure_convergence_p1.xml 2011-10-21 10:05:25 +0000
+++ tests/geopressure_convergence_p1/geopressure_convergence_p1.xml 2012-11-24 15:51:21 +0000
@@ -5,10 +5,10 @@
5 <tags>flml parallel</tags>5 <tags>flml parallel</tags>
6 <problem_definition length = "medium" nprocs = "1">6 <problem_definition length = "medium" nprocs = "1">
7 <command_line>make clean-run; rm -f 8.log 16.log 32.log 64.log;7 <command_line>make clean-run; rm -f 8.log 16.log 32.log 64.log;
8mpiexec -n 2 ../../bin/fluidity -v2 geopressure_8.flml > 8.log;8mpiexec -n 2 ../../bin/fluidity -v2 geopressure_8_flredecomp.flml > 8.log;
9mpiexec -n 2 ../../bin/fluidity -v2 geopressure_16.flml > 16.log;9mpiexec -n 2 ../../bin/fluidity -v2 geopressure_16_flredecomp.flml > 16.log;
10mpiexec -n 2 ../../bin/fluidity -v2 geopressure_32.flml > 32.log;10mpiexec -n 2 ../../bin/fluidity -v2 geopressure_32_flredecomp.flml > 32.log;
11mpiexec -n 2 ../../bin/fluidity -v2 geopressure_64.flml > 64.log;11mpiexec -n 2 ../../bin/fluidity -v2 geopressure_64_flredecomp.flml > 64.log;
12 </command_line>12 </command_line>
13 </problem_definition>13 </problem_definition>
14 <variables>14 <variables>
1515
=== modified file 'tests/heat_2d_dg/Makefile'
--- tests/heat_2d_dg/Makefile 2012-06-28 08:23:27 +0000
+++ tests/heat_2d_dg/Makefile 2012-11-24 15:51:21 +0000
@@ -1,7 +1,8 @@
1input: clean1input: clean
2 ../../bin/gmsh2triangle --2d src/square.msh2 ../../bin/gmsh2triangle --2d src/square.msh
3 ../../bin/fldecomp -n 2 square3 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l heat heat_flredecomp
44
5clean:5clean:
6 rm -fr *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu fluidity.* *.s *.d.1 *.stat heat_[01] \6 rm -fr *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu fluidity.* *.s *.d.1 *.stat heat_[01] \
7 matrixdump matrixdump.info7 matrixdump matrixdump.info
8 rm -rf *flredecomp*
89
=== modified file 'tests/heat_2d_dg/heat_2d_dg.xml'
--- tests/heat_2d_dg/heat_2d_dg.xml 2012-06-28 08:23:27 +0000
+++ tests/heat_2d_dg/heat_2d_dg.xml 2012-11-24 15:51:21 +0000
@@ -5,7 +5,7 @@
5 <owner userid="dham"/>5 <owner userid="dham"/>
6 <tags>flml parallel</tags>6 <tags>flml parallel</tags>
7 <problem_definition length="short" nprocs="1">7 <problem_definition length="short" nprocs="1">
8 <command_line>mpiexec -np 2 ../../bin/fluidity -l heat.flml </command_line>8 <command_line>mpiexec -np 2 ../../bin/fluidity -l heat_flredecomp.flml </command_line>
9 <!-- Two dimensional diffusion only problem. -->9 <!-- Two dimensional diffusion only problem. -->
10 </problem_definition>10 </problem_definition>
11 <variables>11 <variables>
1212
=== modified file 'tests/heat_2d_dg_ip/Makefile'
--- tests/heat_2d_dg_ip/Makefile 2012-06-28 08:23:27 +0000
+++ tests/heat_2d_dg_ip/Makefile 2012-11-24 15:51:21 +0000
@@ -1,7 +1,8 @@
1input: clean1input: clean
2 ../../bin/gmsh2triangle --2d src/square.msh2 ../../bin/gmsh2triangle --2d src/square.msh
3 ../../bin/fldecomp -n 2 square3 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l heat heat_flredecomp
44
5clean:5clean:
6 rm -fr *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu fluidity.* *.s *.d.1 *.stat heat_[01] \6 rm -fr *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu fluidity.* *.s *.d.1 *.stat heat_[01] \
7 matrixdump matrixdump.info7 matrixdump matrixdump.info
8 rm -rf *flredecomp*
89
=== modified file 'tests/heat_2d_dg_ip/heat_2d_dg_ip.xml'
--- tests/heat_2d_dg_ip/heat_2d_dg_ip.xml 2012-06-28 08:23:27 +0000
+++ tests/heat_2d_dg_ip/heat_2d_dg_ip.xml 2012-11-24 15:51:21 +0000
@@ -5,7 +5,7 @@
5 <owner userid="dham"/>5 <owner userid="dham"/>
6 <tags>flml parallel</tags>6 <tags>flml parallel</tags>
7 <problem_definition length="short" nprocs="1">7 <problem_definition length="short" nprocs="1">
8 <command_line>mpiexec -np 2 ../../bin/fluidity -l heat.flml </command_line>8 <command_line>mpiexec -np 2 ../../bin/fluidity -l heat_flredecomp.flml </command_line>
9 <!-- Two dimensional diffusion only problem. -->9 <!-- Two dimensional diffusion only problem. -->
10 </problem_definition>10 </problem_definition>
11 <variables>11 <variables>
1212
=== modified file 'tests/heat_2d_dg_local_assembly/Makefile'
--- tests/heat_2d_dg_local_assembly/Makefile 2012-09-19 10:31:15 +0000
+++ tests/heat_2d_dg_local_assembly/Makefile 2012-11-24 15:51:21 +0000
@@ -1,8 +1,8 @@
1input: clean1input: clean
2 ../../bin/gmsh2triangle --2d src/square.msh2 ../../bin/gmsh2triangle --2d src/square.msh
3 ../../bin/fldecomp -n 8 square3 mpiexec -n 8 ../../bin/flredecomp -i 1 -o 8 -v -l heat heat_flredecomp
44
5clean:5clean:
6 rm -f *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu fluidity.* *.s *.d.1 *.stat \6 rm -f *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu fluidity.* *.s *.d.1 *.stat \
7 matrixdump matrixdump.info7 matrixdump matrixdump.info
8 rm -rf heat_?8 rm -rf heat_? *flredecomp*
99
=== modified file 'tests/heat_2d_dg_local_assembly/heat_2d_dg_local_assembly.xml'
--- tests/heat_2d_dg_local_assembly/heat_2d_dg_local_assembly.xml 2012-06-28 08:23:27 +0000
+++ tests/heat_2d_dg_local_assembly/heat_2d_dg_local_assembly.xml 2012-11-24 15:51:21 +0000
@@ -6,7 +6,7 @@
6 <owner userid="wence"/>6 <owner userid="wence"/>
7 <tags>flml parallel</tags>7 <tags>flml parallel</tags>
8 <problem_definition length="short" nprocs="1">8 <problem_definition length="short" nprocs="1">
9 <command_line>mpiexec -np 8 ../../bin/fluidity -l heat.flml </command_line>9 <command_line>mpiexec -np 8 ../../bin/fluidity -l heat_flredecomp.flml </command_line>
10 <!-- Two dimensional diffusion only problem. -->10 <!-- Two dimensional diffusion only problem. -->
11 </problem_definition>11 </problem_definition>
12 <variables>12 <variables>
1313
=== modified file 'tests/lagrangian_detectors/Makefile'
--- tests/lagrangian_detectors/Makefile 2011-03-07 17:39:46 +0000
+++ tests/lagrangian_detectors/Makefile 2012-11-24 15:51:21 +0000
@@ -1,9 +1,9 @@
1input: default1input: default
2default: clean2default: clean
3 gmsh -2 -bin square.geo -o square.msh3 gmsh -2 -bin square.geo -o square.msh
4 ../../bin/fldecomp -m gmsh -n 4 square4 mpiexec -n 4 ../../bin/flredecomp -i 1 -o 4 -v -l lagrangian_detectors_rk lagrangian_detectors_rk_flredecomp
5clean: 5clean:
6 rm -rf *.msh *.halo *.vtu *.pvtu *.log* *.err* *.stat blob_[012] *.detectors *.dat6 rm -rf *.msh *.halo *.vtu *.pvtu *.log* *.err* *.stat blob_[012] *.detectors *.dat *flredecomp*
77
8logs: 8logs:
9 mpirun -n 4 ../../bin/fluidity -v3 -l lagrangian_detectors_rk.flml9 mpirun -n 4 ../../bin/fluidity -v3 -l lagrangian_detectors_rk.flml
1010
=== modified file 'tests/lagrangian_detectors/lagrangian_detectors.xml'
--- tests/lagrangian_detectors/lagrangian_detectors.xml 2011-10-21 10:05:25 +0000
+++ tests/lagrangian_detectors/lagrangian_detectors.xml 2012-11-24 15:51:21 +0000
@@ -6,7 +6,7 @@
6 <tags>flml parallel nozoltan</tags>6 <tags>flml parallel nozoltan</tags>
7 <problem_definition length="short" nprocs="1">7 <problem_definition length="short" nprocs="1">
8 <command_line>8 <command_line>
9mpirun -n 4 ../../bin/fluidity -v3 -l lagrangian_detectors_rk.flml9mpirun -n 4 ../../bin/fluidity -v3 -l lagrangian_detectors_rk_flredecomp.flml
10 </command_line>10 </command_line>
11 </problem_definition>11 </problem_definition>
12 <variables>12 <variables>
1313
=== modified file 'tests/lagrangian_detectors_3d/Makefile'
--- tests/lagrangian_detectors_3d/Makefile 2011-10-21 10:05:25 +0000
+++ tests/lagrangian_detectors_3d/Makefile 2012-11-24 15:51:21 +0000
@@ -1,6 +1,6 @@
1input: default1input: default
2default: clean2default: clean
3 gmsh -3 -bin src/box.geo -o box.msh3 gmsh -3 -bin src/box.geo -o box.msh
4 ../../bin/fldecomp -m gmsh -n 4 box4 mpiexec -n 4 ../../bin/flredecomp -i 1 -o 4 -v -l lagrangian_detectors_3d lagrangian_detectors_3d_flredecomp
5clean: 5clean:
6 rm -rf *.msh *.halo *.vtu *.pvtu *.log* *.err* *.stat blob_[012] *.detectors *.dat lagrangian_detectors_[01]6 rm -rf *.msh *.halo *.vtu *.pvtu *.log* *.err* *.stat blob_[012] *.detectors *.dat lagrangian_detectors_[01] *flredecomp*
77
=== modified file 'tests/lagrangian_detectors_3d/lagrangian_detectors_3d.xml'
--- tests/lagrangian_detectors_3d/lagrangian_detectors_3d.xml 2011-10-21 10:05:25 +0000
+++ tests/lagrangian_detectors_3d/lagrangian_detectors_3d.xml 2012-11-24 15:51:21 +0000
@@ -6,7 +6,7 @@
6 <tags>flml parallel</tags>6 <tags>flml parallel</tags>
7 <problem_definition length="short" nprocs="1">7 <problem_definition length="short" nprocs="1">
8 <command_line>8 <command_line>
9mpirun -n 4 ../../bin/fluidity -v3 -l lagrangian_detectors_3d.flml9mpirun -n 4 ../../bin/fluidity -v3 -l lagrangian_detectors_3d_flredecomp.flml
10 </command_line>10 </command_line>
11 </problem_definition>11 </problem_definition>
12 <variables>12 <variables>
1313
=== modified file 'tests/mixing_stats_test/Makefile'
--- tests/mixing_stats_test/Makefile 2012-06-28 08:23:27 +0000
+++ tests/mixing_stats_test/Makefile 2012-11-24 15:51:21 +0000
@@ -2,7 +2,7 @@
2 sed "s/mixing_stats_test/mixing_stats_test_serial/" mixing_stats_test.flml > mixing_stats_test_serial.flml2 sed "s/mixing_stats_test/mixing_stats_test_serial/" mixing_stats_test.flml > mixing_stats_test_serial.flml
3 sed "s/mixing_stats_test/mixing_stats_test_parallel/" mixing_stats_test.flml > mixing_stats_test_parallel.flml3 sed "s/mixing_stats_test/mixing_stats_test_parallel/" mixing_stats_test.flml > mixing_stats_test_parallel.flml
4 gmsh -bin -3 src/pseudo_2d_square.geo -o pseudo_2d_square.msh4 gmsh -bin -3 src/pseudo_2d_square.geo -o pseudo_2d_square.msh
5 ../../bin/fldecomp -m gmsh -n 3 pseudo_2d_square5 mpiexec -n 3 ../../bin/flredecomp -i 1 -o 3 -v -l mixing_stats_test_parallel mixing_stats_test_parallel_flredecomp
66
7clean:7clean:
8 rm -f *.stat *.vtu *.pvtu *.convergence *checkpoint* *.err* *.log* 8 rm -f *.stat *.vtu *.pvtu *.convergence *checkpoint* *.err* *.log*
@@ -10,3 +10,4 @@
10 rm -f *.halo *.node *.ele *.face *.msh10 rm -f *.halo *.node *.ele *.face *.msh
11 rm -rf mixing_stats_test_parallel_? \11 rm -rf mixing_stats_test_parallel_? \
12 matrixdump matrixdump.info12 matrixdump matrixdump.info
13 rm -rf *flredecomp*
1314
=== modified file 'tests/mixing_stats_test/mixing_stats_test.xml'
--- tests/mixing_stats_test/mixing_stats_test.xml 2012-07-18 11:26:25 +0000
+++ tests/mixing_stats_test/mixing_stats_test.xml 2012-11-24 15:51:21 +0000
@@ -10,7 +10,7 @@
10 10
11 <problem_definition length="medium" nprocs="1">11 <problem_definition length="medium" nprocs="1">
12 <command_line>fluidity -v3 -l mixing_stats_test_serial.flml;12 <command_line>fluidity -v3 -l mixing_stats_test_serial.flml;
13 mpiexec -n 3 ../../bin/fluidity -v3 -l mixing_stats_test_parallel.flml;13 mpiexec -n 3 ../../bin/fluidity -v3 -l mixing_stats_test_parallel_flredecomp.flml;
14 </command_line>14 </command_line>
15 </problem_definition> 15 </problem_definition>
16 16
1717
=== modified file 'tests/mmat-adapt-after-checkpoint/mmat-adapt-after-checkpoint.xml'
--- tests/mmat-adapt-after-checkpoint/mmat-adapt-after-checkpoint.xml 2012-06-28 08:23:27 +0000
+++ tests/mmat-adapt-after-checkpoint/mmat-adapt-after-checkpoint.xml 2012-11-24 15:51:21 +0000
@@ -223,7 +223,7 @@
223 </test>223 </test>
224 <test name="check that reasonable tolerance is being used to test conservation" language="python">224 <test name="check that reasonable tolerance is being used to test conservation" language="python">
225print 'divergence tolerance = ', max(abs(divergencemaxstart), abs(divergencemaxend), abs(divergenceminstart), abs(divergenceminend))225print 'divergence tolerance = ', max(abs(divergencemaxstart), abs(divergencemaxend), abs(divergenceminstart), abs(divergenceminend))
226assert max(abs(divergencemaxstart), abs(divergencemaxend), abs(divergenceminstart), abs(divergenceminend)) &lt; 2.E-8 226assert max(abs(divergencemaxstart), abs(divergencemaxend), abs(divergenceminstart), abs(divergenceminend)) &lt; 4.E-8
227 </test>227 </test>
228 <test name="check material1 max bound was conserved" language="python">228 <test name="check material1 max bound was conserved" language="python">
229assert abs(material1maxstart-material1maxend) &lt; 1.E-10229assert abs(material1maxstart-material1maxend) &lt; 1.E-10
@@ -238,16 +238,16 @@
238assert abs(material3minstart-material3minend) &lt; 1.E-10238assert abs(material3minstart-material3minend) &lt; 1.E-10
239 </test>239 </test>
240 <test name="check initial max divergence was zero" language="python">240 <test name="check initial max divergence was zero" language="python">
241assert abs(divergencemaxstart) &lt; 2.E-8241assert abs(divergencemaxstart) &lt; 4.E-8
242 </test>242 </test>
243 <test name="check initial min divergence was zero" language="python">243 <test name="check initial min divergence was zero" language="python">
244assert abs(divergenceminstart) &lt; 2.E-8244assert abs(divergenceminstart) &lt; 4.E-8
245 </test>245 </test>
246 <test name="check final max divergence was zero" language="python">246 <test name="check final max divergence was zero" language="python">
247assert abs(divergencemaxend) &lt; 2.E-8247assert abs(divergencemaxend) &lt; 4.E-8
248 </test>248 </test>
249 <test name="check final min divergence was zero" language="python">249 <test name="check final min divergence was zero" language="python">
250assert abs(divergenceminend) &lt; 2.E-8250assert abs(divergenceminend) &lt; 4.E-8
251 </test>251 </test>
252 <test name="check initial max cfl was 0.1" language="python">252 <test name="check initial max cfl was 0.1" language="python">
253assert abs(cflmaxstart-0.1) &lt; 1.E-10253assert abs(cflmaxstart-0.1) &lt; 1.E-10
254254
=== modified file 'tests/mmat-balancepressure-extrude-parallel/Makefile'
--- tests/mmat-balancepressure-extrude-parallel/Makefile 2012-04-03 09:08:56 +0000
+++ tests/mmat-balancepressure-extrude-parallel/Makefile 2012-11-24 15:51:21 +0000
@@ -1,9 +1,13 @@
1input: clean1input: clean
2 ../../bin/interval --dx 0.05 --reverse -- -0.5 0.5 line2 ../../bin/interval --dx 0.05 --reverse -- -0.5 0.5 line
3 ../../bin/fldecomp -n 2 line3 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l mmat-balancepressure-p0p1cv-gpp2 mmat-balancepressure-p0p1cv-gpp2_flredecomp
4 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l mmat-balancepressure-p0p1cv-hpp2dg mmat-balancepressure-p0p1cv-hpp2dg_flredecomp
5 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l mmat-balancepressure-p0p1-rhop0-vfracp0 mmat-balancepressure-p0p1-rhop0-vfracp0_flredecomp
6 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv_flredecomp
47
5clean:8clean:
6 rm -rf *.stat *.vtu *.pvtu *.convergence *.node *.bound *.ele *.halo *.log-? *.err-? *checkpoint*9 rm -rf *.stat *.vtu *.pvtu *.convergence *.node *.bound *.ele *.halo *.log-? *.err-? *checkpoint*
7 rm -rf mmat-balancepressure*_?10 rm -rf mmat-balancepressure*_?
8 rm -rf mmat-balancepressure*_??11 rm -rf mmat-balancepressure*_??
9 rm -rf matrixdump*12 rm -rf matrixdump*
13 rm -rf *flredecomp*
1014
=== modified file 'tests/mmat-balancepressure-extrude-parallel/mmat-balancepressure-extrude-parallel.xml'
--- tests/mmat-balancepressure-extrude-parallel/mmat-balancepressure-extrude-parallel.xml 2011-10-21 10:05:25 +0000
+++ tests/mmat-balancepressure-extrude-parallel/mmat-balancepressure-extrude-parallel.xml 2012-11-24 15:51:21 +0000
@@ -5,7 +5,7 @@
5 <owner userid="cwilson"/>5 <owner userid="cwilson"/>
6 <tags>flml parallel</tags>6 <tags>flml parallel</tags>
7 <problem_definition length="medium" nprocs="1">7 <problem_definition length="medium" nprocs="1">
8 <command_line>mpiexec -n 2 ../../bin/fluidity -v2 -l mmat-balancepressure-p0p1cv-gpp2.flml &amp;&amp; mv fluidity.log-0 mmat-balancepressure-p0p1cv-gpp2.log-0 &amp;&amp; mv fluidity.log-1 mmat-balancepressure-p0p1cv-gpp2.log-1 &amp;&amp; mv fluidity.err-0 mmat-balancepressure-p0p1cv-gpp2.err-0 &amp;&amp; mv fluidity.err-1 mmat-balancepressure-p0p1cv-gpp2.err-1 &amp;&amp; mpiexec -n 2 ../../bin/fluidity -v2 -l mmat-balancepressure-p0p1cv-hpp2dg.flml &amp;&amp; mv fluidity.log-0 mmat-balancepressure-p0p1cv-hpp2dg.log-0 &amp;&amp; mv fluidity.log-1 mmat-balancepressure-p0p1cv-hpp2dg.log-1 &amp;&amp; mv fluidity.err-0 mmat-balancepressure-p0p1cv-hpp2dg.err-0 &amp;&amp; mv fluidity.err-1 mmat-balancepressure-p0p1cv-hpp2dg.err-1 &amp;&amp; mpiexec -n 2 ../../bin/fluidity -v2 -l mmat-balancepressure-p0p1-rhop0-vfracp0.flml &amp;&amp; mv fluidity.log-0 mmat-balancepressure-p0p1-rhop0-vfracp0.log-0 &amp;&amp; mv fluidity.log-1 mmat-balancepressure-p0p1-rhop0-vfracp0.log-1 &amp;&amp; mv fluidity.err-0 mmat-balancepressure-p0p1-rhop0-vfracp0.err-0 &amp;&amp; mv fluidity.err-1 mmat-balancepressure-p0p1-rhop0-vfracp0.err-1 &amp;&amp; mpiexec -n 2 ../../bin/fluidity -v2 -l mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv.flml &amp;&amp; mv fluidity.log-0 mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv.log-0 &amp;&amp; mv fluidity.log-1 mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv.log-1 &amp;&amp; mv fluidity.err-0 mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv.err-0 &amp;&amp; mv fluidity.err-1 mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv.err-1</command_line>8 <command_line>mpiexec -n 2 ../../bin/fluidity -v2 -l mmat-balancepressure-p0p1cv-gpp2_flredecomp.flml &amp;&amp; mv fluidity.log-0 mmat-balancepressure-p0p1cv-gpp2.log-0 &amp;&amp; mv fluidity.log-1 mmat-balancepressure-p0p1cv-gpp2.log-1 &amp;&amp; mv fluidity.err-0 mmat-balancepressure-p0p1cv-gpp2.err-0 &amp;&amp; mv fluidity.err-1 mmat-balancepressure-p0p1cv-gpp2.err-1 &amp;&amp; mpiexec -n 2 ../../bin/fluidity -v2 -l mmat-balancepressure-p0p1cv-hpp2dg_flredecomp.flml &amp;&amp; mv fluidity.log-0 mmat-balancepressure-p0p1cv-hpp2dg.log-0 &amp;&amp; mv fluidity.log-1 mmat-balancepressure-p0p1cv-hpp2dg.log-1 &amp;&amp; mv fluidity.err-0 mmat-balancepressure-p0p1cv-hpp2dg.err-0 &amp;&amp; mv fluidity.err-1 mmat-balancepressure-p0p1cv-hpp2dg.err-1 &amp;&amp; mpiexec -n 2 ../../bin/fluidity -v2 -l mmat-balancepressure-p0p1-rhop0-vfracp0_flredecomp.flml &amp;&amp; mv fluidity.log-0 mmat-balancepressure-p0p1-rhop0-vfracp0.log-0 &amp;&amp; mv fluidity.log-1 mmat-balancepressure-p0p1-rhop0-vfracp0.log-1 &amp;&amp; mv fluidity.err-0 mmat-balancepressure-p0p1-rhop0-vfracp0.err-0 &amp;&amp; mv fluidity.err-1 mmat-balancepressure-p0p1-rhop0-vfracp0.err-1 &amp;&amp; mpiexec -n 2 ../../bin/fluidity -v2 -l mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv_flredecomp.flml &amp;&amp; mv fluidity.log-0 mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv.log-0 &amp;&amp; mv fluidity.log-1 mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv.log-1 &amp;&amp; mv fluidity.err-0 mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv.err-0 &amp;&amp; mv fluidity.err-1 mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv.err-1</command_line>
9 </problem_definition> 9 </problem_definition>
10 <variables> 10 <variables>
11 <variable name="pressure_p0p1cv_gpp2" language="python">11 <variable name="pressure_p0p1cv_gpp2" language="python">
1212
=== modified file 'tests/mmat-balancepressure-extrude/Makefile'
--- tests/mmat-balancepressure-extrude/Makefile 2011-10-27 22:51:21 +0000
+++ tests/mmat-balancepressure-extrude/Makefile 2012-11-24 15:51:21 +0000
@@ -1,6 +1,5 @@
1input: clean1input: clean
2 ../../bin/interval --dx 0.05 --reverse -- -0.5 0.5 line2 ../../bin/interval --dx 0.05 --reverse -- -0.5 0.5 line
3 ../../bin/fldecomp -n 2 line
43
5clean:4clean:
6 rm -rf *.halo *.log *.d.* *.stat *.vtu *.pvtu *.convergence *.node *.bound *.ele *checkpoint*5 rm -rf *.halo *.log *.d.* *.stat *.vtu *.pvtu *.convergence *.node *.bound *.ele *checkpoint*
76
=== modified file 'tests/mmat-interpolation-2d-parallel/Makefile'
--- tests/mmat-interpolation-2d-parallel/Makefile 2012-09-19 10:31:15 +0000
+++ tests/mmat-interpolation-2d-parallel/Makefile 2012-11-24 15:51:21 +0000
@@ -1,7 +1,7 @@
1input: clean1input: clean
2 gmsh -2 src/2d_square.geo2 gmsh -2 src/2d_square.geo
3 ../../bin/gmsh2triangle --2d src/2d_square.msh3 ../../bin/gmsh2triangle --2d src/2d_square.msh
4 ../../bin/fldecomp -n 2 2d_square4 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l mmat-interpolation mmat-interpolation_flredecomp
55
6clean:6clean:
7 rm -rf *.stat *.msh *.vtu *.pvtu *.node *.ele *.halo *.edge *checkpoint* *convergence* matrixdump* *.log-? *.err-? src/2d_square.msh adapted_state_* mmat-interpolation_[0-3]7 rm -rf *.stat *.msh *.vtu *.pvtu *.node *.ele *.halo *.edge *checkpoint* *convergence* matrixdump* *.log-? *.err-? src/2d_square.msh adapted_state_* mmat-interpolation_[0-3] *flredecomp*
88
=== modified file 'tests/mmat-interpolation-2d-parallel/mmat-interpolation-2d-parallel.xml'
--- tests/mmat-interpolation-2d-parallel/mmat-interpolation-2d-parallel.xml 2012-06-28 08:23:27 +0000
+++ tests/mmat-interpolation-2d-parallel/mmat-interpolation-2d-parallel.xml 2012-11-24 15:51:21 +0000
@@ -4,7 +4,7 @@
4 <owner userid="cwilson"/>4 <owner userid="cwilson"/>
5 <tags>flml 2dadapt zoltan parallel</tags>5 <tags>flml 2dadapt zoltan parallel</tags>
6 <problem_definition length ="short" nprocs = "1">6 <problem_definition length ="short" nprocs = "1">
7 <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l mmat-interpolation.flml &amp;&amp; mv fluidity.log-0 first.log-0 &amp;&amp; mv fluidity.log-1 first.log-1 &amp;&amp; mv fluidity.err-0 first.err-0 &amp;&amp; mv fluidity.err-1 first.err-1 &amp;&amp; ./change_options.py &amp;&amp; mpiexec -np 2 ../../bin/fluidity -v2 -l mmat-interpolation_2_checkpoint.flml &amp;&amp; mv fluidity.log-0 checkpoint.log-0 &amp;&amp; mv fluidity.log-1 checkpoint.log-1 &amp;&amp; mv fluidity.err-0 checkpoint.err-0 &amp;&amp; mv fluidity.err-1 checkpoint.err-1 </command_line>7 <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l mmat-interpolation_flredecomp.flml &amp;&amp; mv fluidity.log-0 first.log-0 &amp;&amp; mv fluidity.log-1 first.log-1 &amp;&amp; mv fluidity.err-0 first.err-0 &amp;&amp; mv fluidity.err-1 first.err-1 &amp;&amp; ./change_options.py &amp;&amp; mpiexec -np 2 ../../bin/fluidity -v2 -l mmat-interpolation_2_checkpoint.flml &amp;&amp; mv fluidity.log-0 checkpoint.log-0 &amp;&amp; mv fluidity.log-1 checkpoint.log-1 &amp;&amp; mv fluidity.err-0 checkpoint.err-0 &amp;&amp; mv fluidity.err-1 checkpoint.err-1 </command_line>
8 </problem_definition>8 </problem_definition>
9 <variables>9 <variables>
10 <variable name="solvers_converged" language="python">10 <variable name="solvers_converged" language="python">
1111
=== modified file 'tests/mmat-interpolation-pseudo2d-parallel/Makefile'
--- tests/mmat-interpolation-pseudo2d-parallel/Makefile 2012-06-28 08:23:27 +0000
+++ tests/mmat-interpolation-pseudo2d-parallel/Makefile 2012-11-24 15:51:21 +0000
@@ -1,8 +1,7 @@
1input: clean1input: clean
2 gmsh -3 src/2d_square.geo2 gmsh -3 src/2d_square.geo
3 ../../bin/gmsh2triangle src/2d_square.msh3 ../../bin/gmsh2triangle src/2d_square.msh
4 ../../bin/fldecomp -n 2 2d_square4 mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l mmat-interpolation mmat-interpolation_flredecomp
55
6clean:6clean:
7 rm -rf *.stat *.vtu *.pvtu *.node *.ele *.halo *.face *checkpoint* *convergence* *.log-? *.err-? src/2d_square.msh \7 rm -rf *.stat *.vtu *.pvtu *.msh *.node *.ele *.halo *.face *edge *checkpoint* *convergence* matrixdump* *.log-? *.err-? src/2d_square.msh adapted_state_* mmat-interpolation_[0-3] bounding_box* *metric* *flredecomp*
8 matrixdump matrixdump.info
98
=== modified file 'tests/mmat-interpolation-pseudo2d-parallel/mmat-interpolation-pseudo2d-parallel.xml'
--- tests/mmat-interpolation-pseudo2d-parallel/mmat-interpolation-pseudo2d-parallel.xml 2012-06-28 08:23:27 +0000
+++ tests/mmat-interpolation-pseudo2d-parallel/mmat-interpolation-pseudo2d-parallel.xml 2012-11-24 15:51:21 +0000
@@ -4,7 +4,7 @@
4 <owner userid="cwilson"/>4 <owner userid="cwilson"/>
5 <tags>flml 2dadapt parallel</tags>5 <tags>flml 2dadapt parallel</tags>
6 <problem_definition length ="special" nprocs = "1">6 <problem_definition length ="special" nprocs = "1">
7 <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l mmat-interpolation.flml &amp;&amp; mv fluidity.log-0 first.log-0 &amp;&amp; mv fluidity.log-1 first.log-1 &amp;&amp; mv fluidity.err-0 first.err-0 &amp;&amp; mv fluidity.err-1 first.err-1 &amp;&amp; ./change_options.py &amp;&amp; mpiexec -np 2 ../../bin/fluidity -v2 -l mmat-interpolation_2_checkpoint.flml &amp;&amp; mv fluidity.log-0 checkpoint.log-0 &amp;&amp; mv fluidity.log-1 checkpoint.log-1 &amp;&amp; mv fluidity.err-0 checkpoint.err-0 &amp;&amp; mv fluidity.err-1 checkpoint.err-1 </command_line>7 <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l mmat-interpolation_flredecomp.flml &amp;&amp; mv fluidity.log-0 first.log-0 &amp;&amp; mv fluidity.log-1 first.log-1 &amp;&amp; mv fluidity.err-0 first.err-0 &amp;&amp; mv fluidity.err-1 first.err-1 &amp;&amp; ./change_options.py &amp;&amp; mpiexec -np 2 ../../bin/fluidity -v2 -l mmat-interpolation_2_checkpoint.flml &amp;&amp; mv fluidity.log-0 checkpoint.log-0 &amp;&amp; mv fluidity.log-1 checkpoint.log-1 &amp;&amp; mv fluidity.err-0 checkpoint.err-0 &amp;&amp; mv fluidity.err-1 checkpoint.err-1 </command_line>
8 </problem_definition>8 </problem_definition>
9 <variables>9 <variables>
10 <variable name="solvers_converged" language="python">10 <variable name="solvers_converged" language="python">
1111
=== modified file 'tests/parallel_dg/Makefile'
--- tests/parallel_dg/Makefile 2010-03-30 01:05:26 +0000
+++ tests/parallel_dg/Makefile 2012-11-24 15:51:21 +0000
@@ -10,14 +10,11 @@
1010
11input: src/$(MESH).tar.bz211input: src/$(MESH).tar.bz2
12 tar -xvjf src/$(MESHARCH).tar.bz212 tar -xvjf src/$(MESHARCH).tar.bz2
13ifdef NP
14 fldecomp -n $(NP) -v $(MESH) > decomp.log 2> decomp_err.log
15endif
16 13
17clean: clean-mesh clean-run-debug14clean: clean-mesh clean-run-debug
18clean-mesh:15clean-mesh:
19 rm -f $(MESH).ele $(MESH).face $(MESH).node16 rm -f $(MESH).ele $(MESH).face $(MESH).node
20 rm -f $(MESH)_?*.ele $(MESH)_?*.face $(MESH)_?*.halo $(MESH)_?*.node decomp.log decomp_err.log17 rm -f $(MESH)_?*.ele $(MESH)_?*.face $(MESH)_?*.halo $(MESH)_?*.node
21clean-run:18clean-run:
22 rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*.vtu19 rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*.vtu
23 rm -f $(FLMLMODEL).detectors $(FLMLMODEL).stat tmpf*20 rm -f $(FLMLMODEL).detectors $(FLMLMODEL).stat tmpf*
@@ -28,6 +25,8 @@
28 rm -f $(FLMLMODEL)_?*_?*_checkpoint.pvtu $(FLMLMODEL)_?*_?*_checkpoint.vtu25 rm -f $(FLMLMODEL)_?*_?*_checkpoint.pvtu $(FLMLMODEL)_?*_?*_checkpoint.vtu
29 rm -f $(FLMLMODEL)_?*_checkpoint.ele $(FLMLMODEL)_?*_checkpoint.face $(FLMLMODEL)_?*_checkpoint.node26 rm -f $(FLMLMODEL)_?*_checkpoint.ele $(FLMLMODEL)_?*_checkpoint.face $(FLMLMODEL)_?*_checkpoint.node
30 rm -f $(FLMLMODEL)_?*_checkpoint.vtu27 rm -f $(FLMLMODEL)_?*_checkpoint.vtu
28 rm -f *flredecomp*
29 rm -rf $(FLMLMODEL)_[0-9] $(FLMLMODEL)_[0-9][0-9]
31clean-run-debug: clean-run30clean-run-debug: clean-run
32 rm -f adapted_mesh_?*.vtu bounding_box_?*_?*.vtu final_metric_?*.vtu gmon.out gradation_metric_?*.vtu interpolation_metric_final_?*.vtu interpolation_metric_hessian_?*_?*.vtu interpolation_metric_merge_?*_?*.vtu interpolation_metric_metric_?*_?*.vtu metric_input_?*_?*.vtu31 rm -f adapted_mesh_?*.vtu bounding_box_?*_?*.vtu final_metric_?*.vtu gmon.out gradation_metric_?*.vtu interpolation_metric_final_?*.vtu interpolation_metric_hessian_?*_?*.vtu interpolation_metric_merge_?*_?*.vtu interpolation_metric_metric_?*_?*.vtu metric_input_?*_?*.vtu
33 rm -f adapted_mesh.face adapted_mesh.ele adapted_mesh.node32 rm -f adapted_mesh.face adapted_mesh.ele adapted_mesh.node
@@ -36,13 +35,15 @@
36 35
37run: clean-run input36run: clean-run input
38ifdef NP37ifdef NP
39 mpiexec -np $(NP) $(FLUIDITY) $(FLFLAGS) $(MODEL).flml38 mpiexec -n $(NP) ../../bin/flredecomp -i 1 -o $(NP) -v -l $(FLMLMODEL) $(FLMLMODEL)_flredecomp
39 mpiexec -np $(NP) $(FLUIDITY) $(FLFLAGS) $(MODEL)_flredecomp.flml
40else40else
41 $(FLUIDITY) $(FLFLAGS) $(MODEL).flml41 $(FLUIDITY) $(FLFLAGS) $(MODEL).flml
42endif42endif
43run-debug: clean-run-debug input43run-debug: clean-run-debug input
44ifdef NP44ifdef NP
45 mpiexec -np $(NP) $(FLUIDITY)-debug $(FLFLAGS) $(MODEL).flml45 mpiexec -n $(NP) ../../bin/flredecomp -i 1 -o $(NP) -v -l $(FLMLMODEL) $(FLMLMODEL)_flredecomp
46 mpiexec -np $(NP) $(FLUIDITY)-debug $(FLFLAGS) $(MODEL)_flredecomp.flml
46else47else
47 $(FLUIDITY)-debug $(FLFLAGS) $(MODEL).flml48 $(FLUIDITY)-debug $(FLFLAGS) $(MODEL).flml
48endif49endif
4950
=== modified file 'tests/parallel_dg/parallel_dg.xml'
--- tests/parallel_dg/parallel_dg.xml 2011-10-21 10:05:25 +0000
+++ tests/parallel_dg/parallel_dg.xml 2012-11-24 15:51:21 +0000
@@ -4,7 +4,7 @@
4 <owner userid="dham"/>4 <owner userid="dham"/>
5 <tags>flml parallel</tags>5 <tags>flml parallel</tags>
6 <problem_definition length = "special" nprocs = "2">6 <problem_definition length = "special" nprocs = "2">
7 <command_line>make clean-run-debug &amp;&amp; mpiexec fluidity -v2 -l cube.flml</command_line>7 <command_line>make clean-run-debug &amp;&amp; mpiexec ../../bin/flredecomp -i 1 -o 2 -v -l cube cube_flredecomp &amp;&amp; mpiexec fluidity -v2 -l cube_flredecomp.flml</command_line>
8 </problem_definition>8 </problem_definition>
9 <variables>9 <variables>
10 <variable name = "times" language = "python">10 <variable name = "times" language = "python">
@@ -24,7 +24,8 @@
24 </variable>24 </variable>
25 <variable name = "final_vtus" language = "python">25 <variable name = "final_vtus" language = "python">
26import vtktools26import vtktools
27final_vtus = [vtktools.vtu("cube_2_0.vtu"), vtktools.vtu("cube_2_1.vtu")]27# parallel, so pvtu
28final_vtus = [vtktools.vtu("cube_2.pvtu")]
28 </variable>29 </variable>
29 </variables>30 </variables>
30 <pass_tests>31 <pass_tests>
@@ -36,15 +37,16 @@
36 <test name = "Solvers converged" language = "python">37 <test name = "Solvers converged" language = "python">
37assert(solvers_converged)38assert(solvers_converged)
38 </test>39 </test>
39 <test name = "Correct velocity" language = "python">40 <test name = "Correct velocity within 3.0e-3" language = "python">
40for vtu in final_vtus:41for vtu in final_vtus:
41 print "Testing vtu " + vtu.filename42 print "Testing vtu " + vtu.filename
42 velocity = vtu.GetVectorField("Velocity")43 velocity = vtu.GetVectorField("Velocity")
43 for vel in velocity:44 for vel in velocity:
44 assert(len(vel) == 3)45 assert(len(vel) == 3)
45 assert(abs(vel[0] - 1.0) &lt; 1.0e6)46 # tolerance loosened from 1.0e-6 to 3.0e-3
46 assert(abs(vel[1]) &lt; 1.0e-6)47 assert(abs(vel[0] - 1.0) &lt; 3.0e-3)
47 assert(abs(vel[2]) &lt; 1.0e-6)48 assert(abs(vel[1]) &lt; 3.0e-3)
49 assert(abs(vel[2]) &lt; 3.0e-3)
48 </test>50 </test>
49 </pass_tests>51 </pass_tests>
50 <warn_tests>52 <warn_tests>
5153
=== modified file 'tests/parallel_p0_consistent_interpolation/Makefile'
--- tests/parallel_p0_consistent_interpolation/Makefile 2012-06-28 08:23:27 +0000
+++ tests/parallel_p0_consistent_interpolation/Makefile 2012-11-24 15:51:21 +0000
@@ -5,7 +5,6 @@
55
6input: src/$(MESH).tar.bz26input: src/$(MESH).tar.bz2
7 tar -xvjf src/$(MESH).tar.bz27 tar -xvjf src/$(MESH).tar.bz2
8 ../../bin/fldecomp -n 2 $(MESH)
98
10clean: clean-mesh clean-run9clean: clean-mesh clean-run
11 rm -rf parallel_p0_consistent_interpolation_*10 rm -rf parallel_p0_consistent_interpolation_*
@@ -15,3 +14,4 @@
15clean-run:14clean-run:
16 rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*_?*.vtu $(FLMLMODEL).stat fluidity.err-* fluidity.log-* \15 rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*_?*.vtu $(FLMLMODEL).stat fluidity.err-* fluidity.log-* \
17 matrixdump matrixdump.info16 matrixdump matrixdump.info
17 rm -rf *flredecomp*
1818
=== modified file 'tests/parallel_p0_consistent_interpolation/parallel_p0_consistent_interpolation.xml'
--- tests/parallel_p0_consistent_interpolation/parallel_p0_consistent_interpolation.xml 2012-06-28 08:23:27 +0000
+++ tests/parallel_p0_consistent_interpolation/parallel_p0_consistent_interpolation.xml 2012-11-24 15:51:21 +0000
@@ -4,7 +4,7 @@
4 <owner userid="cwilson"/>4 <owner userid="cwilson"/>
5 <tags>flml zoltan parallel</tags>5 <tags>flml zoltan parallel</tags>
6 <problem_definition length="short" nprocs="1">6 <problem_definition length="short" nprocs="1">
7 <command_line>make clean-run; mpiexec -n 2 ../../bin/fluidity -v2 -l parallel_p0_consistent_interpolation.flml</command_line>7 <command_line>make clean-run; mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l parallel_p0_consistent_interpolation parallel_p0_consistent_interpolation_flredecomp; mpiexec -n 2 ../../bin/fluidity -v2 -l parallel_p0_consistent_interpolation_flredecomp.flml</command_line>
8 </problem_definition>8 </problem_definition>
9 <variables>9 <variables>
10 <variable name="solvers_converged" language="python">10 <variable name="solvers_converged" language="python">
1111
=== modified file 'tests/parallel_p0_consistent_interpolation_3d/Makefile'
--- tests/parallel_p0_consistent_interpolation_3d/Makefile 2012-06-28 08:23:27 +0000
+++ tests/parallel_p0_consistent_interpolation_3d/Makefile 2012-11-24 15:51:21 +0000
@@ -6,7 +6,6 @@
6input: src/$(MESH).geo6input: src/$(MESH).geo
7 gmsh -3 src/$(MESH).geo7 gmsh -3 src/$(MESH).geo
8 ../../bin/gmsh2triangle src/$(MESH).msh8 ../../bin/gmsh2triangle src/$(MESH).msh
9 ../../bin/fldecomp -n 3 $(MESH)
109
11clean: clean-mesh clean-run10clean: clean-mesh clean-run
12 rm -rf parallel_p0_consistent_interpolation_[01]* parallel_p0_consistent_interpolation.stat11 rm -rf parallel_p0_consistent_interpolation_[01]* parallel_p0_consistent_interpolation.stat
@@ -17,3 +16,4 @@
17clean-run:16clean-run:
18 rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*_?*.vtu $(FLMLMODEL).stat fluidity.err-* fluidity.log-* \17 rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*_?*.vtu $(FLMLMODEL).stat fluidity.err-* fluidity.log-* \
19 matrixdump matrixdump.info18 matrixdump matrixdump.info
19 rm -rf *flredecomp*
2020
=== modified file 'tests/parallel_p0_consistent_interpolation_3d/parallel_p0_consistent_interpolation_3d.xml'
--- tests/parallel_p0_consistent_interpolation_3d/parallel_p0_consistent_interpolation_3d.xml 2012-06-28 08:23:27 +0000
+++ tests/parallel_p0_consistent_interpolation_3d/parallel_p0_consistent_interpolation_3d.xml 2012-11-24 15:51:21 +0000
@@ -4,7 +4,7 @@
4 <owner userid="cwilson"/>4 <owner userid="cwilson"/>
5 <tags>flml zoltan parallel</tags>5 <tags>flml zoltan parallel</tags>
6 <problem_definition length="short" nprocs="1">6 <problem_definition length="short" nprocs="1">
7 <command_line>make clean-run; mpiexec -n 3 ../../bin/fluidity -v2 -l parallel_p0_consistent_interpolation.flml</command_line>7 <command_line>make clean-run; mpiexec -n 3 ../../bin/flredecomp -i 1 -o 3 -v -l parallel_p0_consistent_interpolation parallel_p0_consistent_interpolation_flredecomp; mpiexec -n 3 ../../bin/fluidity -v2 -l parallel_p0_consistent_interpolation_flredecomp.flml</command_line>
8 </problem_definition>8 </problem_definition>
9 <variables>9 <variables>
10 <variable name="solvers_converged" language="python">10 <variable name="solvers_converged" language="python">
1111
=== modified file 'tests/parallel_p1_consistent_interpolation/Makefile'
--- tests/parallel_p1_consistent_interpolation/Makefile 2012-06-28 08:23:27 +0000
+++ tests/parallel_p1_consistent_interpolation/Makefile 2012-11-24 15:51:21 +0000
@@ -5,7 +5,6 @@
55
6input: src/$(MESH).tar.bz26input: src/$(MESH).tar.bz2
7 tar -xvjf src/$(MESH).tar.bz27 tar -xvjf src/$(MESH).tar.bz2
8 fldecomp -n 2 $(MESH)
98
10clean: clean-mesh clean-run9clean: clean-mesh clean-run
11 rm -rf parallel_p1_consistent_interpolation_*10 rm -rf parallel_p1_consistent_interpolation_*
@@ -15,3 +14,4 @@
15clean-run:14clean-run:
16 rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*_?*.vtu $(FLMLMODEL).stat fluidity.err-* fluidity.log-* \15 rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*_?*.vtu $(FLMLMODEL).stat fluidity.err-* fluidity.log-* \
17 matrixdump matrixdump.info16 matrixdump matrixdump.info
17 rm -rf *flredecomp*
1818
=== modified file 'tests/parallel_p1_consistent_interpolation/parallel_p1_consistent_interpolation.xml'
--- tests/parallel_p1_consistent_interpolation/parallel_p1_consistent_interpolation.xml 2012-06-28 08:23:27 +0000
+++ tests/parallel_p1_consistent_interpolation/parallel_p1_consistent_interpolation.xml 2012-11-24 15:51:21 +0000
@@ -4,7 +4,7 @@
4 <owner userid="cwilson"/>4 <owner userid="cwilson"/>
5 <tags>flml zoltan parallel</tags>5 <tags>flml zoltan parallel</tags>
6 <problem_definition length="short" nprocs="1">6 <problem_definition length="short" nprocs="1">
7 <command_line>make clean-run; mpiexec -n 2 ../../bin/fluidity -v2 -l parallel_p1_consistent_interpolation.flml</command_line>7 <command_line>make clean-run; mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l parallel_p1_consistent_interpolation parallel_p1_consistent_interpolation_flredecomp; mpiexec -n 2 ../../bin/fluidity -v2 -l parallel_p1_consistent_interpolation_flredecomp.flml</command_line>
8 </problem_definition>8 </problem_definition>
9 <variables>9 <variables>
10 <variable name="solvers_converged" language="python">10 <variable name="solvers_converged" language="python">
1111
=== modified file 'tests/parallel_p2_consistent_interpolation/Makefile'
--- tests/parallel_p2_consistent_interpolation/Makefile 2012-06-28 08:23:27 +0000
+++ tests/parallel_p2_consistent_interpolation/Makefile 2012-11-24 15:51:21 +0000
@@ -5,7 +5,6 @@
55
6input: src/$(MESH).tar.bz26input: src/$(MESH).tar.bz2
7 tar -xvjf src/$(MESH).tar.bz27 tar -xvjf src/$(MESH).tar.bz2
8 fldecomp -n 2 $(MESH)
98
10clean: clean-mesh clean-run9clean: clean-mesh clean-run
11 rm -rf parallel_p2_consistent_interpolation_*10 rm -rf parallel_p2_consistent_interpolation_*
@@ -15,3 +14,4 @@
15clean-run:14clean-run:
16 rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*_?*.vtu $(FLMLMODEL).stat fluidity.err-* fluidity.log-* \15 rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*_?*.vtu $(FLMLMODEL).stat fluidity.err-* fluidity.log-* \
17 matrixdump matrixdump.info16 matrixdump matrixdump.info
17 rm -rf *flredecomp*
1818
=== modified file 'tests/parallel_p2_consistent_interpolation/parallel_p2_consistent_interpolation.xml'
--- tests/parallel_p2_consistent_interpolation/parallel_p2_consistent_interpolation.xml 2012-06-28 08:23:27 +0000
+++ tests/parallel_p2_consistent_interpolation/parallel_p2_consistent_interpolation.xml 2012-11-24 15:51:21 +0000
@@ -4,7 +4,7 @@
4 <owner userid="pef"/>4 <owner userid="pef"/>
5 <tags>flml zoltan parallel</tags>5 <tags>flml zoltan parallel</tags>
6 <problem_definition length="short" nprocs="1">6 <problem_definition length="short" nprocs="1">
7 <command_line>make clean-run; mpiexec -n 2 ../../bin/fluidity -v2 -l parallel_p2_consistent_interpolation.flml</command_line>7 <command_line>make clean-run; mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l parallel_p2_consistent_interpolation parallel_p2_consistent_interpolation_flredecomp; mpiexec -n 2 ../../bin/fluidity -v2 -l parallel_p2_consistent_interpolation_flredecomp.flml</command_line>
8 </problem_definition>8 </problem_definition>
9 <variables>9 <variables>
10 <variable name="solvers_converged" language="python">10 <variable name="solvers_converged" language="python">
1111
=== modified file 'tests/petsc_readnsolve/Makefile'
--- tests/petsc_readnsolve/Makefile 2010-12-15 18:51:47 +0000
+++ tests/petsc_readnsolve/Makefile 2012-11-24 15:51:21 +0000
@@ -1,6 +1,5 @@
1input: clean1input: clean
2 gmsh -3 -bin src/standing_wave.geo -o standing_wave.msh2 gmsh -3 -bin src/standing_wave.geo -o standing_wave.msh
3 ../../bin/fldecomp -m gmsh -n 3 standing_wave
43
5clean:4clean:
6 rm -f standing_wave.stat5 rm -f standing_wave.stat
@@ -11,3 +10,4 @@
11 rm -f petsc_readnsolve.log* petsc_readnsolve.err*10 rm -f petsc_readnsolve.log* petsc_readnsolve.err*
12 rm -f velocity_matrixdump pressure_matrixdump11 rm -f velocity_matrixdump pressure_matrixdump
13 rm -rf standing_wave_[0-9]*12 rm -rf standing_wave_[0-9]*
13 rm -rf *flredecomp*
1414
=== modified file 'tests/petsc_readnsolve/petsc_readnsolve.xml'
--- tests/petsc_readnsolve/petsc_readnsolve.xml 2011-04-23 11:28:47 +0000
+++ tests/petsc_readnsolve/petsc_readnsolve.xml 2012-11-24 15:51:21 +0000
@@ -4,18 +4,24 @@
4 <owner userid="skramer"/>4 <owner userid="skramer"/>
5 <tags> parallel </tags>5 <tags> parallel </tags>
6 <problem_definition length="short" nprocs="1">6 <problem_definition length="short" nprocs="1">
7 <command_line>( mpiexec -n 3 fluidity -v2 -l standing_wave_failing_velocity.flml 2&gt;&amp;1 ) &gt; /dev/null;7 <comment>This is a lie: we're actually using nprocs=4. First make a common flredecomped mesh and edit the flml files to use this, then do the actual test.</comment>
8 <command_line>mpiexec -n 4 ../../bin/flredecomp -i 1 -o 4 -v -l standing_wave_failing_velocity standing_wave_failing_velocity_flredecomp;
9mpiexec -n 4 ../../bin/flredecomp -i 1 -o 4 -v -l standing_wave_failing_pressure standing_wave_failing_pressure_flredecomp;
10mpiexec -n 4 ../../bin/flredecomp -i 1 -o 4 -v -l standing_wave standing_wave_flredecomp;
11sed --in-place s/failing_velocity_flredecomp_CoordinateMesh/flredecomp_CoordinateMesh/g standing_wave_failing_velocity_flredecomp.flml;
12sed --in-place s/failing_pressure_flredecomp_CoordinateMesh/flredecomp_CoordinateMesh/g standing_wave_failing_pressure_flredecomp.flml;
13rm -f *failing_velocity_flredecomp_CoordinateMesh* *failing_pressure_flredecomp_CoordinateMesh*
14( mpiexec -n 4 fluidity -v2 -l standing_wave_failing_velocity_flredecomp.flml 2&gt;&amp;1 ) &gt; /dev/null;
8mv matrixdump velocity_matrixdump;15mv matrixdump velocity_matrixdump;
9mkdir -p velocity_logs;16mkdir -p velocity_logs;
10mv fluidity.log* fluidity.err* velocity_logs/;17mv fluidity.log* fluidity.err* velocity_logs/;
11( mpiexec -n 3 fluidity -v2 -l standing_wave_failing_pressure.flml 2&gt;&amp;1 ) &gt; /dev/null;18( mpiexec -n 4 fluidity -v2 -l standing_wave_failing_pressure_flredecomp.flml 2&gt;&amp;1 ) &gt; /dev/null;
12mv matrixdump pressure_matrixdump;19mv matrixdump pressure_matrixdump;
13rm matrixdump.info;20rm matrixdump.info;
14mpiexec -n 3 petsc_readnsolve -v -l -prns_filename velocity_matrixdump standing_wave.flml Velocity;21mpiexec -n 4 petsc_readnsolve -v -l -prns_filename velocity_matrixdump standing_wave_flredecomp.flml Velocity;
15mv petsc_readnsolve.err* petsc_readnsolve.log* velocity_logs/;22mv petsc_readnsolve.err* petsc_readnsolve.log* velocity_logs/;
16mpiexec -n 3 petsc_readnsolve -v -l -prns_filename pressure_matrixdump standing_wave.flml Pressure;23mpiexec -n 4 petsc_readnsolve -v -l -prns_filename pressure_matrixdump standing_wave_flredecomp.flml Pressure;
17rm -rf fluidity.err-*<comment>Note we use ; and no &amp;&amp; as most of these commands will actually fail (on purpose). Also removing fluidity.err-* from "failing solve runs" to prevent noise in testharness output. For same reason redirecting mpiexec output of failing fluidity runs to the bin.</comment></command_line>24rm -rf fluidity.err-*<comment>Note we use ; and no &amp;&amp; as most of these commands will actually fail (on purpose). Also removing fluidity.err-* from "failing solve runs" to prevent noise in testharness output. For same reason redirecting mpiexec output of failing fluidity runs to the bin.</comment></command_line>
18 <comment>This is a lie: we're actually using nprocs=3.</comment>
19 </problem_definition>25 </problem_definition>
20 <variables>26 <variables>
21 <variable name="velocity_error_logs" language="python">import glob27 <variable name="velocity_error_logs" language="python">import glob
2228
=== modified file 'tests/photosynthetic_radiation/Makefile'
--- tests/photosynthetic_radiation/Makefile 2012-09-19 10:31:15 +0000
+++ tests/photosynthetic_radiation/Makefile 2012-11-24 15:51:21 +0000
@@ -1,8 +1,7 @@
1input: clean1input: clean
2 ../../bin/gmsh2triangle src/column.msh2 ../../bin/gmsh2triangle src/column.msh
3 ../../bin/fldecomp -n 2 column
43
5clean:4clean:
6 rm -f *.halo *.face *.ele *.edge *.node *.poly *.pvtu *.vtu *.s *.d.1 *.stat \5 rm -f *.halo *.face *.ele *.edge *.node *.poly *.pvtu *.vtu *.s *.d.1 *.stat \
7 matrixdump matrixdump.info6 matrixdump matrixdump.info
8 rm -rf photosynthetic_radiation_?7 rm -rf photosynthetic_radiation_? *flredecomp*
98
=== modified file 'tests/photosynthetic_radiation/photosynthetic_radiation.xml'
--- tests/photosynthetic_radiation/photosynthetic_radiation.xml 2012-08-02 13:03:52 +0000
+++ tests/photosynthetic_radiation/photosynthetic_radiation.xml 2012-11-24 15:51:21 +0000
@@ -5,7 +5,7 @@
5 <owner userid="jhill1"/>5 <owner userid="jhill1"/>
6 <tags>flml biology par</tags>6 <tags>flml biology par</tags>
7 <problem_definition length="short" nprocs="1">7 <problem_definition length="short" nprocs="1">
8 <command_line>mpiexec -n 2 fluidity photosynthetic_radiation.flml </command_line>8 <command_line>mpiexec -n 2 flredecomp -i 1 -o 2 photosynthetic_radiation photosynthetic_radiation_flredecomp &amp;&amp; mpiexec -n 2 fluidity photosynthetic_radiation_flredecomp.flml </command_line>
9 <!-- Calculate the amount of light in the ocean. This version is DG. -->9 <!-- Calculate the amount of light in the ocean. This version is DG. -->
10 </problem_definition>10 </problem_definition>
11 <variables>11 <variables>
1212
=== modified file 'tests/spherical_patch/Makefile'
--- tests/spherical_patch/Makefile 2012-09-19 10:31:15 +0000
+++ tests/spherical_patch/Makefile 2012-11-24 15:51:21 +0000
@@ -1,10 +1,9 @@
1GMSH_GEO_FILE=src/spherical_segment.geo1GMSH_GEO_FILE=src/spherical_segment.geo
2NPROCS=3
3input: clean2input: clean
4 gmsh -2 -bin $(GMSH_GEO_FILE) -o patch.msh3 gmsh -2 -bin $(GMSH_GEO_FILE) -o patch.msh
5 ../../bin/fldecomp -n $(NPROCS) -s -m gmsh patch
64
7clean:5clean:
8 rm -rf *.msh *.halo *.vtu *.stat serial.flml fluidity.*6 rm -rf *.msh *.halo *.vtu *.stat serial.flml fluidity.*
9 rm -rf spherical_segment_* *.pvtu7 rm -rf spherical_segment_* *.pvtu
10 rm -rf flredecomp.* matrixdump*8 rm -rf *flredecomp* matrixdump*
9
1110
=== modified file 'tests/spherical_patch/spherical_patch.xml'
--- tests/spherical_patch/spherical_patch.xml 2012-03-26 17:53:59 +0000
+++ tests/spherical_patch/spherical_patch.xml 2012-11-24 15:51:21 +0000
@@ -3,7 +3,8 @@
3 <name>spherical patch<comment>Tests gmsh reading and writing on the sphere with 2d horizontal spherical input mesh, checkpointing and flredecomp.</comment></name>3 <name>spherical patch<comment>Tests gmsh reading and writing on the sphere with 2d horizontal spherical input mesh, checkpointing and flredecomp.</comment></name>
4 <owner userid="skramer"/>4 <owner userid="skramer"/>
5 <problem_definition length="short" nprocs="1">5 <problem_definition length="short" nprocs="1">
6 <command_line>mpirun -np 3 fluidity -v2 -l spherical_segment.flml &amp;&amp;6 <command_line>mpiexec -n 3 ../../bin/flredecomp -i 1 -o 3 -v -l spherical_segment spherical_segment_flredecomp &amp;&amp;
7mpirun -np 3 fluidity -v2 -l spherical_segment_flredecomp.flml &amp;&amp;
7mpirun -np 3 ../../bin/flredecomp -v -l -i 3 -o 1 spherical_segment_2_checkpoint serial &amp;&amp;8mpirun -np 3 ../../bin/flredecomp -v -l -i 3 -o 1 spherical_segment_2_checkpoint serial &amp;&amp;
8fluidity -v2 -l serial.flml</command_line>9fluidity -v2 -l serial.flml</command_line>
9 </problem_definition>10 </problem_definition>
1011
=== modified file 'tests/square-convection-parallel-trivial/Makefile'
--- tests/square-convection-parallel-trivial/Makefile 2011-10-21 10:05:25 +0000
+++ tests/square-convection-parallel-trivial/Makefile 2012-11-24 15:51:21 +0000
@@ -7,8 +7,7 @@
7default: input7default: input
88
9input: clean9input: clean
10 fldecomp -n 2 -f src/$(MESH)10 cp src/*.node src/*.ele src/*.edge .
11 mv src/*_* .
1211
13clean: clean-mesh clean-run-debug 12clean: clean-mesh clean-run-debug
14 rm -fr *.ele *.node *.halo *.edge *checkpoint* square-convection.detectors.dat square-convection_* fluidity.[le]*13 rm -fr *.ele *.node *.halo *.edge *checkpoint* square-convection.detectors.dat square-convection_* fluidity.[le]*
@@ -16,6 +15,7 @@
16 rm -f $(MESH).edge $(MESH).ele $(MESH).node15 rm -f $(MESH).edge $(MESH).ele $(MESH).node
17clean-run:16clean-run:
18 rm -f $(FLMLMODEL)_?*.vtu $(FLMLMODEL)_?*_checkpoint.edge $(FLMLMODEL)_?*_checkpoint.ele $(FLMLMODEL)_?*_checkpoint.node $(FLMLMODEL)_?*_checkpoint.flml $(FLMLMODEL)_?*_?*_checkpoint.vtu $(FLMLMODEL).detectors $(FLMLMODEL).stat fluidity.err-0 fluidity.log-0 matrixdump matrixdump.info17 rm -f $(FLMLMODEL)_?*.vtu $(FLMLMODEL)_?*_checkpoint.edge $(FLMLMODEL)_?*_checkpoint.ele $(FLMLMODEL)_?*_checkpoint.node $(FLMLMODEL)_?*_checkpoint.flml $(FLMLMODEL)_?*_?*_checkpoint.vtu $(FLMLMODEL).detectors $(FLMLMODEL).stat fluidity.err-0 fluidity.log-0 matrixdump matrixdump.info
18 rm -rf *flredecomp*
19clean-run-debug: clean-run19clean-run-debug: clean-run
20 rm -f adapted_mesh_?*.vtu bounding_box_?*_?*.vtu final_metric_?*.vtu gmon.out gradation_metric_?*.vtu interpolation_metric_final_?*.vtu interpolation_metric_hessian_?*_?*.vtu interpolation_metric_merge_?*_?*.vtu interpolation_metric_metric_?*_?*.vtu metric_input_?*_?*.vtu20 rm -f adapted_mesh_?*.vtu bounding_box_?*_?*.vtu final_metric_?*.vtu gmon.out gradation_metric_?*.vtu interpolation_metric_final_?*.vtu interpolation_metric_hessian_?*_?*.vtu interpolation_metric_merge_?*_?*.vtu interpolation_metric_metric_?*_?*.vtu metric_input_?*_?*.vtu
2121
2222
=== modified file 'tests/square-convection-parallel-trivial/square-convection-parallel-trivial.xml'
--- tests/square-convection-parallel-trivial/square-convection-parallel-trivial.xml 2012-06-28 08:23:27 +0000
+++ tests/square-convection-parallel-trivial/square-convection-parallel-trivial.xml 2012-11-24 15:51:21 +0000
@@ -4,7 +4,8 @@
4 <owner userid="pfarrell"/>4 <owner userid="pfarrell"/>
5 <tags>flml parallel</tags>5 <tags>flml parallel</tags>
6 <problem_definition length = "short" nprocs = "1">6 <problem_definition length = "short" nprocs = "1">
7 <command_line>mpiexec -n 2 ../../bin/fluidity -v2 -l square-convection.flml</command_line>7 <command_line>mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l square-convection square-convection_flredecomp &amp;&amp;
8mpiexec -n 2 ../../bin/fluidity -v2 -l square-convection_flredecomp.flml</command_line>
8 </problem_definition>9 </problem_definition>
9 <variables>10 <variables>
10 <variable name="solvers_converged" language="python">11 <variable name="solvers_converged" language="python">
1112
=== modified file 'tests/square-convection-parallel/Makefile'
--- tests/square-convection-parallel/Makefile 2011-10-27 22:51:21 +0000
+++ tests/square-convection-parallel/Makefile 2012-11-24 15:51:21 +0000
@@ -7,8 +7,7 @@
7default: input7default: input
88
9input: clean9input: clean
10 fldecomp -n 2 -f src/$(MESH)10 cp src/* .
11 mv src/*_* .
1211
13clean: clean-mesh clean-run-debug 12clean: clean-mesh clean-run-debug
14clean-mesh:13clean-mesh:
@@ -16,6 +15,7 @@
16clean-run:15clean-run:
17 rm -f *.dat *.halo *.pvtu *.vtu *.edge *.ele *.node $(FLMLMODEL)_?*_checkpoint.flml *.detectors *.stat *.err-? *.log-? matrixdump matrixdump.info16 rm -f *.dat *.halo *.pvtu *.vtu *.edge *.ele *.node $(FLMLMODEL)_?*_checkpoint.flml *.detectors *.stat *.err-? *.log-? matrixdump matrixdump.info
18 rm -rf $(MODEL)*_checkpoint $(MODEL)_?17 rm -rf $(MODEL)*_checkpoint $(MODEL)_?
18 rm -rf *flredecomp*
19clean-run-debug: clean-run19clean-run-debug: clean-run
20 rm -f adapted_mesh_?*.vtu bounding_box_?*_?*.vtu final_metric_?*.vtu gmon.out gradation_metric_?*.vtu interpolation_metric_final_?*.vtu interpolation_metric_hessian_?*_?*.vtu interpolation_metric_merge_?*_?*.vtu interpolation_metric_metric_?*_?*.vtu metric_input_?*_?*.vtu20 rm -f adapted_mesh_?*.vtu bounding_box_?*_?*.vtu final_metric_?*.vtu gmon.out gradation_metric_?*.vtu interpolation_metric_final_?*.vtu interpolation_metric_hessian_?*_?*.vtu interpolation_metric_merge_?*_?*.vtu interpolation_metric_metric_?*_?*.vtu metric_input_?*_?*.vtu
2121
2222
=== modified file 'tests/square-convection-parallel/square-convection-parallel.xml'
--- tests/square-convection-parallel/square-convection-parallel.xml 2012-06-28 08:23:27 +0000
+++ tests/square-convection-parallel/square-convection-parallel.xml 2012-11-24 15:51:21 +0000
@@ -4,7 +4,8 @@
4 <owner userid="pfarrell"/>4 <owner userid="pfarrell"/>
5 <tags>flml parallel 2dadapt</tags>5 <tags>flml parallel 2dadapt</tags>
6 <problem_definition length = "medium" nprocs = "1">6 <problem_definition length = "medium" nprocs = "1">
7 <command_line>mpiexec -n 2 ../../bin/fluidity -v2 -l square-convection.flml</command_line>7 <command_line>mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l square-convection square-convection_flredecomp &amp;&amp;
8mpiexec -n 2 ../../bin/fluidity -v2 -l square-convection_flredecomp.flml</command_line>
8 </problem_definition>9 </problem_definition>
9 <variables>10 <variables>
10 <variable name="solvers_converged" language="python">11 <variable name="solvers_converged" language="python">
1112
=== modified file 'tests/standing_wave-parallel/Makefile'
--- tests/standing_wave-parallel/Makefile 2011-10-27 22:51:21 +0000
+++ tests/standing_wave-parallel/Makefile 2012-11-24 15:51:21 +0000
@@ -2,7 +2,6 @@
22
3input: clean3input: clean
4 gmsh -2 -bin src/standing_wave.geo -o standing_wave.msh4 gmsh -2 -bin src/standing_wave.geo -o standing_wave.msh
5 ../../bin/fldecomp -m gmsh -n 2 standing_wave
65
7clean:6clean:
8 rm -f *.dat *.vtu *.pvtu *.stat *.detectors7 rm -f *.dat *.vtu *.pvtu *.stat *.detectors
@@ -11,3 +10,4 @@
11 rm -rf matrixdump* *_checkpoint*10 rm -rf matrixdump* *_checkpoint*
12 rm -rf run1_logs/11 rm -rf run1_logs/
13 rm -rf standing_wave_?12 rm -rf standing_wave_?
13 rm -rf *flredecomp*
1414
=== modified file 'tests/standing_wave-parallel/standing_wave-parallel.xml'
--- tests/standing_wave-parallel/standing_wave-parallel.xml 2012-06-28 08:23:27 +0000
+++ tests/standing_wave-parallel/standing_wave-parallel.xml 2012-11-24 15:51:21 +0000
@@ -4,7 +4,9 @@
4 <owner userid="skramer"/>4 <owner userid="skramer"/>
5 <tags>flml parallel</tags>5 <tags>flml parallel</tags>
6 <problem_definition length="medium" nprocs="1">6 <problem_definition length="medium" nprocs="1">
7 <command_line>mpiexec -n 2 ../../bin/fluidity -v3 -l standing_wave.flml;7 <command_line>mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l standing_wave standing_wave_flredecomp
8
9mpiexec -n 2 ../../bin/fluidity -v3 -l standing_wave_flredecomp.flml;
8mkdir -p run1_logs; 10mkdir -p run1_logs;
9mv fluidity.* run1_logs; 11mv fluidity.* run1_logs;
10spud-set standing_wave_1_checkpoint.flml /material_phase::water/scalar_field::Pressure/prognostic/scheme/poisson_pressure_solution never;12spud-set standing_wave_1_checkpoint.flml /material_phase::water/scalar_field::Pressure/prognostic/scheme/poisson_pressure_solution never;
1113
=== modified file 'tests/test_adapt-at-first-time-step/Makefile'
--- tests/test_adapt-at-first-time-step/Makefile 2012-06-28 08:23:27 +0000
+++ tests/test_adapt-at-first-time-step/Makefile 2012-11-24 15:51:21 +0000
@@ -1,8 +1,9 @@
1input: clean1input: clean
2 gmsh -3 ./src/cube-1.geo2 gmsh -3 ./src/cube-1.geo
3 ../../bin/gmsh2triangle ./src/cube-1.msh3 ../../bin/gmsh2triangle ./src/cube-1.msh
4 ../../bin/fldecomp -n 2 cube-1
54
6clean:5clean:
7 rm -f *.ele *.face *.node *.halo *.vtu *.s *.d.1 *.stat *.log-* *.err-* *.pvtu *~ ./src/*.msh ./src/*~ \6 rm -f *.ele *.face *.node *.halo *.vtu *.s *.d.1 *.stat *.log-* *.err-* *.pvtu *~ ./src/*.msh ./src/*~ \
8 matrixdump matrixdump.info7 matrixdump matrixdump.info
8 rm -rf *flredecomp*
9 rm -rf test_adapt-at-first-time-step_[0-9]*
910
=== modified file 'tests/test_adapt-at-first-time-step/test_adapt-at-first-time-step.xml'
--- tests/test_adapt-at-first-time-step/test_adapt-at-first-time-step.xml 2012-07-18 11:26:25 +0000
+++ tests/test_adapt-at-first-time-step/test_adapt-at-first-time-step.xml 2012-11-24 15:51:21 +0000
@@ -5,7 +5,8 @@
5 <owner userid="skramer"/>5 <owner userid="skramer"/>
6 <tags>flml nozoltan parallel</tags>6 <tags>flml nozoltan parallel</tags>
7 <problem_definition length="short" nprocs="1">7 <problem_definition length="short" nprocs="1">
8 <command_line>mpiexec -n 2 ../../bin/fluidity -v3 -l test_adapt-at-first-time-step.flml </command_line>8 <command_line>mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l test_adapt-at-first-time-step test_adapt-at-first-time-step_flredecomp &amp;&amp;
9mpiexec -n 2 ../../bin/fluidity -v3 -l test_adapt-at-first-time-step_flredecomp.flml </command_line>
9 </problem_definition> 10 </problem_definition>
10 <variables> 11 <variables>
11 <variable name="solvers_converged" language="python">12 <variable name="solvers_converged" language="python">
1213
=== modified file 'tests/test_energy_stats/Makefile'
--- tests/test_energy_stats/Makefile 2011-10-27 22:51:21 +0000
+++ tests/test_energy_stats/Makefile 2012-11-24 15:51:21 +0000
@@ -1,11 +1,11 @@
1input: clean1input: clean
2 $(call makemesh,channel_2d) ; \2 $(call makemesh,channel_2d) ; \
3 ../../bin/fldecomp -n 3 channel_2d
4 $(call makemesh,channel_2d_finemesh)3 $(call makemesh,channel_2d_finemesh)
54
6clean: 5clean:
7 rm -f ./src/*.msh *.ele *.edge *.node *.face *.halo *.vtu *pvtu *.stat *.log-* *.err-* matrixdump*6 rm -f ./src/*.msh *.ele *.edge *.node *.face *.halo *.vtu *pvtu *.stat *.log-* *.err-* matrixdump*
8 rm -rf lock_exchange_2d_parallel_?7 rm -rf lock_exchange_2d_parallel_?
8 rm -rf *flredecomp*
99
10makemesh = echo $(1) ; \10makemesh = echo $(1) ; \
11 gmsh -2 ./src/$(1).geo ; \11 gmsh -2 ./src/$(1).geo ; \
1212
=== modified file 'tests/test_energy_stats/test_energy_stats.xml'
--- tests/test_energy_stats/test_energy_stats.xml 2012-07-18 11:26:25 +0000
+++ tests/test_energy_stats/test_energy_stats.xml 2012-11-24 15:51:21 +0000
@@ -6,7 +6,8 @@
6 <problem_definition length="medium" nprocs="1">6 <problem_definition length="medium" nprocs="1">
7 <command_line>7 <command_line>
8 mpiexec -np 1 ../../bin/fluidity -v3 -l lock_exchange_2d.flml &amp;&amp;8 mpiexec -np 1 ../../bin/fluidity -v3 -l lock_exchange_2d.flml &amp;&amp;
9 mpiexec -np 3 ../../bin/fluidity -v3 -l lock_exchange_2d_parallel.flml9 mpiexec -n 3 ../../bin/flredecomp -i 1 -o 3 -v -l lock_exchange_2d_parallel lock_exchange_2d_parallel_flredecomp &amp;&amp;
10 mpiexec -np 3 ../../bin/fluidity -v3 -l lock_exchange_2d_parallel_flredecomp.flml
10 </command_line> 11 </command_line>
11 </problem_definition>12 </problem_definition>
12 <variables>13 <variables>
1314
=== modified file 'tests/test_metric_advection_parallel/Makefile'
--- tests/test_metric_advection_parallel/Makefile 2011-10-27 22:51:21 +0000
+++ tests/test_metric_advection_parallel/Makefile 2012-11-24 15:51:21 +0000
@@ -1,8 +1,8 @@
1input: clean1input: clean
2 gmsh -2 ./src/box_2d.geo2 gmsh -2 ./src/box_2d.geo
3 ../../bin/gmsh2triangle --2d ./src/box_2d.msh3 ../../bin/gmsh2triangle --2d ./src/box_2d.msh
4 ../../bin/fldecomp -n 2 box_2d
54
6clean: 5clean:
7 rm -f ./src/*.msh *.ele *.edge *.node *.halo *.face *.poly *vtu *.s *.stat *.log-* *.err-* matrixdump*6 rm -f ./src/*.msh *.ele *.edge *.node *.halo *.face *.poly *vtu *.s *.stat *.log-* *.err-* matrixdump*
8 rm -rf test_metric_advection_parallel_?7 rm -rf test_metric_advection_parallel_?
8 rm -rf *flredecomp*
99
=== modified file 'tests/test_metric_advection_parallel/test_metric_advection_parallel.xml'
--- tests/test_metric_advection_parallel/test_metric_advection_parallel.xml 2012-07-18 11:26:25 +0000
+++ tests/test_metric_advection_parallel/test_metric_advection_parallel.xml 2012-11-24 15:51:21 +0000
@@ -4,7 +4,8 @@
4 <owner userid="pef"/>4 <owner userid="pef"/>
5 <tags>flml parallel 2dadapt</tags>5 <tags>flml parallel 2dadapt</tags>
6 <problem_definition length = "medium" nprocs = "1">6 <problem_definition length = "medium" nprocs = "1">
7 <command_line>mpiexec -n 2 ../../bin/fluidity -v3 -l test_metric_advection_parallel.flml7 <command_line>mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l test_metric_advection_parallel test_metric_advection_parallel_flredecomp &amp;&amp;
8mpiexec -n 2 ../../bin/fluidity -v3 -l test_metric_advection_parallel_flredecomp.flml
8 </command_line>9 </command_line>
9 </problem_definition>10 </problem_definition>
10 <variables>11 <variables>
1112
=== modified file 'tests/vb_parallel/Makefile'
--- tests/vb_parallel/Makefile 2012-09-19 10:31:15 +0000
+++ tests/vb_parallel/Makefile 2012-11-24 15:51:21 +0000
@@ -1,7 +1,7 @@
1input: default1input: default
2default: clean2default: clean
3 gmsh -2 -bin square.geo -o square.msh3 gmsh -2 -bin square.geo -o square.msh
4 fldecomp -m gmsh -n 2 square
5clean: 4clean:
6 rm -rf *.msh *.halo *.vtu *.pvtu *.log *.stat blob_? \5 rm -rf *.msh *.halo *.vtu *.pvtu *.log *.stat blob_? \
7 matrixdump matrixdump.info6 matrixdump matrixdump.info
7 rm -rf *flredecomp*
88
=== modified file 'tests/vb_parallel/vb_parallel.xml'
--- tests/vb_parallel/vb_parallel.xml 2012-06-28 08:23:27 +0000
+++ tests/vb_parallel/vb_parallel.xml 2012-11-24 15:51:21 +0000
@@ -5,7 +5,8 @@
5 <owner userid="colin"/>5 <owner userid="colin"/>
6 <tags>flml parallel</tags>6 <tags>flml parallel</tags>
7 <problem_definition length="short" nprocs="1">7 <problem_definition length="short" nprocs="1">
8 <command_line>mpiexec -n 2 ../../bin/fluidity blob.flml; ../../bin/pvtu2vtu blob 1</command_line>8 <command_line>mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l blob blob_flredecomp &amp;&amp;
9mpiexec -n 2 ../../bin/fluidity blob_flredecomp.flml; ../../bin/pvtu2vtu blob 1</command_line>
9 </problem_definition>10 </problem_definition>
10 <variables>11 <variables>
11 <variable name="solvers_converged" language="python">12 <variable name="solvers_converged" language="python">
1213
=== modified file 'tests/viscosity_2d_p0_parallel/Makefile'
--- tests/viscosity_2d_p0_parallel/Makefile 2012-06-28 08:23:27 +0000
+++ tests/viscosity_2d_p0_parallel/Makefile 2012-11-24 15:51:21 +0000
@@ -1,8 +1,8 @@
1input: clean1input: clean
2 ../../bin/gmsh2triangle --2d src/square.msh2 ../../bin/gmsh2triangle --2d src/square.msh
3 ../../bin/fldecomp -n 2 square
43
5clean:4clean:
6 rm -fr *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu \5 rm -fr *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu \
7 fluidity.* *.s *.d.1 *.stat heat_* \6 fluidity.* *.s *.d.1 *.stat heat_* \
8 matrixdump matrixdump.info7 matrixdump matrixdump.info
8 rm -rf *flredecomp*
99
=== modified file 'tests/viscosity_2d_p0_parallel/viscosity_2d_p0_parallel.xml'
--- tests/viscosity_2d_p0_parallel/viscosity_2d_p0_parallel.xml 2012-06-28 08:23:27 +0000
+++ tests/viscosity_2d_p0_parallel/viscosity_2d_p0_parallel.xml 2012-11-24 15:51:21 +0000
@@ -5,7 +5,8 @@
5 <owner userid="cwilson"/>5 <owner userid="cwilson"/>
6 <tags>flml parallel</tags>6 <tags>flml parallel</tags>
7 <problem_definition length="short" nprocs="1">7 <problem_definition length="short" nprocs="1">
8 <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l heat.flml </command_line>8 <command_line>mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l heat heat_flredecomp &amp;&amp;
9mpiexec -np 2 ../../bin/fluidity -v2 -l heat_flredecomp.flml </command_line>
9 <!-- Two dimensional diffusion only problem. -->10 <!-- Two dimensional diffusion only problem. -->
10 </problem_definition>11 </problem_definition>
11 <variables>12 <variables>
1213
=== modified file 'tests/viscosity_2d_p0_parallel_local_assembly/Makefile'
--- tests/viscosity_2d_p0_parallel_local_assembly/Makefile 2012-09-19 10:31:15 +0000
+++ tests/viscosity_2d_p0_parallel_local_assembly/Makefile 2012-11-24 15:51:21 +0000
@@ -1,7 +1,6 @@
1input: clean1input: clean
2 ../../bin/gmsh2triangle --2d src/square.msh2 ../../bin/gmsh2triangle --2d src/square.msh
3 ../../bin/fldecomp -n 16 square
43
5clean:4clean:
6 rm -rf *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu fluidity.* *.s *.d.1 *.stat \5 rm -rf *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu fluidity.* *.s *.d.1 *.stat \
7 matrixdump matrixdump.info heat_*6 matrixdump matrixdump.info heat_* *flredecomp*
87
=== modified file 'tests/viscosity_2d_p0_parallel_local_assembly/viscosity_2d_p0_parallel_local_assembly.xml'
--- tests/viscosity_2d_p0_parallel_local_assembly/viscosity_2d_p0_parallel_local_assembly.xml 2012-06-28 08:23:27 +0000
+++ tests/viscosity_2d_p0_parallel_local_assembly/viscosity_2d_p0_parallel_local_assembly.xml 2012-11-24 15:51:21 +0000
@@ -6,7 +6,8 @@
6 <owner userid="wence"/>6 <owner userid="wence"/>
7 <tags>flml parallel</tags>7 <tags>flml parallel</tags>
8 <problem_definition length="short" nprocs="1">8 <problem_definition length="short" nprocs="1">
9 <command_line>mpiexec -np 16 ../../bin/fluidity -v2 -l heat.flml </command_line>9 <command_line>mpiexec -n 16 ../../bin/flredecomp -i 1 -o 16 -v -l heat heat_flredecomp &amp;&amp;
10mpiexec -np 16 ../../bin/fluidity -v2 -l heat_flredecomp.flml </command_line>
10 <!-- Two dimensional diffusion only problem. -->11 <!-- Two dimensional diffusion only problem. -->
11 </problem_definition>12 </problem_definition>
12 <variables>13 <variables>
1314
=== modified file 'tests/wetting_and_drying_balzano2_cg/Makefile'
--- tests/wetting_and_drying_balzano2_cg/Makefile 2010-09-21 17:29:38 +0000
+++ tests/wetting_and_drying_balzano2_cg/Makefile 2012-11-24 15:51:21 +0000
@@ -2,7 +2,7 @@
2 fluidity -v5 balzano1_2plus1.flml &> output.txt2 fluidity -v5 balzano1_2plus1.flml &> output.txt
33
4input: clean4input: clean
5 cd mesh; ./makemesh_parallel.sh5 cd mesh; ./makemesh.sh
66
7clean:7clean:
8 rm -f *.ele *.edge *.node *.poly *vtu *.s *.d.1 *.stat *.msh *.detectors matrixdump* *.pdf *.png *.dat8 rm -f *.ele *.edge *.node *.poly *vtu *.s *.d.1 *.stat *.msh *.detectors matrixdump* *.pdf *.png *.dat
99
=== removed file 'tests/wetting_and_drying_balzano2_cg/mesh/makemesh_parallel.sh'
--- tests/wetting_and_drying_balzano2_cg/mesh/makemesh_parallel.sh 2011-10-21 10:05:25 +0000
+++ tests/wetting_and_drying_balzano2_cg/mesh/makemesh_parallel.sh 1970-01-01 00:00:00 +0000
@@ -1,6 +0,0 @@
1#/bin/sh
2rm mesh_connected_*
3gmsh mesh_connected.geo -2
4../../../bin/gmsh2triangle mesh_connected.msh -2
5../../../bin/fldecomp -n 4 -m triangle mesh_connected
6
70
=== modified file 'tests/wetting_and_drying_balzano3_cg_parallel/Makefile'
--- tests/wetting_and_drying_balzano3_cg_parallel/Makefile 2011-10-27 22:51:21 +0000
+++ tests/wetting_and_drying_balzano3_cg_parallel/Makefile 2012-11-24 15:51:21 +0000
@@ -2,11 +2,12 @@
2 fluidity -v5 balzano1_2plus1.flml &> output.txt2 fluidity -v5 balzano1_2plus1.flml &> output.txt
33
4input: clean4input: clean
5 cd mesh; ./makemesh_parallel.sh5 cd mesh; ./makemesh.sh
66
7clean:7clean:
8 rm -f *.ele *.edge *.node *.poly *vtu *.s *.d.1 *.stat *.msh *.detectors matrixdump* *.pdf *.png *.dat8 rm -f *.ele *.edge *.node *.poly *vtu *.s *.d.1 *.stat *.msh *.detectors matrixdump* *.pdf *.png *.dat
9 rm -rf balzano1_2plus1_? balzano1_2plus1_?? balzano1_2plus1_???9 rm -rf balzano1_2plus1_? balzano1_2plus1_?? balzano1_2plus1_???
10 rm -rf *flredecomp*
10 cd mesh; rm -f *.ele *.edge *.node *.poly *.vtu *.s *.d.1 *.stat *.detectors matrixdump* *.halo 11 cd mesh; rm -f *.ele *.edge *.node *.poly *.vtu *.s *.d.1 *.stat *.detectors matrixdump* *.halo
11config:12config:
12 diamond -s ../../tools/fluidity_options.rng balzano1_2plus1.flml 13 diamond -s ../../tools/fluidity_options.rng balzano1_2plus1.flml
1314
=== removed file 'tests/wetting_and_drying_balzano3_cg_parallel/mesh/makemesh_parallel.sh'
--- tests/wetting_and_drying_balzano3_cg_parallel/mesh/makemesh_parallel.sh 2011-10-21 10:05:25 +0000
+++ tests/wetting_and_drying_balzano3_cg_parallel/mesh/makemesh_parallel.sh 1970-01-01 00:00:00 +0000
@@ -1,4 +0,0 @@
1#/bin/sh
2../../../bin/gmsh2triangle mesh_connected.msh -2
3../../../bin/fldecomp -n 4 -m triangle mesh_connected
4
50
=== modified file 'tests/wetting_and_drying_balzano3_cg_parallel/wetting_and_drying_balzano3_cg_parallel.xml'
--- tests/wetting_and_drying_balzano3_cg_parallel/wetting_and_drying_balzano3_cg_parallel.xml 2012-06-28 08:23:27 +0000
+++ tests/wetting_and_drying_balzano3_cg_parallel/wetting_and_drying_balzano3_cg_parallel.xml 2012-11-24 15:51:21 +0000
@@ -4,7 +4,8 @@
4 <owner userid="sf1409"/>4 <owner userid="sf1409"/>
5 <tags> parallel </tags>5 <tags> parallel </tags>
6 <problem_definition length="medium" nprocs="1">6 <problem_definition length="medium" nprocs="1">
7 <command_line>mpiexec -n 4 fluidity balzano1_2plus1.flml; ./plotfs_detec.py --file=balzano1_2plus1.detectors --save=fluidity</command_line>7 <command_line>mpiexec -n 4 ../../bin/flredecomp -i 1 -o 4 -v -l balzano1_2plus1 balzano1_2plus1_flredecomp &amp;&amp;
8mpiexec -n 4 fluidity balzano1_2plus1_flredecomp.flml; ./plotfs_detec.py --file=balzano1_2plus1.detectors --save=fluidity</command_line>
8 </problem_definition>9 </problem_definition>
9 <variables>10 <variables>
10 <variable name="solvers_converged" language="python">11 <variable name="solvers_converged" language="python">
1112
=== modified file 'tools/Flredecomp.F90'
--- tools/Flredecomp.F90 2012-11-18 11:22:44 +0000
+++ tools/Flredecomp.F90 2012-11-24 15:51:21 +0000
@@ -183,7 +183,7 @@
183 ! Output183 ! Output
184 assert(associated(state))184 assert(associated(state))
185 call checkpoint_simulation(state, prefix = output_base, postfix = "", protect_simulation_name = .false., &185 call checkpoint_simulation(state, prefix = output_base, postfix = "", protect_simulation_name = .false., &
186 keep_initial_data=.true.)186 keep_initial_data=.true., ignore_detectors=.true.)
187187
188 do i = 1, size(state)188 do i = 1, size(state)
189 call deallocate(state(i))189 call deallocate(state(i))