Merge lp:~fluidity-core/fluidity/excise-fldecomp into lp:fluidity
- excise-fldecomp
- Merge into dev-trunk
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 |
Related bugs: |
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_
(Populate_
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_
(Populate_
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.
Jon Hill (jon-hill) wrote : | # |
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.
Gerard (g-gorman) wrote : | # |
Recommend not removing the test case for fldecomp until fldecomp itself is removed.
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).
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.
Michael Lange (michael-lange) wrote : | # |
Looks good. Great work, thanks Mark.
- 4050. By Mark Filipiak
-
Merge from trunk.
Mark Filipiak (mjf-q) wrote : | # |
Ok, I'll merge this into the trunk now. And I'll merge the excise-
Preview Diff
1 | === modified file 'Makefile.in' |
2 | --- Makefile.in 2012-10-24 14:28:13 +0000 |
3 | +++ Makefile.in 2012-11-24 15:51:21 +0000 |
4 | @@ -461,6 +461,14 @@ |
5 | @cd tests; PYTHONPATH=../python ../tools/testharness.py --clean >/dev/null |
6 | @cd tests/data; $(MAKE) clean |
7 | |
8 | +clean-all-tests: clean-test |
9 | + @echo " CLEAN parallel/special/long tests" |
10 | + @PYTHONPATH=python tools/testharness.py --parallelism=parallel --clean >/dev/null |
11 | + @PYTHONPATH=python tools/testharness.py --length=special --clean >/dev/null |
12 | + @PYTHONPATH=python tools/testharness.py --length=special --parallelism=parallel --clean >/dev/null |
13 | + @PYTHONPATH=python tools/testharness.py --length=long --clean >/dev/null |
14 | + @PYTHONPATH=python tools/testharness.py --length=long --parallelism=parallel --clean >/dev/null |
15 | + |
16 | distclean: clean |
17 | @echo " DISTCLEAN" |
18 | @cd spatialindex-1.5 ; make distclean > /dev/null ; rm -rf \ |
19 | |
20 | === modified file 'examples/backward_facing_step_2d/Makefile' |
21 | --- examples/backward_facing_step_2d/Makefile 2012-11-07 17:11:03 +0000 |
22 | +++ examples/backward_facing_step_2d/Makefile 2012-11-24 15:51:21 +0000 |
23 | @@ -3,7 +3,6 @@ |
24 | |
25 | preprocess: envcheck |
26 | @if [ "x" == "x${TYPE}" ]; then echo "**********ERROR: Commandline should be make preprocess TYPE=type, where type is reference or kepsilon"; false; fi; |
27 | - @if [ "x" == "x${NPROCS}" ]; then echo "**********ERROR: Please define NPROCS to set the number of processors to use"; false; fi |
28 | echo **********Installing directory for $(TYPE) run: |
29 | install -d $(TYPE); \ |
30 | cd $(TYPE); \ |
31 | @@ -11,7 +10,6 @@ |
32 | echo **********Generating mesh for $(TYPE) simulation.; \ |
33 | gmsh -2 -o step2d-kim-med.msh ../src/step2d-kim-med.geo; \ |
34 | ${BINPREFIX}gmsh2triangle -2 step2d-kim-med.msh; \ |
35 | - if [ ${NPROCS} -ne 1 ]; then echo "**********Decomposing the mesh into $(NPROCS) parts for parallel run:"; ${BINPREFIX}fldecomp -n $(NPROCS) -f step2d-kim-med; fi; \ |
36 | cd .. |
37 | |
38 | run: envcheck |
39 | @@ -28,10 +26,10 @@ |
40 | cd .. |
41 | |
42 | input: clean |
43 | - $(MAKE) preprocess TYPE=reference NPROCS=8 |
44 | - $(MAKE) preprocess TYPE=kepsilon NPROCS=8 |
45 | + $(MAKE) preprocess TYPE=reference |
46 | + $(MAKE) preprocess TYPE=kepsilon |
47 | |
48 | clean: |
49 | @echo **********Cleaning the output from previous fluidity runs |
50 | - rm -rf kepsilon reference *.pdf |
51 | + rm -rf kepsilon reference *.pdf *flredecomp* |
52 | |
53 | |
54 | === modified file 'examples/backward_facing_step_2d/backward_facing_step_2d.xml' |
55 | --- examples/backward_facing_step_2d/backward_facing_step_2d.xml 2012-11-05 23:48:23 +0000 |
56 | +++ examples/backward_facing_step_2d/backward_facing_step_2d.xml 2012-11-24 15:51:21 +0000 |
57 | @@ -6,7 +6,7 @@ |
58 | <tags>flml</tags> |
59 | <!-- uses flml --> |
60 | <problem_definition length="long" nprocs="8"> |
61 | - <command_line>cd reference && mpiexec fluidity -v2 -l backward_facing_step_2d_kim_reference.flml && cd .. && cd kepsilon && mpiexec fluidity -v2 -l backward_facing_step_2d_kim_kepsilon.flml && cd ..</command_line> |
62 | + <command_line>cd reference && mpiexec flredecomp -i 1 -o 8 -v -l backward_facing_step_2d_kim_reference backward_facing_step_2d_kim_reference_flredecomp && mpiexec fluidity -v2 -l backward_facing_step_2d_kim_reference_flredecomp.flml && cd .. && cd kepsilon && mpiexec flredecomp -i 1 -o 8 -v -l backward_facing_step_2d_kim_kepsilon backward_facing_step_2d_kim_kepsilon_flredecomp && mpiexec fluidity -v2 -l backward_facing_step_2d_kim_kepsilon_flredecomp.flml && cd ..</command_line> |
63 | </problem_definition> |
64 | <variables> |
65 | <variable name="reference_finishtime" language="python">from fluidity_tools import stat_parser as stat |
66 | |
67 | === modified file 'examples/backward_facing_step_2d/envcheck.mk' |
68 | --- examples/backward_facing_step_2d/envcheck.mk 2012-11-02 12:02:33 +0000 |
69 | +++ examples/backward_facing_step_2d/envcheck.mk 2012-11-24 15:51:21 +0000 |
70 | @@ -4,29 +4,29 @@ |
71 | TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL} |
72 | |
73 | TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?) |
74 | -TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?) |
75 | +TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?) |
76 | |
77 | TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?) |
78 | -TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?) |
79 | +TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?) |
80 | |
81 | BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/) |
82 | |
83 | -TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP} |
84 | -TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL} |
85 | +TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP} |
86 | +TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL} |
87 | |
88 | envcheck: |
89 | -# Do we have both fluidity and fldecomp on the existing path? |
90 | +# Do we have both fluidity and flredecomp on the existing path? |
91 | ifneq (${TESTBIN},00) |
92 | - # Do we only have fluidity (and not fldecomp) on the existing path? |
93 | + # Do we only have fluidity (and not flredecomp) on the existing path? |
94 | ifeq (${TESTBIN},01) |
95 | - @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." |
96 | + @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." |
97 | @exit 1 |
98 | else |
99 | - # fluidity isn't on the path; do we have both fluidity and fldecomp locally? |
100 | + # fluidity isn't on the path; do we have both fluidity and flredecomp locally? |
101 | ifneq (${TESTBINLOCAL},00) |
102 | - # Do we only have fluidity (and not fldecomp) locally? |
103 | + # Do we only have fluidity (and not flredecomp) locally? |
104 | ifeq (${TESTBINLOCAL},01) |
105 | - @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." |
106 | + @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." |
107 | @exit 1 |
108 | else |
109 | # No fluidity binary on the system path or locally |
110 | |
111 | === modified file 'examples/backward_facing_step_3d/Makefile' |
112 | --- examples/backward_facing_step_3d/Makefile 2012-11-05 23:15:55 +0000 |
113 | +++ examples/backward_facing_step_3d/Makefile 2012-11-24 15:51:21 +0000 |
114 | @@ -1,22 +1,10 @@ |
115 | include envcheck.mk |
116 | |
117 | preprocess: envcheck |
118 | - @if [ "x" == "x${NPROCS}" ]; then echo "**********ERROR: Please define NPROCS to set the number of processors to use"; false; fi |
119 | @echo **********Generating the mesh using gmsh in 3d: |
120 | gmsh -3 -optimize -o step3d.msh src/step3d.geo |
121 | @echo **********Converting the gmsh mesh to triangle format: |
122 | ${BINPREFIX}gmsh2triangle step3d.msh |
123 | -ifneq ($(NPROCS),8) |
124 | - @echo **********WARNING: This simulation is best run on 8 processors |
125 | -endif |
126 | -ifeq ($(NPROCS),1) |
127 | - @echo **********Serial run: not decomposing mesh |
128 | - @echo **********WARNING: This is a large simulation and will take a very long time in serial. Find a handy supercomputer. |
129 | -else |
130 | -# exit if no fltools and print warning |
131 | - @echo **********Decomposing the mesh into $(NPROCS) parts for parallel run: |
132 | - ${BINPREFIX}fldecomp -n $(NPROCS) -f step3d |
133 | -endif |
134 | |
135 | run: envcheck |
136 | @if [ "x" == "x${NPROCS}" ]; then echo "**********ERROR: Please define NPROCS to set the number of processors to use"; false; fi |
137 | @@ -28,8 +16,10 @@ |
138 | @echo **********Calling fluidity in serial with verbose log output enabled: |
139 | ${BINPREFIX}fluidity -v2 -l backward_facing_step_3d.flml |
140 | else |
141 | + @echo **********Calling flredecomp in parallel with verbose log output enabled: |
142 | + mpiexec -n $(NPROCS) ${BINPREFIX}flredecomp -i 1 -o $(NPROCS) -v -l backward_facing_step_3d backward_facing_step_3d_flredecomp |
143 | @echo **********Calling fluidity in parallel with verbose log output enabled: |
144 | - mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l backward_facing_step_3d.flml |
145 | + mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l backward_facing_step_3d_flredecomp.flml |
146 | endif |
147 | |
148 | postprocess: envcheck |
149 | @@ -43,4 +33,4 @@ |
150 | clean: |
151 | @echo **********Cleaning the output from previous fluidity runs: |
152 | rm -rf *.stat *.msh *.node *.face *.ele backward_facing_step_3d_*.pvtu backward_facing_step_3d_* *.log-* *.err-* matrixdump* *.halo |
153 | - |
154 | + rm -rf *flredecomp* |
155 | |
156 | === modified file 'examples/backward_facing_step_3d/backward_facing_step_3d.xml' |
157 | --- examples/backward_facing_step_3d/backward_facing_step_3d.xml 2012-11-05 14:01:40 +0000 |
158 | +++ examples/backward_facing_step_3d/backward_facing_step_3d.xml 2012-11-24 15:51:21 +0000 |
159 | @@ -6,7 +6,8 @@ |
160 | <tags>flml 3dadapt</tags> |
161 | <!-- uses flml - uses 3d adaptivity --> |
162 | <problem_definition length="long" nprocs="8"> |
163 | - <command_line>mpiexec fluidity -v2 -l backward_facing_step_3d.flml</command_line> |
164 | + <command_line>mpiexec flredecomp -i 1 -o 8 -v -l backward_facing_step_3d backward_facing_step_3d_flredecomp && |
165 | +mpiexec fluidity -v2 -l backward_facing_step_3d_flredecomp.flml</command_line> |
166 | </problem_definition> |
167 | <variables> |
168 | <variable name="finishtime" language="python">from fluidity_tools import stat_parser as stat |
169 | |
170 | === modified file 'examples/backward_facing_step_3d/envcheck.mk' |
171 | --- examples/backward_facing_step_3d/envcheck.mk 2012-11-02 12:02:33 +0000 |
172 | +++ examples/backward_facing_step_3d/envcheck.mk 2012-11-24 15:51:21 +0000 |
173 | @@ -4,29 +4,29 @@ |
174 | TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL} |
175 | |
176 | TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?) |
177 | -TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?) |
178 | +TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?) |
179 | |
180 | TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?) |
181 | -TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?) |
182 | +TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?) |
183 | |
184 | BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/) |
185 | |
186 | -TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP} |
187 | -TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL} |
188 | +TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP} |
189 | +TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL} |
190 | |
191 | envcheck: |
192 | -# Do we have both fluidity and fldecomp on the existing path? |
193 | +# Do we have both fluidity and flredecomp on the existing path? |
194 | ifneq (${TESTBIN},00) |
195 | - # Do we only have fluidity (and not fldecomp) on the existing path? |
196 | + # Do we only have fluidity (and not flredecomp) on the existing path? |
197 | ifeq (${TESTBIN},01) |
198 | - @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." |
199 | + @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." |
200 | @exit 1 |
201 | else |
202 | - # fluidity isn't on the path; do we have both fluidity and fldecomp locally? |
203 | + # fluidity isn't on the path; do we have both fluidity and flredecomp locally? |
204 | ifneq (${TESTBINLOCAL},00) |
205 | - # Do we only have fluidity (and not fldecomp) locally? |
206 | + # Do we only have fluidity (and not flredecomp) locally? |
207 | ifeq (${TESTBINLOCAL},01) |
208 | - @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." |
209 | + @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." |
210 | @exit 1 |
211 | else |
212 | # No fluidity binary on the system path or locally |
213 | |
214 | === modified file 'examples/driven_cavity/envcheck.mk' |
215 | --- examples/driven_cavity/envcheck.mk 2012-11-02 12:02:33 +0000 |
216 | +++ examples/driven_cavity/envcheck.mk 2012-11-24 15:51:21 +0000 |
217 | @@ -4,29 +4,29 @@ |
218 | TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL} |
219 | |
220 | TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?) |
221 | -TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?) |
222 | +TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?) |
223 | |
224 | TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?) |
225 | -TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?) |
226 | +TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?) |
227 | |
228 | BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/) |
229 | |
230 | -TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP} |
231 | -TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL} |
232 | +TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP} |
233 | +TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL} |
234 | |
235 | envcheck: |
236 | -# Do we have both fluidity and fldecomp on the existing path? |
237 | +# Do we have both fluidity and flredecomp on the existing path? |
238 | ifneq (${TESTBIN},00) |
239 | - # Do we only have fluidity (and not fldecomp) on the existing path? |
240 | + # Do we only have fluidity (and not flredecomp) on the existing path? |
241 | ifeq (${TESTBIN},01) |
242 | - @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." |
243 | + @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." |
244 | @exit 1 |
245 | else |
246 | - # fluidity isn't on the path; do we have both fluidity and fldecomp locally? |
247 | + # fluidity isn't on the path; do we have both fluidity and flredecomp locally? |
248 | ifneq (${TESTBINLOCAL},00) |
249 | - # Do we only have fluidity (and not fldecomp) locally? |
250 | + # Do we only have fluidity (and not flredecomp) locally? |
251 | ifeq (${TESTBINLOCAL},01) |
252 | - @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." |
253 | + @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." |
254 | @exit 1 |
255 | else |
256 | # No fluidity binary on the system path or locally |
257 | |
258 | === modified file 'examples/flow_past_sphere_Re1/Makefile' |
259 | --- examples/flow_past_sphere_Re1/Makefile 2012-11-01 16:43:40 +0000 |
260 | +++ examples/flow_past_sphere_Re1/Makefile 2012-11-24 15:51:21 +0000 |
261 | @@ -17,4 +17,5 @@ |
262 | clean: |
263 | @echo **********Cleaning the output from previous fluidity runs: |
264 | rm -f *.ele *.edge *.face *.node *.halo *.poly *.vtu *.stat *.log-0 *.err-0 matrixdump* |
265 | + rm -rf first_timestep_adapted_mesh* |
266 | rm -f Sphere_drag.pdf |
267 | |
268 | === modified file 'examples/flow_past_sphere_Re1/envcheck.mk' |
269 | --- examples/flow_past_sphere_Re1/envcheck.mk 2012-11-02 12:02:33 +0000 |
270 | +++ examples/flow_past_sphere_Re1/envcheck.mk 2012-11-24 15:51:21 +0000 |
271 | @@ -4,29 +4,29 @@ |
272 | TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL} |
273 | |
274 | TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?) |
275 | -TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?) |
276 | +TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?) |
277 | |
278 | TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?) |
279 | -TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?) |
280 | +TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?) |
281 | |
282 | BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/) |
283 | |
284 | -TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP} |
285 | -TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL} |
286 | +TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP} |
287 | +TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL} |
288 | |
289 | envcheck: |
290 | -# Do we have both fluidity and fldecomp on the existing path? |
291 | +# Do we have both fluidity and flredecomp on the existing path? |
292 | ifneq (${TESTBIN},00) |
293 | - # Do we only have fluidity (and not fldecomp) on the existing path? |
294 | + # Do we only have fluidity (and not flredecomp) on the existing path? |
295 | ifeq (${TESTBIN},01) |
296 | - @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." |
297 | + @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." |
298 | @exit 1 |
299 | else |
300 | - # fluidity isn't on the path; do we have both fluidity and fldecomp locally? |
301 | + # fluidity isn't on the path; do we have both fluidity and flredecomp locally? |
302 | ifneq (${TESTBINLOCAL},00) |
303 | - # Do we only have fluidity (and not fldecomp) locally? |
304 | + # Do we only have fluidity (and not flredecomp) locally? |
305 | ifeq (${TESTBINLOCAL},01) |
306 | - @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." |
307 | + @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." |
308 | @exit 1 |
309 | else |
310 | # No fluidity binary on the system path or locally |
311 | |
312 | === modified file 'examples/flow_past_sphere_Re10/Makefile' |
313 | --- examples/flow_past_sphere_Re10/Makefile 2012-11-01 16:43:40 +0000 |
314 | +++ examples/flow_past_sphere_Re10/Makefile 2012-11-24 15:51:21 +0000 |
315 | @@ -17,4 +17,5 @@ |
316 | clean: |
317 | @echo **********Cleaning the output from previous fluidity runs: |
318 | rm -f *.ele *.edge *.face *.node *.halo *.poly *.vtu *.stat *.log-0 *.err-0 matrixdump* |
319 | + rm -rf first_timestep_adapted_mesh* |
320 | rm -f Sphere_drag.pdf |
321 | |
322 | === modified file 'examples/flow_past_sphere_Re10/envcheck.mk' |
323 | --- examples/flow_past_sphere_Re10/envcheck.mk 2012-11-02 12:02:33 +0000 |
324 | +++ examples/flow_past_sphere_Re10/envcheck.mk 2012-11-24 15:51:21 +0000 |
325 | @@ -4,29 +4,29 @@ |
326 | TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL} |
327 | |
328 | TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?) |
329 | -TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?) |
330 | +TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?) |
331 | |
332 | TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?) |
333 | -TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?) |
334 | +TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?) |
335 | |
336 | BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/) |
337 | |
338 | -TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP} |
339 | -TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL} |
340 | +TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP} |
341 | +TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL} |
342 | |
343 | envcheck: |
344 | -# Do we have both fluidity and fldecomp on the existing path? |
345 | +# Do we have both fluidity and flredecomp on the existing path? |
346 | ifneq (${TESTBIN},00) |
347 | - # Do we only have fluidity (and not fldecomp) on the existing path? |
348 | + # Do we only have fluidity (and not flredecomp) on the existing path? |
349 | ifeq (${TESTBIN},01) |
350 | - @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." |
351 | + @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." |
352 | @exit 1 |
353 | else |
354 | - # fluidity isn't on the path; do we have both fluidity and fldecomp locally? |
355 | + # fluidity isn't on the path; do we have both fluidity and flredecomp locally? |
356 | ifneq (${TESTBINLOCAL},00) |
357 | - # Do we only have fluidity (and not fldecomp) locally? |
358 | + # Do we only have fluidity (and not flredecomp) locally? |
359 | ifeq (${TESTBINLOCAL},01) |
360 | - @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." |
361 | + @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." |
362 | @exit 1 |
363 | else |
364 | # No fluidity binary on the system path or locally |
365 | |
366 | === modified file 'examples/flow_past_sphere_Re100/Makefile' |
367 | --- examples/flow_past_sphere_Re100/Makefile 2012-11-01 16:43:40 +0000 |
368 | +++ examples/flow_past_sphere_Re100/Makefile 2012-11-24 15:51:21 +0000 |
369 | @@ -4,22 +4,8 @@ |
370 | NPROCS=1 |
371 | |
372 | preprocess: envcheck |
373 | -ifeq ("x","x${NPROCS}") |
374 | - @echo "**********ERROR: Please define NPROCS to set the number of processors to use" |
375 | - @exit 1 |
376 | -endif |
377 | @echo **********Converting the gmsh mesh to triangle format: |
378 | ${BINPREFIX}gmsh2triangle unit_sphere.msh |
379 | -ifneq ($(NPROCS),8) |
380 | - @echo **********WARNING: This simulation is best run on 8 processors |
381 | -endif |
382 | -ifeq ($(NPROCS),1) |
383 | - @echo **********Serial run: not decomposing mesh |
384 | - @echo **********WARNING: This is a large simulation and will take a very long time in serial. Find a handy supercomputer. |
385 | -else |
386 | - @echo **********Decomposing the mesh into $(NPROCS) parts for parallel run: |
387 | - ${BINPREFIX}fldecomp -n $(NPROCS) -f unit_sphere |
388 | -endif |
389 | |
390 | run: envcheck |
391 | ifneq ($(NPROCS),8) |
392 | @@ -30,8 +16,10 @@ |
393 | @echo **********Calling fluidity in serial with verbose log output enabled: |
394 | ${BINPREFIX}fluidity -v2 -l flow_past_sphere_Re100.flml |
395 | else |
396 | + @echo **********Calling flredecomp in parallel with verbose log output enabled: |
397 | + mpiexec -n $(NPROCS) ${BINPREFIX}flredecomp -i 1 -o $(NPROCS) -v -l flow_past_sphere_Re100 flow_past_sphere_Re100_flredecomp |
398 | @echo **********Calling fluidity in parallel with verbose log output enabled: |
399 | - mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l flow_past_sphere_Re100.flml |
400 | + mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l flow_past_sphere_Re100_flredecomp.flml |
401 | endif |
402 | |
403 | postprocess: |
404 | @@ -39,10 +27,12 @@ |
405 | python ./plot_data.py |
406 | |
407 | input: clean |
408 | - $(MAKE) preprocess NPROCS=8 |
409 | + $(MAKE) preprocess |
410 | |
411 | clean: |
412 | @echo **********Cleaning the output from previous fluidity runs: |
413 | - rm -f *.ele *.edge *.face *.node *.halo *.poly *vtu *.stat *.log-? *.err-? matrixdump* |
414 | - rm -rf flow_past_sphere_Re100_? flow_past_sphere_Re100_?? |
415 | + rm -f *.ele *.edge *.face *.node *.halo *.poly *vtu *.stat *.log-* *.err-* matrixdump* |
416 | + rm -rf flow_past_sphere_Re100_? flow_past_sphere_Re100_?? |
417 | + rm -rf first_timestep_adapted_mesh* |
418 | rm -f Sphere_drag.pdf |
419 | + rm -rf *flredecomp* |
420 | |
421 | === modified file 'examples/flow_past_sphere_Re100/envcheck.mk' |
422 | --- examples/flow_past_sphere_Re100/envcheck.mk 2012-11-02 12:02:33 +0000 |
423 | +++ examples/flow_past_sphere_Re100/envcheck.mk 2012-11-24 15:51:21 +0000 |
424 | @@ -4,29 +4,29 @@ |
425 | TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL} |
426 | |
427 | TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?) |
428 | -TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?) |
429 | +TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?) |
430 | |
431 | TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?) |
432 | -TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?) |
433 | +TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?) |
434 | |
435 | BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/) |
436 | |
437 | -TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP} |
438 | -TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL} |
439 | +TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP} |
440 | +TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL} |
441 | |
442 | envcheck: |
443 | -# Do we have both fluidity and fldecomp on the existing path? |
444 | +# Do we have both fluidity and flredecomp on the existing path? |
445 | ifneq (${TESTBIN},00) |
446 | - # Do we only have fluidity (and not fldecomp) on the existing path? |
447 | + # Do we only have fluidity (and not flredecomp) on the existing path? |
448 | ifeq (${TESTBIN},01) |
449 | - @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." |
450 | + @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." |
451 | @exit 1 |
452 | else |
453 | - # fluidity isn't on the path; do we have both fluidity and fldecomp locally? |
454 | + # fluidity isn't on the path; do we have both fluidity and flredecomp locally? |
455 | ifneq (${TESTBINLOCAL},00) |
456 | - # Do we only have fluidity (and not fldecomp) locally? |
457 | + # Do we only have fluidity (and not flredecomp) locally? |
458 | ifeq (${TESTBINLOCAL},01) |
459 | - @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." |
460 | + @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." |
461 | @exit 1 |
462 | else |
463 | # No fluidity binary on the system path or locally |
464 | |
465 | === modified file 'examples/flow_past_sphere_Re100/flow_past_sphere_Re100.xml' |
466 | --- examples/flow_past_sphere_Re100/flow_past_sphere_Re100.xml 2010-11-06 21:27:46 +0000 |
467 | +++ examples/flow_past_sphere_Re100/flow_past_sphere_Re100.xml 2012-11-24 15:51:21 +0000 |
468 | @@ -7,7 +7,8 @@ |
469 | <owner userid="piggt01"/> |
470 | <tags>flml</tags> |
471 | <problem_definition length="long" nprocs="8"> |
472 | - <command_line>mpiexec fluidity -v1 -l flow_past_sphere_Re100.flml</command_line> |
473 | + <command_line>mpiexec flredecomp -i 1 -o 8 -v -l flow_past_sphere_Re100 flow_past_sphere_Re100_flredecomp && |
474 | +mpiexec fluidity -v1 -l flow_past_sphere_Re100_flredecomp.flml</command_line> |
475 | </problem_definition> |
476 | <variables> |
477 | <variable name="time_average_xforce" language="python"> |
478 | |
479 | === modified file 'examples/flow_past_sphere_Re1000/Makefile' |
480 | --- examples/flow_past_sphere_Re1000/Makefile 2012-11-01 16:43:40 +0000 |
481 | +++ examples/flow_past_sphere_Re1000/Makefile 2012-11-24 15:51:21 +0000 |
482 | @@ -1,27 +1,8 @@ |
483 | include envcheck.mk |
484 | |
485 | preprocess: envcheck |
486 | -ifeq ("x","x${NPROCS}") |
487 | - @echo "**********ERROR: Please define NPROCS to set the number of processors with" |
488 | - @echo "make preprocess NPROCS=N, where N is the number of processors." |
489 | - @echo "Similarly use make run NPROCS=N." |
490 | - @echo "This is a large simulation and will take a very long time in serial." |
491 | - @echo "It is best run in parallel on 8 processors." |
492 | - @exit 1 |
493 | -endif |
494 | @echo **********Converting the gmsh mesh to triangle format: |
495 | ${BINPREFIX}gmsh2triangle unit_sphere.msh |
496 | -ifneq ($(NPROCS),8) |
497 | - @echo **********WARNING: This simulation is best run on 8 processors |
498 | -endif |
499 | -ifeq ($(NPROCS),1) |
500 | - @echo **********Serial run: not decomposing mesh |
501 | - @echo **********WARNING: This is a large simulation and will take a very long time in serial. Find a handy supercomputer. |
502 | -else |
503 | - @echo **********Decomposing the mesh into $(NPROCS) parts for parallel run: |
504 | - ${BINPREFIX}fldecomp -n $(NPROCS) -f unit_sphere |
505 | -endif |
506 | - |
507 | |
508 | run: envcheck |
509 | ifneq ($(NPROCS),8) |
510 | @@ -32,8 +13,10 @@ |
511 | @echo **********Calling fluidity in serial with verbose log output enabled: |
512 | ${BINPREFIX}fluidity -v2 -l flow_past_sphere_Re1000.flml |
513 | else |
514 | + @echo **********Calling flredecomp in parallel with verbose log output enabled: |
515 | + mpiexec -n $(NPROCS) ${BINPREFIX}flredecomp -i 1 -o $(NPROCS) -v -l flow_past_sphere_Re1000 flow_past_sphere_Re1000_flredecomp |
516 | @echo **********Calling fluidity in parallel with verbose log output enabled: |
517 | - mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l flow_past_sphere_Re1000.flml |
518 | + mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l flow_past_sphere_Re1000_flredecomp.flml |
519 | endif |
520 | |
521 | postprocess: |
522 | @@ -41,10 +24,12 @@ |
523 | python ./plot_data.py |
524 | |
525 | input: clean |
526 | - $(MAKE) preprocess NPROCS=8 |
527 | + $(MAKE) preprocess |
528 | |
529 | clean: |
530 | @echo **********Cleaning the output from previous fluidity runs: |
531 | - rm -f *.ele *.edge *.face *.node *.halo *.poly *vtu *.stat *.log-? *.err-? matrixdump* |
532 | + rm -f *.ele *.edge *.face *.node *.halo *.poly *vtu *.stat *.log-* *.err-* matrixdump* |
533 | rm -rf flow_past_sphere_Re1000_? flow_past_sphere_Re1000_?? |
534 | + rm -rf first_timestep_adapted_mesh* |
535 | rm -f Sphere_drag.pdf |
536 | + rm -rf *flredecomp* |
537 | |
538 | === modified file 'examples/flow_past_sphere_Re1000/envcheck.mk' |
539 | --- examples/flow_past_sphere_Re1000/envcheck.mk 2012-11-02 12:02:33 +0000 |
540 | +++ examples/flow_past_sphere_Re1000/envcheck.mk 2012-11-24 15:51:21 +0000 |
541 | @@ -4,29 +4,29 @@ |
542 | TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL} |
543 | |
544 | TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?) |
545 | -TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?) |
546 | +TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?) |
547 | |
548 | TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?) |
549 | -TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?) |
550 | +TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?) |
551 | |
552 | BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/) |
553 | |
554 | -TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP} |
555 | -TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL} |
556 | +TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP} |
557 | +TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL} |
558 | |
559 | envcheck: |
560 | -# Do we have both fluidity and fldecomp on the existing path? |
561 | +# Do we have both fluidity and flredecomp on the existing path? |
562 | ifneq (${TESTBIN},00) |
563 | - # Do we only have fluidity (and not fldecomp) on the existing path? |
564 | + # Do we only have fluidity (and not flredecomp) on the existing path? |
565 | ifeq (${TESTBIN},01) |
566 | - @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." |
567 | + @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." |
568 | @exit 1 |
569 | else |
570 | - # fluidity isn't on the path; do we have both fluidity and fldecomp locally? |
571 | + # fluidity isn't on the path; do we have both fluidity and flredecomp locally? |
572 | ifneq (${TESTBINLOCAL},00) |
573 | - # Do we only have fluidity (and not fldecomp) locally? |
574 | + # Do we only have fluidity (and not flredecomp) locally? |
575 | ifeq (${TESTBINLOCAL},01) |
576 | - @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." |
577 | + @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." |
578 | @exit 1 |
579 | else |
580 | # No fluidity binary on the system path or locally |
581 | |
582 | === modified file 'examples/flow_past_sphere_Re1000/flow_past_sphere_Re1000.xml' |
583 | --- examples/flow_past_sphere_Re1000/flow_past_sphere_Re1000.xml 2011-11-07 12:28:49 +0000 |
584 | +++ examples/flow_past_sphere_Re1000/flow_past_sphere_Re1000.xml 2012-11-24 15:51:21 +0000 |
585 | @@ -7,7 +7,8 @@ |
586 | <owner userid="piggt01"/> |
587 | <tags>flml</tags> |
588 | <problem_definition length="long" nprocs="8"> |
589 | - <command_line>mpiexec fluidity -v1 -l flow_past_sphere_Re1000.flml</command_line> |
590 | + <command_line>mpiexec flredecomp -i 1 -o 8 -v -l flow_past_sphere_Re1000 flow_past_sphere_Re1000_flredecomp && |
591 | +mpiexec fluidity -v1 -l flow_past_sphere_Re1000_flredecomp.flml</command_line> |
592 | </problem_definition> |
593 | <variables> |
594 | <variable name="time_average_xforce" language="python"> |
595 | |
596 | === modified file 'examples/hokkaido-nansei-oki_tsunami/Makefile' |
597 | --- examples/hokkaido-nansei-oki_tsunami/Makefile 2012-11-01 19:14:50 +0000 |
598 | +++ examples/hokkaido-nansei-oki_tsunami/Makefile 2012-11-24 15:51:21 +0000 |
599 | @@ -4,11 +4,13 @@ |
600 | |
601 | preprocess: envcheck |
602 | @echo **********Generating the mesh using gmsh in 2d: |
603 | - cd mesh; gmsh -bin MonaiValley_C.geo -2; ${BINPREFIX}fldecomp -n 4 -m gmsh MonaiValley_C |
604 | + cd mesh; gmsh -bin MonaiValley_C.geo -2 |
605 | |
606 | run: envcheck |
607 | + @echo **********Calling flredecomp in parallel with verbose log output enabled: |
608 | + 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 |
609 | @echo **********Calling fluidity with verbose log output enabled: |
610 | - mpirun -n 4 ${BINPREFIX}fluidity -v2 -l MonaiValley_C_p1p1_nu0.01_kmkstab_drag0.002_butcircularoundisland0.2.flml |
611 | + mpirun -n 4 ${BINPREFIX}fluidity -v2 -l MonaiValley_C_p1p1_nu0.01_kmkstab_drag0.002_butcircularoundisland0.2_flredecomp.flml |
612 | |
613 | postprocess: envcheck |
614 | @echo **********Calling the data extraction and plotting python script: |
615 | @@ -22,4 +24,4 @@ |
616 | cd mesh; rm -f *.ele *.edge *.node *.poly *.vtu *.s *.d.1 *.stat *.msh *.detectors matrixdump* *.halo |
617 | @echo **********Cleaning the output from previous python runs: |
618 | rm -rf *.pyc |
619 | - |
620 | + rm -rf *flredecomp* |
621 | |
622 | === modified file 'examples/hokkaido-nansei-oki_tsunami/envcheck.mk' |
623 | --- examples/hokkaido-nansei-oki_tsunami/envcheck.mk 2012-11-02 12:02:33 +0000 |
624 | +++ examples/hokkaido-nansei-oki_tsunami/envcheck.mk 2012-11-24 15:51:21 +0000 |
625 | @@ -4,29 +4,29 @@ |
626 | TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL} |
627 | |
628 | TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?) |
629 | -TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?) |
630 | +TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?) |
631 | |
632 | TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?) |
633 | -TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?) |
634 | +TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?) |
635 | |
636 | BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/) |
637 | |
638 | -TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP} |
639 | -TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL} |
640 | +TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP} |
641 | +TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL} |
642 | |
643 | envcheck: |
644 | -# Do we have both fluidity and fldecomp on the existing path? |
645 | +# Do we have both fluidity and flredecomp on the existing path? |
646 | ifneq (${TESTBIN},00) |
647 | - # Do we only have fluidity (and not fldecomp) on the existing path? |
648 | + # Do we only have fluidity (and not flredecomp) on the existing path? |
649 | ifeq (${TESTBIN},01) |
650 | - @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." |
651 | + @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." |
652 | @exit 1 |
653 | else |
654 | - # fluidity isn't on the path; do we have both fluidity and fldecomp locally? |
655 | + # fluidity isn't on the path; do we have both fluidity and flredecomp locally? |
656 | ifneq (${TESTBINLOCAL},00) |
657 | - # Do we only have fluidity (and not fldecomp) locally? |
658 | + # Do we only have fluidity (and not flredecomp) locally? |
659 | ifeq (${TESTBINLOCAL},01) |
660 | - @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." |
661 | + @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." |
662 | @exit 1 |
663 | else |
664 | # No fluidity binary on the system path or locally |
665 | |
666 | === modified file 'examples/hokkaido-nansei-oki_tsunami/hokkaido-nansei-oki_tsunami.xml' |
667 | --- examples/hokkaido-nansei-oki_tsunami/hokkaido-nansei-oki_tsunami.xml 2012-08-22 21:21:08 +0000 |
668 | +++ examples/hokkaido-nansei-oki_tsunami/hokkaido-nansei-oki_tsunami.xml 2012-11-24 15:51:21 +0000 |
669 | @@ -3,7 +3,8 @@ |
670 | <name>Monai Valley</name> |
671 | <owner userid="sf1409"/> |
672 | <problem_definition length="long" nprocs="4"> |
673 | - <command_line>fluidity MonaiValley_C_p1p1_nu0.01_kmkstab_drag0.002_butcircularoundisland0.2.flml</command_line> |
674 | + <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 && |
675 | +mpiexec fluidity -v2 -l MonaiValley_C_p1p1_nu0.01_kmkstab_drag0.002_butcircularoundisland0.2_flredecomp.flml</command_line> |
676 | </problem_definition> |
677 | <variables> |
678 | <variable name="gage_integral_error" language="python">import tools |
679 | |
680 | === modified file 'examples/lock_exchange/envcheck.mk' |
681 | --- examples/lock_exchange/envcheck.mk 2012-11-02 12:02:33 +0000 |
682 | +++ examples/lock_exchange/envcheck.mk 2012-11-24 15:51:21 +0000 |
683 | @@ -4,29 +4,29 @@ |
684 | TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL} |
685 | |
686 | TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?) |
687 | -TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?) |
688 | +TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?) |
689 | |
690 | TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?) |
691 | -TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?) |
692 | +TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?) |
693 | |
694 | BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/) |
695 | |
696 | -TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP} |
697 | -TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL} |
698 | +TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP} |
699 | +TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL} |
700 | |
701 | envcheck: |
702 | -# Do we have both fluidity and fldecomp on the existing path? |
703 | +# Do we have both fluidity and flredecomp on the existing path? |
704 | ifneq (${TESTBIN},00) |
705 | - # Do we only have fluidity (and not fldecomp) on the existing path? |
706 | + # Do we only have fluidity (and not flredecomp) on the existing path? |
707 | ifeq (${TESTBIN},01) |
708 | - @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." |
709 | + @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." |
710 | @exit 1 |
711 | else |
712 | - # fluidity isn't on the path; do we have both fluidity and fldecomp locally? |
713 | + # fluidity isn't on the path; do we have both fluidity and flredecomp locally? |
714 | ifneq (${TESTBINLOCAL},00) |
715 | - # Do we only have fluidity (and not fldecomp) locally? |
716 | + # Do we only have fluidity (and not flredecomp) locally? |
717 | ifeq (${TESTBINLOCAL},01) |
718 | - @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." |
719 | + @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." |
720 | @exit 1 |
721 | else |
722 | # No fluidity binary on the system path or locally |
723 | |
724 | === modified file 'examples/restratification_after_oodc/Makefile' |
725 | --- examples/restratification_after_oodc/Makefile 2012-11-01 16:49:23 +0000 |
726 | +++ examples/restratification_after_oodc/Makefile 2012-11-24 15:51:21 +0000 |
727 | @@ -9,16 +9,6 @@ |
728 | gmsh -2 circle.geo |
729 | @echo **********Converting the gmsh mesh to triangle format: |
730 | ${BINPREFIX}gmsh2triangle --2d circle.msh; |
731 | -ifneq ($(NPROCS),64) |
732 | - @echo **********WARNING: This simulation is best run on 64 processors |
733 | -endif |
734 | -ifeq ($(NPROCS),1) |
735 | - @echo **********Serial run: not decomposing mesh |
736 | - @echo **********WARNING: This is a large simulation and will take a very long time in serial. Find a handy supercomputer. |
737 | -else |
738 | - @echo **********Decomposing the mesh into $(NPROCS) parts for parallel run: |
739 | - ${BINPREFIX}fldecomp -n $(NPROCS) -f circle |
740 | -endif |
741 | |
742 | run: envcheck |
743 | ifneq ($(NPROCS),64) |
744 | @@ -29,10 +19,12 @@ |
745 | @echo **********Calling fluidity in serial with verbose log output enabled: |
746 | ${BINPREFIX}fluidity -v2 -l restratification_after_oodc.flml |
747 | else |
748 | + @echo **********Calling flredecomp in parallel with verbose log output enabled: |
749 | + mpiexec -n $(NPROCS) ${BINPREFIX}flredecomp -i 1 -o $(NPROCS) -v -l restratification_after_oodc restratification_after_oodc_flredecomp |
750 | @echo **********Calling fluidity in parallel with verbose log output enabled: |
751 | - mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l restratification_after_oodc.flml |
752 | + mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l restratification_after_oodc_flredecomp.flml |
753 | endif |
754 | - |
755 | + |
756 | postprocess: |
757 | @echo **********No postprocessing needed |
758 | |
759 | @@ -41,8 +33,9 @@ |
760 | |
761 | clean: |
762 | @echo **********Cleaning the output from previous fluidity runs: |
763 | - rm -f *.ele *.edge *.face *.node *.halo *.poly *.vtu *.pvtu *.stat *.log-0 *.err-0 */matrixdump* |
764 | + rm -f *.geo *.msh *.ele *.edge *.face *.node *.halo *.poly *.vtu *.pvtu *.stat *.log-* *.err-* */matrixdump* |
765 | rm -rf restratification_after_oodc_? restratification_after_oodc_?? |
766 | + rm -rf *flredecomp* |
767 | |
768 | realclean: clean |
769 | @echo **********Cleaning the output and checkpoints from previous fluidity runs: |
770 | |
771 | === modified file 'examples/restratification_after_oodc/envcheck.mk' |
772 | --- examples/restratification_after_oodc/envcheck.mk 2012-11-02 12:02:33 +0000 |
773 | +++ examples/restratification_after_oodc/envcheck.mk 2012-11-24 15:51:21 +0000 |
774 | @@ -4,29 +4,29 @@ |
775 | TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL} |
776 | |
777 | TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?) |
778 | -TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?) |
779 | +TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?) |
780 | |
781 | TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?) |
782 | -TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?) |
783 | +TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?) |
784 | |
785 | BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/) |
786 | |
787 | -TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP} |
788 | -TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL} |
789 | +TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP} |
790 | +TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL} |
791 | |
792 | envcheck: |
793 | -# Do we have both fluidity and fldecomp on the existing path? |
794 | +# Do we have both fluidity and flredecomp on the existing path? |
795 | ifneq (${TESTBIN},00) |
796 | - # Do we only have fluidity (and not fldecomp) on the existing path? |
797 | + # Do we only have fluidity (and not flredecomp) on the existing path? |
798 | ifeq (${TESTBIN},01) |
799 | - @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." |
800 | + @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." |
801 | @exit 1 |
802 | else |
803 | - # fluidity isn't on the path; do we have both fluidity and fldecomp locally? |
804 | + # fluidity isn't on the path; do we have both fluidity and flredecomp locally? |
805 | ifneq (${TESTBINLOCAL},00) |
806 | - # Do we only have fluidity (and not fldecomp) locally? |
807 | + # Do we only have fluidity (and not flredecomp) locally? |
808 | ifeq (${TESTBINLOCAL},01) |
809 | - @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." |
810 | + @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." |
811 | @exit 1 |
812 | else |
813 | # No fluidity binary on the system path or locally |
814 | |
815 | === modified file 'examples/restratification_after_oodc/restratification_after_oodc.xml' |
816 | --- examples/restratification_after_oodc/restratification_after_oodc.xml 2012-09-05 13:12:22 +0000 |
817 | +++ examples/restratification_after_oodc/restratification_after_oodc.xml 2012-11-24 15:51:21 +0000 |
818 | @@ -7,7 +7,8 @@ |
819 | <owner userid="fpm08"/> |
820 | <tags>flml </tags> |
821 | <problem_definition length="long" nprocs="64"> |
822 | - <command_line>mpiexec fluidity -v2 -l restratification_after_oodc.flml </command_line> |
823 | + <command_line>mpiexec flredecomp -i 1 -o 64 -v -l restratification_after_oodc restratification_after_oodc_flredecomp && |
824 | +mpiexec fluidity -v2 -l restratification_after_oodc_flredecomp.flml </command_line> |
825 | </problem_definition> |
826 | <variables> |
827 | <variable name="final_time" language="python"> |
828 | |
829 | === modified file 'examples/rotating_channel/envcheck.mk' |
830 | --- examples/rotating_channel/envcheck.mk 2012-11-02 12:02:33 +0000 |
831 | +++ examples/rotating_channel/envcheck.mk 2012-11-24 15:51:21 +0000 |
832 | @@ -4,29 +4,29 @@ |
833 | TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL} |
834 | |
835 | TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?) |
836 | -TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?) |
837 | +TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?) |
838 | |
839 | TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?) |
840 | -TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?) |
841 | +TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?) |
842 | |
843 | BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/) |
844 | |
845 | -TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP} |
846 | -TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL} |
847 | +TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP} |
848 | +TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL} |
849 | |
850 | envcheck: |
851 | -# Do we have both fluidity and fldecomp on the existing path? |
852 | +# Do we have both fluidity and flredecomp on the existing path? |
853 | ifneq (${TESTBIN},00) |
854 | - # Do we only have fluidity (and not fldecomp) on the existing path? |
855 | + # Do we only have fluidity (and not flredecomp) on the existing path? |
856 | ifeq (${TESTBIN},01) |
857 | - @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." |
858 | + @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." |
859 | @exit 1 |
860 | else |
861 | - # fluidity isn't on the path; do we have both fluidity and fldecomp locally? |
862 | + # fluidity isn't on the path; do we have both fluidity and flredecomp locally? |
863 | ifneq (${TESTBINLOCAL},00) |
864 | - # Do we only have fluidity (and not fldecomp) locally? |
865 | + # Do we only have fluidity (and not flredecomp) locally? |
866 | ifeq (${TESTBINLOCAL},01) |
867 | - @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." |
868 | + @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." |
869 | @exit 1 |
870 | else |
871 | # No fluidity binary on the system path or locally |
872 | |
873 | === modified file 'examples/stokes_square_convection/envcheck.mk' |
874 | --- examples/stokes_square_convection/envcheck.mk 2012-11-02 12:02:33 +0000 |
875 | +++ examples/stokes_square_convection/envcheck.mk 2012-11-24 15:51:21 +0000 |
876 | @@ -4,29 +4,29 @@ |
877 | TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL} |
878 | |
879 | TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?) |
880 | -TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?) |
881 | +TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?) |
882 | |
883 | TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?) |
884 | -TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?) |
885 | +TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?) |
886 | |
887 | BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/) |
888 | |
889 | -TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP} |
890 | -TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL} |
891 | +TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP} |
892 | +TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL} |
893 | |
894 | envcheck: |
895 | -# Do we have both fluidity and fldecomp on the existing path? |
896 | +# Do we have both fluidity and flredecomp on the existing path? |
897 | ifneq (${TESTBIN},00) |
898 | - # Do we only have fluidity (and not fldecomp) on the existing path? |
899 | + # Do we only have fluidity (and not flredecomp) on the existing path? |
900 | ifeq (${TESTBIN},01) |
901 | - @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." |
902 | + @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." |
903 | @exit 1 |
904 | else |
905 | - # fluidity isn't on the path; do we have both fluidity and fldecomp locally? |
906 | + # fluidity isn't on the path; do we have both fluidity and flredecomp locally? |
907 | ifneq (${TESTBINLOCAL},00) |
908 | - # Do we only have fluidity (and not fldecomp) locally? |
909 | + # Do we only have fluidity (and not flredecomp) locally? |
910 | ifeq (${TESTBINLOCAL},01) |
911 | - @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." |
912 | + @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." |
913 | @exit 1 |
914 | else |
915 | # No fluidity binary on the system path or locally |
916 | |
917 | === modified file 'examples/tephra_settling/envcheck.mk' |
918 | --- examples/tephra_settling/envcheck.mk 2012-11-02 12:02:33 +0000 |
919 | +++ examples/tephra_settling/envcheck.mk 2012-11-24 15:51:21 +0000 |
920 | @@ -4,29 +4,29 @@ |
921 | TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL} |
922 | |
923 | TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?) |
924 | -TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?) |
925 | +TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?) |
926 | |
927 | TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?) |
928 | -TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?) |
929 | +TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?) |
930 | |
931 | BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/) |
932 | |
933 | -TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP} |
934 | -TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL} |
935 | +TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP} |
936 | +TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL} |
937 | |
938 | envcheck: |
939 | -# Do we have both fluidity and fldecomp on the existing path? |
940 | +# Do we have both fluidity and flredecomp on the existing path? |
941 | ifneq (${TESTBIN},00) |
942 | - # Do we only have fluidity (and not fldecomp) on the existing path? |
943 | + # Do we only have fluidity (and not flredecomp) on the existing path? |
944 | ifeq (${TESTBIN},01) |
945 | - @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." |
946 | + @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." |
947 | @exit 1 |
948 | else |
949 | - # fluidity isn't on the path; do we have both fluidity and fldecomp locally? |
950 | + # fluidity isn't on the path; do we have both fluidity and flredecomp locally? |
951 | ifneq (${TESTBINLOCAL},00) |
952 | - # Do we only have fluidity (and not fldecomp) locally? |
953 | + # Do we only have fluidity (and not flredecomp) locally? |
954 | ifeq (${TESTBINLOCAL},01) |
955 | - @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." |
956 | + @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." |
957 | @exit 1 |
958 | else |
959 | # No fluidity binary on the system path or locally |
960 | |
961 | === modified file 'examples/tephra_settling/tephra_settling.xml' |
962 | --- examples/tephra_settling/tephra_settling.xml 2012-08-19 00:21:26 +0000 |
963 | +++ examples/tephra_settling/tephra_settling.xml 2012-11-24 15:51:21 +0000 |
964 | @@ -8,7 +8,7 @@ |
965 | <tags>flml</tags> |
966 | |
967 | <problem_definition length="long" nprocs="1"> |
968 | - <command_line>mpiexec ../../bin/fluidity -v2 -l tephra_settling.flml</command_line> |
969 | + <command_line>mpiexec fluidity -v2 -l tephra_settling.flml</command_line> |
970 | <!-- This is a 2D simulation of the formation of density currents. We consider a --> |
971 | <!-- body of water with a constant inflow of (denser) tephra at the top boundary. --> |
972 | <!-- Density currents/plumes should eventually form when the bulk density is large enough. --> |
973 | |
974 | === modified file 'examples/tides_in_the_Mediterranean_Sea/Makefile' |
975 | --- examples/tides_in_the_Mediterranean_Sea/Makefile 2012-11-01 16:56:24 +0000 |
976 | +++ examples/tides_in_the_Mediterranean_Sea/Makefile 2012-11-24 15:51:21 +0000 |
977 | @@ -1,26 +1,12 @@ |
978 | include envcheck.mk |
979 | |
980 | preprocess: envcheck |
981 | -ifeq ("x","x${NPROCS}") |
982 | - @echo "**********ERROR: Please define NPROCS to set the number of processors to use" |
983 | - @exit 1 |
984 | -endif |
985 | @echo **********Converting the gmsh mesh to triangle format: |
986 | ${BINPREFIX}gmsh2triangle med.msh |
987 | @echo **********Modifying mesh nodal file using sed: |
988 | sed '1s/3/2/2' < med.node > med2.node |
989 | @echo **********Replacing mesh with modified version: |
990 | mv med2.node med.node |
991 | -ifneq ($(NPROCS),64) |
992 | - @echo **********WARNING: This simulation is best run on 64 processors |
993 | -endif |
994 | -ifeq ($(NPROCS),1) |
995 | - @echo **********Serial run: not decomposing mesh |
996 | - @echo **********WARNING: This is a large simulation and will take a very long time in serial. Find a handy supercomputer. |
997 | -else |
998 | - @echo **********Decomposing the mesh into $(NPROCS) parts for parallel run: |
999 | - ${BINPREFIX}fldecomp -n $(NPROCS) -s med |
1000 | -endif |
1001 | |
1002 | run: envcheck |
1003 | ifndef ($(NPROCS)) |
1004 | @@ -35,8 +21,10 @@ |
1005 | @echo **********Calling fluidity in serial with verbose log output enabled: |
1006 | ${BINPREFIX}fluidity -v2 -l med.flml |
1007 | else |
1008 | + @echo **********Calling flredecomp in parallel with verbose log output enabled: |
1009 | + mpiexec -n $(NPROCS) ${BINPREFIX}flredecomp -i 1 -o $(NPROCS) -v -l med med_flredecomp |
1010 | @echo **********Calling fluidity in parallel with verbose log output enabled: |
1011 | - mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l med.flml |
1012 | + mpiexec -n $(NPROCS) ${BINPREFIX}fluidity -v2 -l med_flredecomp.flml |
1013 | endif |
1014 | |
1015 | postprocess: envcheck |
1016 | @@ -48,7 +36,8 @@ |
1017 | clean: |
1018 | @echo **********Cleaning the output from previous fluidity runs: |
1019 | rm -rf *gmt* *.ele *.node *.edge Med-GEBCO-5m-gauges-fes2004-O1-102 *med_* *.halo *.pvtu *.vtu *.stat *.log-* *.err-* *checkp* *Check* *matrixdump* |
1020 | + rm -rf *flredecomp* |
1021 | |
1022 | input: clean |
1023 | - $(MAKE) preprocess NPROCS=64 |
1024 | + $(MAKE) preprocess |
1025 | |
1026 | |
1027 | === modified file 'examples/tides_in_the_Mediterranean_Sea/envcheck.mk' |
1028 | --- examples/tides_in_the_Mediterranean_Sea/envcheck.mk 2012-11-02 12:02:33 +0000 |
1029 | +++ examples/tides_in_the_Mediterranean_Sea/envcheck.mk 2012-11-24 15:51:21 +0000 |
1030 | @@ -4,29 +4,29 @@ |
1031 | TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL} |
1032 | |
1033 | TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?) |
1034 | -TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?) |
1035 | +TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?) |
1036 | |
1037 | TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?) |
1038 | -TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?) |
1039 | +TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?) |
1040 | |
1041 | BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/) |
1042 | |
1043 | -TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP} |
1044 | -TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL} |
1045 | +TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP} |
1046 | +TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL} |
1047 | |
1048 | envcheck: |
1049 | -# Do we have both fluidity and fldecomp on the existing path? |
1050 | +# Do we have both fluidity and flredecomp on the existing path? |
1051 | ifneq (${TESTBIN},00) |
1052 | - # Do we only have fluidity (and not fldecomp) on the existing path? |
1053 | + # Do we only have fluidity (and not flredecomp) on the existing path? |
1054 | ifeq (${TESTBIN},01) |
1055 | - @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." |
1056 | + @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." |
1057 | @exit 1 |
1058 | else |
1059 | - # fluidity isn't on the path; do we have both fluidity and fldecomp locally? |
1060 | + # fluidity isn't on the path; do we have both fluidity and flredecomp locally? |
1061 | ifneq (${TESTBINLOCAL},00) |
1062 | - # Do we only have fluidity (and not fldecomp) locally? |
1063 | + # Do we only have fluidity (and not flredecomp) locally? |
1064 | ifeq (${TESTBINLOCAL},01) |
1065 | - @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." |
1066 | + @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." |
1067 | @exit 1 |
1068 | else |
1069 | # No fluidity binary on the system path or locally |
1070 | |
1071 | === modified file 'examples/tides_in_the_Mediterranean_Sea/tides_in_the_Mediterranean_Sea.xml' |
1072 | --- examples/tides_in_the_Mediterranean_Sea/tides_in_the_Mediterranean_Sea.xml 2010-11-08 18:38:29 +0000 |
1073 | +++ examples/tides_in_the_Mediterranean_Sea/tides_in_the_Mediterranean_Sea.xml 2012-11-24 15:51:21 +0000 |
1074 | @@ -4,7 +4,8 @@ |
1075 | <owner userid="ajm02"/> |
1076 | <tags>flml</tags> |
1077 | <problem_definition length="long" nprocs="64"> |
1078 | - <command_line>mpiexec fluidity -v2 -l med.flml</command_line> |
1079 | + <command_line>mpiexec flredecomp -i 1 -o 64 -v -l med med_flredecomp && |
1080 | +mpiexec fluidity -v2 -l med_flredecomp.flml</command_line> |
1081 | </problem_definition> |
1082 | <variables> |
1083 | <variable name="final_time" language="python"> |
1084 | |
1085 | === modified file 'examples/top_hat/envcheck.mk' |
1086 | --- examples/top_hat/envcheck.mk 2012-11-02 12:02:33 +0000 |
1087 | +++ examples/top_hat/envcheck.mk 2012-11-24 15:51:21 +0000 |
1088 | @@ -4,29 +4,29 @@ |
1089 | TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL} |
1090 | |
1091 | TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?) |
1092 | -TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?) |
1093 | +TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?) |
1094 | |
1095 | TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?) |
1096 | -TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?) |
1097 | +TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?) |
1098 | |
1099 | BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/) |
1100 | |
1101 | -TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP} |
1102 | -TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL} |
1103 | +TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP} |
1104 | +TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL} |
1105 | |
1106 | envcheck: |
1107 | -# Do we have both fluidity and fldecomp on the existing path? |
1108 | +# Do we have both fluidity and flredecomp on the existing path? |
1109 | ifneq (${TESTBIN},00) |
1110 | - # Do we only have fluidity (and not fldecomp) on the existing path? |
1111 | + # Do we only have fluidity (and not flredecomp) on the existing path? |
1112 | ifeq (${TESTBIN},01) |
1113 | - @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." |
1114 | + @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." |
1115 | @exit 1 |
1116 | else |
1117 | - # fluidity isn't on the path; do we have both fluidity and fldecomp locally? |
1118 | + # fluidity isn't on the path; do we have both fluidity and flredecomp locally? |
1119 | ifneq (${TESTBINLOCAL},00) |
1120 | - # Do we only have fluidity (and not fldecomp) locally? |
1121 | + # Do we only have fluidity (and not flredecomp) locally? |
1122 | ifeq (${TESTBINLOCAL},01) |
1123 | - @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." |
1124 | + @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." |
1125 | @exit 1 |
1126 | else |
1127 | # No fluidity binary on the system path or locally |
1128 | |
1129 | === modified file 'examples/water_collapse/envcheck.mk' |
1130 | --- examples/water_collapse/envcheck.mk 2012-11-02 12:02:33 +0000 |
1131 | +++ examples/water_collapse/envcheck.mk 2012-11-24 15:51:21 +0000 |
1132 | @@ -4,29 +4,29 @@ |
1133 | TESTPYTHON=${TESTPYTHONPATH}${TESTPYTHONLOCAL} |
1134 | |
1135 | TESTBINFLUIDITY=$(shell which fluidity >/dev/null ; echo $$?) |
1136 | -TESTBINFLDECOMP=$(shell which fldecomp >/dev/null ; echo $$?) |
1137 | +TESTBINFLREDECOMP=$(shell which flredecomp >/dev/null ; echo $$?) |
1138 | |
1139 | TESTBINFLUIDITYLOCAL=$(shell test -x ../../bin/fluidity >/dev/null ; echo $$?) |
1140 | -TESTBINFLDECOMPLOCAL=$(shell test -x ../../bin/fldecomp >/dev/null ; echo $$?) |
1141 | +TESTBINFLREDECOMPLOCAL=$(shell test -x ../../bin/flredecomp >/dev/null ; echo $$?) |
1142 | |
1143 | BINPREFIX=$(shell test -x ../../bin/fluidity >/dev/null && echo ${PWD}/../../bin/) |
1144 | |
1145 | -TESTBIN=${TESTBINFLUIDITY}${TESTBINFLDECOMP} |
1146 | -TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLDECOMPLOCAL} |
1147 | +TESTBIN=${TESTBINFLUIDITY}${TESTBINFLREDECOMP} |
1148 | +TESTBINLOCAL=${TESTBINFLUIDITYLOCAL}${TESTBINFLREDECOMPLOCAL} |
1149 | |
1150 | envcheck: |
1151 | -# Do we have both fluidity and fldecomp on the existing path? |
1152 | +# Do we have both fluidity and flredecomp on the existing path? |
1153 | ifneq (${TESTBIN},00) |
1154 | - # Do we only have fluidity (and not fldecomp) on the existing path? |
1155 | + # Do we only have fluidity (and not flredecomp) on the existing path? |
1156 | ifeq (${TESTBIN},01) |
1157 | - @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." |
1158 | + @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." |
1159 | @exit 1 |
1160 | else |
1161 | - # fluidity isn't on the path; do we have both fluidity and fldecomp locally? |
1162 | + # fluidity isn't on the path; do we have both fluidity and flredecomp locally? |
1163 | ifneq (${TESTBINLOCAL},00) |
1164 | - # Do we only have fluidity (and not fldecomp) locally? |
1165 | + # Do we only have fluidity (and not flredecomp) locally? |
1166 | ifeq (${TESTBINLOCAL},01) |
1167 | - @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." |
1168 | + @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." |
1169 | @exit 1 |
1170 | else |
1171 | # No fluidity binary on the system path or locally |
1172 | |
1173 | === modified file 'femtools/Checkpoint.F90' |
1174 | --- femtools/Checkpoint.F90 2012-03-21 17:52:32 +0000 |
1175 | +++ femtools/Checkpoint.F90 2012-11-24 15:51:21 +0000 |
1176 | @@ -98,7 +98,7 @@ |
1177 | end function do_checkpoint_simulation |
1178 | |
1179 | subroutine checkpoint_simulation(state, prefix, postfix, cp_no, protect_simulation_name, & |
1180 | - keep_initial_data) |
1181 | + keep_initial_data, ignore_detectors) |
1182 | !!< Checkpoint the whole simulation |
1183 | |
1184 | type(state_type), dimension(:), intent(in) :: state |
1185 | @@ -114,6 +114,11 @@ |
1186 | !! checkpoint extruded meshes if the extrusion can be repeated using the initial sizing_function, |
1187 | !! i.e. if this run has not been started with a checkpointed extruded mesh (extrude/checkpoint_from_file) |
1188 | logical, optional, intent(in) :: keep_initial_data |
1189 | + !! When using flredecomp to re-partition the domain, the detectors |
1190 | + !! are ignored since they are kept in one header and one data file, |
1191 | + !! not in a set of per-process files. So flredecomp does not want to |
1192 | + !! checkpoint detectors. |
1193 | + logical, optional, intent(in) :: ignore_detectors |
1194 | |
1195 | character(len = PREFIX_LEN) :: lpostfix, lprefix |
1196 | |
1197 | @@ -136,7 +141,8 @@ |
1198 | |
1199 | call checkpoint_state(state, lprefix, postfix = lpostfix, cp_no = cp_no, & |
1200 | keep_initial_data = keep_initial_data) |
1201 | - if(have_option("/io/detectors")) then |
1202 | + if(have_option("/io/detectors") & |
1203 | + .and. .not.present_and_true(ignore_detectors)) then |
1204 | call checkpoint_detectors(state, lprefix, postfix = lpostfix, cp_no = cp_no) |
1205 | end if |
1206 | if(getrank() == 0) then |
1207 | |
1208 | === modified file 'fldecomp/fldmain.cpp' |
1209 | --- fldecomp/fldmain.cpp 2012-04-03 14:10:55 +0000 |
1210 | +++ fldecomp/fldmain.cpp 2012-11-24 15:51:21 +0000 |
1211 | @@ -78,6 +78,29 @@ |
1212 | {0, 0, 0, 0} |
1213 | }; |
1214 | #endif |
1215 | + |
1216 | + // Always recommend using flredecomp |
1217 | + cerr<<"\n" |
1218 | + <<"\t*** fldecomp will be removed in a future release of Fluidity. ***\n" |
1219 | + <<"\n" |
1220 | + <<"\tflredecomp is the recommended tool for mesh decomposition.\n" |
1221 | + <<"\n" |
1222 | + <<"\tReplace the fldecomp workflow:\n" |
1223 | + <<"\n" |
1224 | + <<"\t<generate mesh>\n" |
1225 | + <<"\tfldecomp -n <nparts> <other options> mesh\n" |
1226 | + <<"\tmpiexec -n <nparts> fluidity <other options> foo.flml\n" |
1227 | + <<"\n" |
1228 | + <<"\twith the flredecomp workflow:\n" |
1229 | + <<"\n" |
1230 | + <<"\t<generate mesh>\n" |
1231 | + <<"\tmpiexec -n <nparts> flredecomp -i 1 -o <nparts> foo foo_flredecomp\n" |
1232 | + <<"\tmpiexec -n <nparts> fluidity <other options> foo_flredecomp.flml\n" |
1233 | + <<"\n" |
1234 | + <<"\tfldecomp is retained only to decompose Terreno meshes, which\n" |
1235 | + <<"\tflredecomp cannot process.\n" |
1236 | + <<"\n"; |
1237 | + |
1238 | int optionIndex = 0; |
1239 | |
1240 | optarg = NULL; |
1241 | |
1242 | === modified file 'manual/meshes.tex' |
1243 | --- manual/meshes.tex 2012-10-24 14:28:13 +0000 |
1244 | +++ manual/meshes.tex 2012-11-24 15:51:21 +0000 |
1245 | @@ -224,22 +224,10 @@ |
1246 | \label{fig:NACA0025_mesh_with_partitions} |
1247 | \end{figure} |
1248 | |
1249 | -\subsubsection{fldecomp} |
1250 | -\index{mesh!meshing tools!fldecomp} |
1251 | -\label{mesh!meshing tools!fldecomp} |
1252 | - |
1253 | -\lstinline[language=bash]+fldecomp+ can be used to decompose a mesh. For example, if your mesh |
1254 | -file is \lstinline[language=bash]+foo.msh+ and you want to decompose into four parts, type: |
1255 | -\begin{lstlisting}[language = Bash] |
1256 | -`\fluiditysourcepath'/bin/fldecomp -n 4 -m gmsh foo |
1257 | -\end{lstlisting} |
1258 | -See section \ref{sec:fldecomp} for more details. |
1259 | - |
1260 | \subsubsection{flredecomp} |
1261 | \index{mesh!meshing tools!flredecomp} |
1262 | \label{mesh!meshing tools!flredecomp} |
1263 | -\lstinline[language=bash]+flredecomp+ is a tool similar to \lstinline[language=bash]+fldecomp+ but runs in parallel. |
1264 | -It performs a re-decomposition of a Fluidity checkpoint. |
1265 | +\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. |
1266 | For example, to decompose the serial file \lstinline+foo.flml+ |
1267 | into four parts, running on 4 processors type: |
1268 | |
1269 | @@ -249,7 +237,7 @@ |
1270 | \end{lstlisting} |
1271 | |
1272 | The output of running flredecomp is a series of mesh and vtu files as well |
1273 | -as the new flml; in this case \lstinline+foo_flredecomp.flml+. |
1274 | +as the new flml to be used in the subsequent run of \fluidity. In the example above, this file is \lstinline+foo_flredecomp.flml+. |
1275 | Note that \lstinline[language=bash]+flredecomp+ must be run on a number of processors equal to the larger number of processors between input and output. |
1276 | |
1277 | When using flredecomp, it is possible to partition the mesh based upon a user defined weighting. |
1278 | @@ -259,6 +247,39 @@ |
1279 | |
1280 | Further information on flredecomp can be found in section~\ref{sec:flredecomp}. |
1281 | |
1282 | +\subsubsection{fldecomp} |
1283 | +\index{mesh!meshing tools!fldecomp} |
1284 | +\label{mesh!meshing tools!fldecomp} |
1285 | + |
1286 | +{\bf \lstinline[language=bash]+fldecomp+ will be removed in a future release of Fluidity.} |
1287 | + |
1288 | +\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. |
1289 | + |
1290 | +Here 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 |
1291 | + |
1292 | +\begin{lstlisting}[language=bash] |
1293 | +<generate mesh> |
1294 | +fldecomp -n <nparts> <other options> mesh |
1295 | +mpiexec -n <nparts> fluidity <other options> simulation.flml |
1296 | +\end{lstlisting} |
1297 | + |
1298 | +To use \lstinline[language=bash]+flredecomp+, the workflow becomes |
1299 | + |
1300 | +\begin{lstlisting}[language=bash] |
1301 | +<generate mesh> |
1302 | +mpiexec -n <nparts> flredecomp -i 1 -o <nparts> \ |
1303 | + simulation simulation_flredecomp |
1304 | +mpiexec -n <nparts> fluidity <other options> simulation_flredecomp.flml |
1305 | +\end{lstlisting} |
1306 | + |
1307 | +\lstinline[language=bash]+fldecomp+ is retained only to decompose Terreno meshes (section~\ref{sec:Terreno}), which \lstinline[language=bash]+flredecomp+ cannot process. |
1308 | + |
1309 | +For 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: |
1310 | +\begin{lstlisting}[language = Bash] |
1311 | +`\fluiditysourcepath'/bin/fldecomp -n 4 -t foo |
1312 | +\end{lstlisting} |
1313 | +See section \ref{sec:fldecomp} for more details. |
1314 | + |
1315 | \subsection{Decomposing a periodic mesh} |
1316 | \index{mesh!meshing tools!periodise} |
1317 | \label{sec:decomposing_meshes_periodise} |
1318 | @@ -299,6 +320,7 @@ |
1319 | \subsection{Terreno} |
1320 | \index{mesh!meshing tools!Terreno} |
1321 | \index{Terreno} |
1322 | +\label{sec:Terreno} |
1323 | |
1324 | Terreno uses a 2D anisotropic mesh optimisation algorithm to explicitly optimise for |
1325 | element quality and bathymetric approximation while minimising the number of mesh |
1326 | |
1327 | === modified file 'manual/parallel.tex' |
1328 | --- manual/parallel.tex 2011-10-21 10:05:25 +0000 |
1329 | +++ manual/parallel.tex 2012-11-24 15:51:21 +0000 |
1330 | @@ -12,41 +12,31 @@ |
1331 | \section{Set up} |
1332 | |
1333 | The first step in running a \fluidity\ set-up in parallel is to create the software |
1334 | -use to decompose the initial mesh into multiple parts, fldecomp. This can be made using: |
1335 | +use to decompose the initial mesh into multiple parts, flredecomp. This can be made using: |
1336 | \begin{lstlisting}[language=bash] |
1337 | make fltools |
1338 | \end{lstlisting} |
1339 | -inside your \fluidity\ folder.The fldecomp binary will then be created in the bin/ directory. |
1340 | +inside your \fluidity\ folder.The flredecomp binary will then be created in the bin/ directory. |
1341 | You can then decompose the initial mesh into multiple regions, one per process using the following command |
1342 | \begin{lstlisting}[language=bash] |
1343 | -fldecomp -n [PARTS] [BASENAME] |
1344 | +mpiexec -n [PARTS] flredecomp -i 1 -o [PARTS] [FLMLBASE] [NEWFLMLBASE] |
1345 | \end{lstlisting} |
1346 | -where BASENAME is the triangle mesh base name (excluding extensions). "-i triangle" |
1347 | -instruct fldecomp to perform a triangle-to-triangle decomposition. |
1348 | -This will create PARTS partition triangle meshes together with PARTS .halo files. |
1349 | - |
1350 | -\subsection{Decomposing a periodic mesh} |
1351 | - |
1352 | -To decompose a periodic mesh to be run on four processors simply type: |
1353 | +where FLMLBASE is the \fluidity input flml file base name (excluding |
1354 | +extensions), e.g. foo for foo.flml, and NEWFLMLBASE is the new flml |
1355 | +file base name, e.g. foo\_flredecomp for foo\_flredecomp.flml. For |
1356 | +example, to decompose a mesh to be run on four processors |
1357 | +simply type: |
1358 | |
1359 | \begin{lstlisting}[language=bash] |
1360 | mpiexec -n 4 ./myfluidity/bin/flredecomp \ |
1361 | - -i 1 -o 4 foo_periodised foo_periodised_flredecomp |
1362 | -\end{lstlisting} |
1363 | - |
1364 | -Where: |
1365 | - |
1366 | -\begin{lstlisting}[language=bash] |
1367 | -mpiexec -n [target number of processors] \ |
1368 | - ./myfluidity/bin/flredecomp -i [input number of processors] \ |
1369 | - -o [target number of processors] [input flml] [output flml] |
1370 | -\end{lstlisting} |
1371 | - |
1372 | -The 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: |
1373 | + -i 1 -o 4 foo foo_flredecomp |
1374 | +\end{lstlisting} |
1375 | + |
1376 | +The 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: |
1377 | |
1378 | \begin{lstlisting}[language=bash] |
1379 | mpiexec -n [number of processors] \ |
1380 | - ./myfluidity/bin/fluidity [options] foo_periodised_flredecomp.flml |
1381 | + ./myfluidity/bin/fluidity [options] foo_flredecomp.flml |
1382 | \end{lstlisting} |
1383 | |
1384 | \section{Running} |
1385 | @@ -127,4 +117,4 @@ |
1386 | |
1387 | \begin{lstlisting}[language=bash] |
1388 | $HOME/modules/fluidity-cx1 |
1389 | -\end{lstlisting} |
1390 | \ No newline at end of file |
1391 | +\end{lstlisting} |
1392 | |
1393 | === modified file 'manual/visualisation_and_diagnostics.tex' |
1394 | --- manual/visualisation_and_diagnostics.tex 2012-09-21 14:30:52 +0000 |
1395 | +++ manual/visualisation_and_diagnostics.tex 2012-11-24 15:51:21 +0000 |
1396 | @@ -728,36 +728,25 @@ |
1397 | |
1398 | \subsubsection{fldecomp} |
1399 | \label{sec:fldecomp} |
1400 | -fldecomp is used to decompose a mesh into multiple regions, one per |
1401 | -process. In order to run fldecomp, if your mesh files have the base name |
1402 | -\lstinline{foo}\ and you want to decompose into four parts, type: |
1403 | + |
1404 | +{\bf fldecomp will be removed in a future release of Fluidity.} |
1405 | + |
1406 | +flredecomp (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 |
1407 | +process. In order to run fldecomp, if your Terreno mesh files have the base name |
1408 | +\lstinline{foo}\ and you want to decompose the mesh into four parts, type: |
1409 | \begin{lstlisting}[language = Bash] |
1410 | -fldecomp -n 4 -m mesh_format mesh_file |
1411 | +fldecomp -n 4 -t mesh_file |
1412 | \end{lstlisting} |
1413 | |
1414 | Where: |
1415 | \begin{center} |
1416 | \begin{tabular}{lp{.8\textwidth}} |
1417 | - \lstinline+mesh_file+ & is the base name of your mesh file(s). For |
1418 | - example, \lstinline+foo+ for \lstinline+foo.msh+ with Gmsh format, or |
1419 | - \lstinline+foo.face/node/ele+ with triangle format.\\ |
1420 | - \lstinline+mesh_format+ & is the format of the mesh file you wish to |
1421 | - decompose. It can take two values: \lstinline+gmsh+ or |
1422 | - \lstinline+triangle+. If you omit the \lstinline+-m+ option, |
1423 | - \lstinline+fldecomp+ will default to \lstinline+triangle+. |
1424 | + \lstinline+mesh_file+ & is the base name of your mesh files. For |
1425 | + example, \lstinline+foo+ for \lstinline+foo.face/node/ele+ in the triangle |
1426 | + format generated by Terreno. |
1427 | \end{tabular} |
1428 | \end{center} |
1429 | |
1430 | -For performance reasons, \lstinline[language=Bash]{fldecomp} supports only |
1431 | -binary Gmsh files. These are generated by passing the \lstinline{-bin}\ |
1432 | -argument to Gmsh, for example: |
1433 | - |
1434 | -\begin{lstlisting}[language=bash] |
1435 | -gmsh -3 -bin project.geo -o project.msh |
1436 | -\end{lstlisting} |
1437 | - |
1438 | -This creates a 3D binary Gmsh mesh called \lstinline{project.msh} from the geometry file. |
1439 | - |
1440 | %%%%%%%%%%%%%%%%%%%%%%%%% FLDIAGNOSTICS %%%%%%%%%%%%%%%%%%%%%%%%%% |
1441 | |
1442 | \subsubsection{fldiagnostics} |
1443 | @@ -793,10 +782,10 @@ |
1444 | |
1445 | \subsubsection{flredecomp} |
1446 | \label{sec:flredecomp} |
1447 | -flredecomp is a parallel tool that performs a re-decomposition of a Fluidity checkpoint. |
1448 | +flredecomp is a parallel tool that performs a decomposition of an initial mesh, or a re-decomposition of a Fluidity checkpoint. |
1449 | It is invoked as follows: |
1450 | \begin{lstlisting}[language=bash] |
1451 | -mpiexec -n [target number of processors] flredecomp \ |
1452 | +mpiexec -n [maximum of input and target number of processors] flredecomp \ |
1453 | -i [input number of processors] \ |
1454 | -o [target number of processors] [input flml] [output flml] |
1455 | \end{lstlisting} |
1456 | |
1457 | === modified file 'ocean_forcing/Calendar.cpp' |
1458 | --- ocean_forcing/Calendar.cpp 2010-03-26 23:20:56 +0000 |
1459 | +++ ocean_forcing/Calendar.cpp 2012-11-24 15:51:21 +0000 |
1460 | @@ -85,11 +85,11 @@ |
1461 | if(err==UT_ENOINIT){ |
1462 | cerr<<"ERROR ("<<__FILE__<<"): UDUNITS has not been initialized.\n"; |
1463 | }else if(err==UT_EINVALID){ |
1464 | - cerr<<"ERROR ("<<__FILE__<<"): The unit argument is a null pointer.\n"; |
1465 | + cerr<<"ERROR ("<<__FILE__<<"): The _from_unit unit argument is a null pointer.\n"; |
1466 | }else if(err==UT_EUNKNOWN){ |
1467 | - cerr<<"ERROR ("<<__FILE__<<"): The specification contains an unknown unit.\n"; |
1468 | + cerr<<"ERROR ("<<__FILE__<<"): The _from_unit specification contains an unknown unit.\n"; |
1469 | }else if(err==UT_ESYNTAX){ |
1470 | - cerr<<"ERROR ("<<__FILE__<<"): The specification contains a syntax error.\n"; |
1471 | + cerr<<"ERROR ("<<__FILE__<<"): The _from_unit specification contains a syntax error.\n"; |
1472 | } |
1473 | if(err) |
1474 | exit(-1); |
1475 | @@ -98,11 +98,11 @@ |
1476 | if(err==UT_ENOINIT){ |
1477 | cerr<<"ERROR ("<<__FILE__<<"): UDUNITS has not been initialized.\n"; |
1478 | }else if(err==UT_EINVALID){ |
1479 | - cerr<<"ERROR ("<<__FILE__<<"): The unit argument is a null pointer.\n"; |
1480 | + cerr<<"ERROR ("<<__FILE__<<"): The _to_unit unit argument is a null pointer.\n"; |
1481 | }else if(err==UT_EUNKNOWN){ |
1482 | - cerr<<"ERROR ("<<__FILE__<<"): The specification contains an unknown unit.\n"; |
1483 | + cerr<<"ERROR ("<<__FILE__<<"): The _to_unit specification contains an unknown unit.\n"; |
1484 | }else if(err==UT_ESYNTAX){ |
1485 | - cerr<<"ERROR ("<<__FILE__<<"): The specification contains a syntax error.\n"; |
1486 | + cerr<<"ERROR ("<<__FILE__<<"): The _to_unit specification contains a syntax error.\n"; |
1487 | } |
1488 | if(err) |
1489 | exit(-1); |
1490 | |
1491 | === modified file 'preprocessor/Populate_State.F90' |
1492 | --- preprocessor/Populate_State.F90 2012-11-18 11:22:44 +0000 |
1493 | +++ preprocessor/Populate_State.F90 2012-11-24 15:51:21 +0000 |
1494 | @@ -232,6 +232,8 @@ |
1495 | call get_option("/geometry/quadrature/degree", quad_degree) |
1496 | quad_family = get_quad_family() |
1497 | |
1498 | + ! to make sure that the dimension is set even if MPI is not being used |
1499 | + call get_option('/geometry/dimension', dim) |
1500 | |
1501 | if (is_active_process) then |
1502 | select case (mesh_file_format) |
1503 | @@ -310,14 +312,21 @@ |
1504 | else |
1505 | mesh_dims(3)=0 |
1506 | end if |
1507 | + ! The coordinate dimension is not the same as the mesh dimension |
1508 | + ! in the case of spherical shells, and needs to be broadcast as |
1509 | + ! well. And this needs to be here to allow for the special case |
1510 | + ! below |
1511 | + dim=position%dim |
1512 | else |
1513 | ! this is a special case for a unit test with 1 inactive process |
1514 | call get_option('/geometry/dimension', mesh_dims(1)) |
1515 | mesh_dims(2)=mesh_dims(1)+1 |
1516 | mesh_dims(3)=0 |
1517 | + dim = mesh_dims(1) |
1518 | end if |
1519 | end if |
1520 | call MPI_bcast(mesh_dims, 3, getpinteger(), 0, MPI_COMM_FEMTOOLS, stat) |
1521 | + call MPI_bcast(dim, 1, getpinteger(), 0, MPI_COMM_FEMTOOLS, stat) |
1522 | end if |
1523 | |
1524 | |
1525 | @@ -326,14 +335,14 @@ |
1526 | ! see the comment in Global_Parameters. In this block, |
1527 | ! we want to allocate an empty mesh and positions. |
1528 | |
1529 | - dim=mesh_dims(1) |
1530 | + mdim=mesh_dims(1) |
1531 | loc=mesh_dims(2) |
1532 | column_ids=mesh_dims(3) |
1533 | |
1534 | allocate(quad) |
1535 | allocate(shape) |
1536 | - quad = make_quadrature(loc, dim, degree=quad_degree, family=quad_family) |
1537 | - shape=make_element_shape(loc, dim, 1, quad) |
1538 | + quad = make_quadrature(loc, mdim, degree=quad_degree, family=quad_family) |
1539 | + shape=make_element_shape(loc, mdim, 1, quad) |
1540 | call allocate(mesh, nodes=0, elements=0, shape=shape, name="EmptyMesh") |
1541 | call allocate(position, dim, mesh, "EmptyCoordinate") |
1542 | call add_faces(mesh) |
1543 | |
1544 | === modified file 'tests/5material-droplet-parallel/5material-droplet-parallel.xml' |
1545 | --- tests/5material-droplet-parallel/5material-droplet-parallel.xml 2012-06-28 08:23:27 +0000 |
1546 | +++ tests/5material-droplet-parallel/5material-droplet-parallel.xml 2012-11-24 15:51:21 +0000 |
1547 | @@ -5,7 +5,7 @@ |
1548 | <owner userid="cwilson"/> |
1549 | <tags>flml solidity parallel</tags> |
1550 | <problem_definition length="medium" nprocs="1"> |
1551 | - <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l 5material-droplet.flml</command_line> |
1552 | + <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l 5material-droplet_flredecomp.flml</command_line> |
1553 | </problem_definition> |
1554 | <variables> |
1555 | <variable name="solvers_converged" language="python"> |
1556 | |
1557 | === modified file 'tests/5material-droplet-parallel/Makefile' |
1558 | --- tests/5material-droplet-parallel/Makefile 2012-06-28 08:23:27 +0000 |
1559 | +++ tests/5material-droplet-parallel/Makefile 2012-11-24 15:51:21 +0000 |
1560 | @@ -1,9 +1,10 @@ |
1561 | input: clean |
1562 | ../../bin/gmsh2triangle --2d src/square.msh |
1563 | - ../../bin/fldecomp -n 2 square |
1564 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l 5material-droplet 5material-droplet_flredecomp |
1565 | |
1566 | clean: |
1567 | rm -rf *.halo *.stat *.vtu *.pvtu *.node *.ele *.edge *.log-0 *.err-0 *checkpoint *.convergence |
1568 | rm -f *.err-? *.log-? |
1569 | rm -rf 5material-droplet_? 5material-droplet_?? \ |
1570 | matrixdump matrixdump.info |
1571 | + rm -rf *flredecomp* |
1572 | |
1573 | === modified file 'tests/Stokes_square_convection_1e4_p1p1_parallel/Makefile' |
1574 | --- tests/Stokes_square_convection_1e4_p1p1_parallel/Makefile 2011-10-27 22:51:21 +0000 |
1575 | +++ tests/Stokes_square_convection_1e4_p1p1_parallel/Makefile 2012-11-24 15:51:21 +0000 |
1576 | @@ -3,21 +3,16 @@ |
1577 | FLUIDITY = dfluidity |
1578 | MESH = square-structured-linear |
1579 | MODEL = Stokes-square-convection-1e4-p1p1 |
1580 | -NP = 2 |
1581 | |
1582 | default: input |
1583 | |
1584 | input: src/$(MESH).edge src/$(MESH).ele src/$(MESH).node clean |
1585 | cp src/$(MESH).edge src/$(MESH).ele src/$(MESH).node . |
1586 | |
1587 | -ifdef NP |
1588 | - fldecomp -n $(NP) -v $(MESH) > decomp.log 2> decomp_err.log |
1589 | -endif |
1590 | - |
1591 | clean: clean-mesh clean-run-debug |
1592 | clean-mesh: |
1593 | rm -f $(MESH).ele $(MESH).face $(MESH).node $(MESH).edge |
1594 | - rm -f $(MESH)_?*.ele $(MESH)_?*.edge $(MESH)_?*.face $(MESH)_?*.halo $(MESH)_?*.node decomp.log decomp_err.log |
1595 | + rm -f $(MESH)_?*.ele $(MESH)_?*.edge $(MESH)_?*.face $(MESH)_?*.halo $(MESH)_?*.node |
1596 | clean-run: |
1597 | rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*.vtu |
1598 | rm -f $(FLMLMODEL).detectors.dat $(FLMLMODEL).detectors $(FLMLMODEL).stat tmpf* |
1599 | @@ -28,6 +23,7 @@ |
1600 | rm -f $(FLMLMODEL)_?*_?*_checkpoint.pvtu $(FLMLMODEL)_?*_?*_checkpoint.vtu |
1601 | rm -f $(FLMLMODEL)_?*_checkpoint.ele $(FLMLMODEL)_?*_checkpoint.face $(FLMLMODEL)_?*_checkpoint.node |
1602 | rm -f $(FLMLMODEL)_?*_checkpoint.vtu |
1603 | + rm -rf *flredecomp* |
1604 | clean-run-debug: clean-run |
1605 | 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 |
1606 | rm -rf $(FLMLMODEL)_? |
1607 | |
1608 | === modified file 'tests/Stokes_square_convection_1e4_p1p1_parallel/Stokes_square_convection_1e4_p1p1_parallel.xml' |
1609 | --- tests/Stokes_square_convection_1e4_p1p1_parallel/Stokes_square_convection_1e4_p1p1_parallel.xml 2012-06-28 08:23:27 +0000 |
1610 | +++ tests/Stokes_square_convection_1e4_p1p1_parallel/Stokes_square_convection_1e4_p1p1_parallel.xml 2012-11-24 15:51:21 +0000 |
1611 | @@ -6,7 +6,8 @@ |
1612 | <tags>flml parallel</tags> |
1613 | |
1614 | <problem_definition length="medium" nprocs="1"> |
1615 | - <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l Stokes-square-convection-1e4-p1p1-parallel.flml</command_line> |
1616 | + <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 && |
1617 | +mpiexec -np 2 ../../bin/fluidity -v2 -l Stokes-square-convection-1e4-p1p1-parallel_flredecomp.flml</command_line> |
1618 | </problem_definition> |
1619 | |
1620 | <variables> |
1621 | |
1622 | === modified file 'tests/Stokes_square_convection_1e4_p2p1_parallel/Makefile' |
1623 | --- tests/Stokes_square_convection_1e4_p2p1_parallel/Makefile 2011-10-27 22:51:21 +0000 |
1624 | +++ tests/Stokes_square_convection_1e4_p2p1_parallel/Makefile 2012-11-24 15:51:21 +0000 |
1625 | @@ -3,21 +3,16 @@ |
1626 | FLUIDITY = fluidity |
1627 | MESH = square-structured-linear |
1628 | MODEL = Stokes-square-convection-1e4-parallel-p2p1 |
1629 | -NP = 2 |
1630 | |
1631 | default: input |
1632 | |
1633 | input: src/$(MESH).edge src/$(MESH).ele src/$(MESH).node clean |
1634 | cp src/$(MESH).edge src/$(MESH).ele src/$(MESH).node . |
1635 | |
1636 | -ifdef NP |
1637 | - fldecomp -n $(NP) -v $(MESH) > decomp.log 2> decomp_err.log |
1638 | -endif |
1639 | - |
1640 | clean: clean-mesh clean-run-debug |
1641 | clean-mesh: |
1642 | rm -f $(MESH).ele $(MESH).face $(MESH).node $(MESH).edge |
1643 | - rm -f $(MESH)_?*.ele $(MESH)_?*.edge $(MESH)_?*.face $(MESH)_?*.halo $(MESH)_?*.node decomp.log decomp_err.log |
1644 | + rm -f $(MESH)_?*.ele $(MESH)_?*.edge $(MESH)_?*.face $(MESH)_?*.halo $(MESH)_?*.node |
1645 | clean-run: |
1646 | rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*.vtu |
1647 | rm -f $(FLMLMODEL).detectors $(FLMLMODEL).stat tmpf* |
1648 | @@ -29,6 +24,7 @@ |
1649 | rm -f $(FLMLMODEL)_?*_checkpoint.ele $(FLMLMODEL)_?*_checkpoint.face $(FLMLMODEL)_?*_checkpoint.node |
1650 | rm -f $(FLMLMODEL)_?*_checkpoint.vtu |
1651 | rm -f -R $(FLMLMODEL)_* rm $(FLMLMODEL)*.dat |
1652 | + rm -rf *flredecomp* |
1653 | clean-run-debug: clean-run |
1654 | 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 |
1655 | |
1656 | |
1657 | === modified file 'tests/Stokes_square_convection_1e4_p2p1_parallel/Stokes_square_convection_1e4_p2p1_parallel.xml' |
1658 | --- tests/Stokes_square_convection_1e4_p2p1_parallel/Stokes_square_convection_1e4_p2p1_parallel.xml 2012-06-28 08:23:27 +0000 |
1659 | +++ tests/Stokes_square_convection_1e4_p2p1_parallel/Stokes_square_convection_1e4_p2p1_parallel.xml 2012-11-24 15:51:21 +0000 |
1660 | @@ -6,7 +6,8 @@ |
1661 | <tags>flml parallel</tags> |
1662 | |
1663 | <problem_definition length="medium" nprocs="1"> |
1664 | - <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l Stokes-square-convection-1e4-p2p1-parallel.flml</command_line> |
1665 | + <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 && |
1666 | +mpiexec -np 2 ../../bin/fluidity -v2 -l Stokes-square-convection-1e4-p2p1-parallel_flredecomp.flml</command_line> |
1667 | </problem_definition> |
1668 | |
1669 | <variables> |
1670 | |
1671 | === modified file 'tests/backward_facing_step_2d_zoltan_sam/Makefile' |
1672 | --- tests/backward_facing_step_2d_zoltan_sam/Makefile 2012-06-28 08:23:27 +0000 |
1673 | +++ tests/backward_facing_step_2d_zoltan_sam/Makefile 2012-11-24 15:51:21 +0000 |
1674 | @@ -1,6 +1,6 @@ |
1675 | input: |
1676 | gmsh -2 -o unstructured.msh src/unstructured.geo && ../../bin/gmsh2triangle --2d unstructured.msh |
1677 | - ../../bin/fldecomp -n 2 unstructured |
1678 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l backward_facing_step_2d backward_facing_step_2d_flredecomp |
1679 | cp -r sam_output/* . |
1680 | |
1681 | clean: |
1682 | @@ -8,3 +8,4 @@ |
1683 | rm -rf backward_facing_step_2d_? |
1684 | rm -rf backward_facing_step_2d_sam_9* \ |
1685 | matrixdump matrixdump.info |
1686 | + rm -rf *flredecomp* |
1687 | |
1688 | === modified file 'tests/backward_facing_step_2d_zoltan_sam/backward_facing_step_2d_zoltan_sam.xml' |
1689 | --- tests/backward_facing_step_2d_zoltan_sam/backward_facing_step_2d_zoltan_sam.xml 2012-06-28 08:23:27 +0000 |
1690 | +++ tests/backward_facing_step_2d_zoltan_sam/backward_facing_step_2d_zoltan_sam.xml 2012-11-24 15:51:21 +0000 |
1691 | @@ -6,7 +6,7 @@ |
1692 | <owner userid="jhill1"/> |
1693 | <tags>flml zoltan parallel 2dadapt</tags> |
1694 | <problem_definition length="medium" nprocs="1"> |
1695 | - <command_line>mpiexec -n 2 ../../bin/fluidity backward_facing_step_2d.flml</command_line> |
1696 | + <command_line>mpiexec -n 2 ../../bin/fluidity backward_facing_step_2d_flredecomp.flml</command_line> |
1697 | </problem_definition> |
1698 | <variables> |
1699 | <variable name="solvers_converged" language="python"> |
1700 | |
1701 | === modified file 'tests/biology_6_component_parallel/Makefile' |
1702 | --- tests/biology_6_component_parallel/Makefile 2012-06-28 08:23:27 +0000 |
1703 | +++ tests/biology_6_component_parallel/Makefile 2012-11-24 15:51:21 +0000 |
1704 | @@ -1,6 +1,6 @@ |
1705 | input: clean |
1706 | ../../bin/create_aligned_mesh box 50 50 -- -50 10 10 10 |
1707 | - ../../bin/fldecomp -n 2 box |
1708 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l biology_conservation_parallel biology_conservation_parallel_flredecomp |
1709 | |
1710 | clean: |
1711 | # serial |
1712 | @@ -11,3 +11,4 @@ |
1713 | rm -rf biology_conservation_parallel_* |
1714 | rm -rf *.halo \ |
1715 | matrixdump matrixdump.info |
1716 | + rm -rf *flredecomp* |
1717 | |
1718 | === modified file 'tests/biology_6_component_parallel/biology_6_component_parallel.xml' |
1719 | --- tests/biology_6_component_parallel/biology_6_component_parallel.xml 2012-06-28 08:23:27 +0000 |
1720 | +++ tests/biology_6_component_parallel/biology_6_component_parallel.xml 2012-11-24 15:51:21 +0000 |
1721 | @@ -5,7 +5,7 @@ |
1722 | <owner userid="jhill1"/> |
1723 | <tags>flml biology parallel</tags> |
1724 | <problem_definition length="short" nprocs="1"> |
1725 | - <command_line>mpiexec -n 2 ../../bin/fluidity biology_conservation_parallel.flml; fluidity biology_conservation.flml; </command_line> |
1726 | + <command_line>mpiexec -n 2 ../../bin/fluidity biology_conservation_parallel_flredecomp.flml; fluidity biology_conservation.flml; </command_line> |
1727 | <!-- PZNDAC model running in a water column not solving for any physics. No sinking of detritus, so everything conserved --> |
1728 | </problem_definition> |
1729 | <variables> |
1730 | |
1731 | === modified file 'tests/circle-2d-drag-zoltan/Makefile' |
1732 | --- tests/circle-2d-drag-zoltan/Makefile 2012-06-28 08:23:27 +0000 |
1733 | +++ tests/circle-2d-drag-zoltan/Makefile 2012-11-24 15:51:21 +0000 |
1734 | @@ -1,9 +1,11 @@ |
1735 | input: clean |
1736 | ../../bin/gmsh2triangle -2 src/circle-serial.msh |
1737 | ../../bin/gmsh2triangle -2 src/circle-parallel.msh |
1738 | - ../../bin/fldecomp -n 3 circle-parallel |
1739 | + mpiexec -n 3 ../../bin/flredecomp -i 1 -o 3 -v -l circle-2d-drag-parallel circle-2d-drag-parallel_flredecomp |
1740 | + mpiexec -n 3 ../../bin/flredecomp -i 1 -o 3 -v -l circle-2d-drag-parallel-adaptive circle-2d-drag-parallel-adaptive_flredecomp |
1741 | |
1742 | clean: |
1743 | rm -f *.halo *.ele *.edge *.face *.node *.poly *.vtu *.pvtu *.s *.d.* *.stat *.s *.log-0 *.err-0 |
1744 | rm -rf circle-2d-drag-parallel_? circle-2d-drag-parallel-adaptive_? \ |
1745 | matrixdump matrixdump.info |
1746 | + rm -rf *flredecomp* |
1747 | |
1748 | === modified file 'tests/circle-2d-drag-zoltan/circle-2d-drag-zoltan.xml' |
1749 | --- tests/circle-2d-drag-zoltan/circle-2d-drag-zoltan.xml 2012-06-28 08:23:27 +0000 |
1750 | +++ tests/circle-2d-drag-zoltan/circle-2d-drag-zoltan.xml 2012-11-24 15:51:21 +0000 |
1751 | @@ -8,8 +8,8 @@ |
1752 | <tags>flml zoltan parallel 2dadapt</tags> |
1753 | <problem_definition length="medium" nprocs="1"> |
1754 | <command_line>fluidity circle-2d-drag-serial.flml; |
1755 | - mpiexec -n 3 ../../bin/fluidity circle-2d-drag-parallel.flml; |
1756 | - mpiexec -n 3 ../../bin/fluidity circle-2d-drag-parallel-adaptive.flml; |
1757 | + mpiexec -n 3 ../../bin/fluidity circle-2d-drag-parallel_flredecomp.flml; |
1758 | + mpiexec -n 3 ../../bin/fluidity circle-2d-drag-parallel-adaptive_flredecomp.flml; |
1759 | </command_line> |
1760 | </problem_definition> |
1761 | <variables> |
1762 | |
1763 | === modified file 'tests/column-parallel/Makefile' |
1764 | --- tests/column-parallel/Makefile 2012-09-19 10:31:15 +0000 |
1765 | +++ tests/column-parallel/Makefile 2012-11-24 15:51:21 +0000 |
1766 | @@ -1,8 +1,8 @@ |
1767 | input: clean |
1768 | gmsh -3 -o column.msh src/column.geo |
1769 | ../../bin/gmsh2triangle column.msh |
1770 | - ../../bin/fldecomp -n 2 column |
1771 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l column-parallel column-parallel_flredecomp |
1772 | |
1773 | clean: |
1774 | - rm -f *.ele *.edge *.msh *.node *.face *.poly *.pvtu *.vtu *.s *.stat *.log-? *.err-? matrixdump* *log *err |
1775 | + rm -f *.ele *.edge *.msh *.node *.face *.poly *.pvtu *.vtu *.s *.stat *.log-* *.err-* matrixdump* *log *err |
1776 | rm -rf column-parallel_* *.halo |
1777 | |
1778 | === modified file 'tests/column-parallel/column-parallel.xml' |
1779 | --- tests/column-parallel/column-parallel.xml 2012-06-28 08:23:27 +0000 |
1780 | +++ tests/column-parallel/column-parallel.xml 2012-11-24 15:51:21 +0000 |
1781 | @@ -5,7 +5,7 @@ |
1782 | <owner userid="jhill1"/> |
1783 | <tags>flml</tags> |
1784 | <problem_definition length="short" nprocs="1"> |
1785 | - <command_line>mpiexec -n 2 ../../bin/fluidity -v1 -l column-parallel.flml </command_line> |
1786 | + <command_line>mpiexec -n 2 ../../bin/fluidity -v1 -l column-parallel_flredecomp.flml </command_line> |
1787 | </problem_definition> |
1788 | <variables> |
1789 | <variable name="solvers_converged" language="python"> |
1790 | |
1791 | === modified file 'tests/darcy_p0p1_test_cty_cv_pressBCinlet_advect_tracer_p0_steptwochannel/darcy_p0p1_test_cty_cv_pressBCinlet_advect_tracer_p0_steptwochannel.xml' |
1792 | --- 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 |
1793 | +++ 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 |
1794 | @@ -68,10 +68,10 @@ |
1795 | print 'Solution relative error: ',abs((integral_tracer_cons_exp_weakbc_upwind_2d - analytic_int)/analytic_int) |
1796 | assert abs((integral_tracer_cons_exp_weakbc_upwind_2d - analytic_int)/analytic_int) < 8.0e-03 |
1797 | </test> |
1798 | - <test name="Max of tracer_cons_exp_weakbc_upwind for 2d should be 1.0, check with tolerance 1.0e-08" language="python"> |
1799 | + <test name="Max of tracer_cons_exp_weakbc_upwind for 2d should be 1.0, check with tolerance 1.1e-08" language="python"> |
1800 | analytic_int = 1.0 |
1801 | print 'Solution relative error: ',abs((max_tracer_cons_exp_weakbc_upwind_2d - analytic_int)/analytic_int) |
1802 | -assert abs((max_tracer_cons_exp_weakbc_upwind_2d - analytic_int)/analytic_int) < 1.0e-08 |
1803 | +assert abs((max_tracer_cons_exp_weakbc_upwind_2d - analytic_int)/analytic_int) < 1.1e-08 |
1804 | </test> |
1805 | <test name="Min of tracer_cons_exp_weakbc_upwind for 2d should be 0.0, check with tolerance 6.0e-04" language="python"> |
1806 | analytic_int = 0.0 |
1807 | |
1808 | === modified file 'tests/detectors_mesh_movement_parallel/Makefile' |
1809 | --- tests/detectors_mesh_movement_parallel/Makefile 2011-10-27 22:51:21 +0000 |
1810 | +++ tests/detectors_mesh_movement_parallel/Makefile 2012-11-24 15:51:21 +0000 |
1811 | @@ -2,7 +2,7 @@ |
1812 | |
1813 | input: clean |
1814 | ../../bin/gmsh2triangle --2d src/square.msh |
1815 | - ../../bin/fldecomp -n 2 -v square |
1816 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l detectors detectors_flredecomp |
1817 | |
1818 | clean: clean-mesh clean-run |
1819 | clean-mesh: |
1820 | @@ -12,3 +12,4 @@ |
1821 | rm -f matrixdump matrixdump.info |
1822 | rm -f fluidity.err-* fluidity.log-* |
1823 | rm -rf detectors_? |
1824 | + rm -rf *flredecomp* |
1825 | |
1826 | === modified file 'tests/detectors_mesh_movement_parallel/detectors_mesh_movement_parallel.xml' |
1827 | --- tests/detectors_mesh_movement_parallel/detectors_mesh_movement_parallel.xml 2012-06-28 08:23:27 +0000 |
1828 | +++ tests/detectors_mesh_movement_parallel/detectors_mesh_movement_parallel.xml 2012-11-24 15:51:21 +0000 |
1829 | @@ -4,7 +4,7 @@ |
1830 | <owner userid="mlange"/> |
1831 | <tags>flml parallel</tags> |
1832 | <problem_definition length="short" nprocs="1"> |
1833 | - <command_line>mpiexec -n 2 ../../bin/fluidity -v2 -l detectors.flml</command_line> |
1834 | + <command_line>mpiexec -n 2 ../../bin/fluidity -v2 -l detectors_flredecomp.flml</command_line> |
1835 | </problem_definition> |
1836 | <variables> |
1837 | <variable name="solvers_converged" language="python"> |
1838 | |
1839 | === modified file 'tests/detectors_parallel_adaptivity/Makefile' |
1840 | --- tests/detectors_parallel_adaptivity/Makefile 2011-10-21 10:05:25 +0000 |
1841 | +++ tests/detectors_parallel_adaptivity/Makefile 2012-11-24 15:51:21 +0000 |
1842 | @@ -2,7 +2,7 @@ |
1843 | |
1844 | input: clean |
1845 | ../../bin/gmsh2triangle --2d src/square.msh |
1846 | - ../../bin/fldecomp -n 2 -v square |
1847 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l detectors detectors_flredecomp |
1848 | |
1849 | clean: clean-mesh clean-run |
1850 | clean-mesh: |
1851 | @@ -12,3 +12,4 @@ |
1852 | rm -f matrixdump matrixdump.info |
1853 | rm -f fluidity.err-* fluidity.log-* |
1854 | rm -rf detectors_[0-4]* |
1855 | + rm -rf *flredecomp* |
1856 | |
1857 | === modified file 'tests/detectors_parallel_adaptivity/detectors_parallel_adaptivity.xml' |
1858 | --- tests/detectors_parallel_adaptivity/detectors_parallel_adaptivity.xml 2012-06-28 08:23:27 +0000 |
1859 | +++ tests/detectors_parallel_adaptivity/detectors_parallel_adaptivity.xml 2012-11-24 15:51:21 +0000 |
1860 | @@ -4,7 +4,7 @@ |
1861 | <owner userid="jhill1"/> |
1862 | <tags>flml parallel</tags> |
1863 | <problem_definition length="short" nprocs="1"> |
1864 | - <command_line>mpiexec -n 2 ../../bin/fluidity -v2 -l detectors.flml</command_line> |
1865 | + <command_line>mpiexec -n 2 ../../bin/fluidity -v2 -l detectors_flredecomp.flml</command_line> |
1866 | </problem_definition> |
1867 | <variables> |
1868 | <variable name="solvers_converged" language="python"> |
1869 | |
1870 | === modified file 'tests/diffusion_2d_p0_adaptive_parallel/Makefile' |
1871 | --- tests/diffusion_2d_p0_adaptive_parallel/Makefile 2012-06-28 08:23:27 +0000 |
1872 | +++ tests/diffusion_2d_p0_adaptive_parallel/Makefile 2012-11-24 15:51:21 +0000 |
1873 | @@ -1,8 +1,9 @@ |
1874 | input: clean |
1875 | ../../bin/gmsh2triangle --2d src/square.msh |
1876 | - ../../bin/fldecomp -n 3 square |
1877 | + mpiexec -n 3 ../../bin/flredecomp -i 1 -o 3 -v -l heat heat_flredecomp |
1878 | |
1879 | clean: |
1880 | rm -f *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu fluidity.* *.s *.d.1 *.stat *detectors* |
1881 | rm -rf heat_? \ |
1882 | matrixdump matrixdump.info |
1883 | + rm -rf *flredecomp* |
1884 | |
1885 | === modified file 'tests/diffusion_2d_p0_adaptive_parallel/diffusion_2d_p0_adaptive_parallel.xml' |
1886 | --- tests/diffusion_2d_p0_adaptive_parallel/diffusion_2d_p0_adaptive_parallel.xml 2012-06-28 08:23:27 +0000 |
1887 | +++ tests/diffusion_2d_p0_adaptive_parallel/diffusion_2d_p0_adaptive_parallel.xml 2012-11-24 15:51:21 +0000 |
1888 | @@ -5,7 +5,7 @@ |
1889 | <owner userid="cwilson"/> |
1890 | <tags>flml zoltan parallel 2dadapt</tags> |
1891 | <problem_definition length="medium" nprocs="1"> |
1892 | - <command_line>mpiexec -np 3 fluidity -v2 -l heat.flml </command_line> |
1893 | + <command_line>mpiexec -np 3 fluidity -v2 -l heat_flredecomp.flml </command_line> |
1894 | <!-- Two dimensional diffusion only problem. --> |
1895 | </problem_definition> |
1896 | <variables> |
1897 | |
1898 | === modified file 'tests/diffusion_2d_p0_parallel/Makefile' |
1899 | --- tests/diffusion_2d_p0_parallel/Makefile 2012-06-28 08:23:27 +0000 |
1900 | +++ tests/diffusion_2d_p0_parallel/Makefile 2012-11-24 15:51:21 +0000 |
1901 | @@ -1,7 +1,8 @@ |
1902 | input: clean |
1903 | ../../bin/gmsh2triangle --2d src/square.msh |
1904 | - ../../bin/fldecomp -n 2 square |
1905 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l heat heat_flredecomp |
1906 | |
1907 | clean: |
1908 | rm -fr *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu fluidity.* *.s *.d.1 *.stat heat_[0-9]* \ |
1909 | matrixdump matrixdump.info |
1910 | + rm -rf *flredecomp* |
1911 | |
1912 | === modified file 'tests/diffusion_2d_p0_parallel/diffusion_2d_p0_parallel.xml' |
1913 | --- tests/diffusion_2d_p0_parallel/diffusion_2d_p0_parallel.xml 2012-06-28 08:23:27 +0000 |
1914 | +++ tests/diffusion_2d_p0_parallel/diffusion_2d_p0_parallel.xml 2012-11-24 15:51:21 +0000 |
1915 | @@ -5,7 +5,7 @@ |
1916 | <owner userid="cwilson"/> |
1917 | <tags>flml parallel</tags> |
1918 | <problem_definition length="short" nprocs="1"> |
1919 | - <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l heat.flml </command_line> |
1920 | + <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l heat_flredecomp.flml </command_line> |
1921 | <!-- Two dimensional diffusion only problem. --> |
1922 | </problem_definition> |
1923 | <variables> |
1924 | |
1925 | === added directory 'tests/fldecomp' |
1926 | === removed directory 'tests/fldecomp' |
1927 | === added file 'tests/fldecomp/Makefile' |
1928 | --- tests/fldecomp/Makefile 1970-01-01 00:00:00 +0000 |
1929 | +++ tests/fldecomp/Makefile 2012-11-24 15:51:21 +0000 |
1930 | @@ -0,0 +1,11 @@ |
1931 | +default: input |
1932 | + |
1933 | +input: src/cube.tar.bz2 |
1934 | + tar -xvjf src/cube.tar.bz2 |
1935 | + |
1936 | +clean: clean-mesh clean-run |
1937 | +clean-mesh: |
1938 | + rm -f cube.ele cube.face cube.node |
1939 | +clean-run: |
1940 | + rm -f cube_?*.ele cube_?*.face cube_?*.halo cube_?*.node |
1941 | + rm -f fldecomp.log |
1942 | |
1943 | === removed file 'tests/fldecomp/Makefile' |
1944 | --- tests/fldecomp/Makefile 2009-12-16 14:11:47 +0000 |
1945 | +++ tests/fldecomp/Makefile 1970-01-01 00:00:00 +0000 |
1946 | @@ -1,11 +0,0 @@ |
1947 | -default: input |
1948 | - |
1949 | -input: src/cube.tar.bz2 |
1950 | - tar -xvjf src/cube.tar.bz2 |
1951 | - |
1952 | -clean: clean-mesh clean-run |
1953 | -clean-mesh: |
1954 | - rm -f cube.ele cube.face cube.node |
1955 | -clean-run: |
1956 | - rm -f cube_?*.ele cube_?*.face cube_?*.halo cube_?*.node |
1957 | - rm -f fldecomp.log |
1958 | |
1959 | === added file 'tests/fldecomp/fldecomp.xml' |
1960 | --- tests/fldecomp/fldecomp.xml 1970-01-01 00:00:00 +0000 |
1961 | +++ tests/fldecomp/fldecomp.xml 2012-11-24 15:51:21 +0000 |
1962 | @@ -0,0 +1,27 @@ |
1963 | +<?xml version = "1.0" encoding = "UTF-8" ?> |
1964 | +<testproblem> |
1965 | + <name>fldecomp</name> |
1966 | + <owner userid="ggorman"/> |
1967 | + <problem_definition length = "short" nprocs = "1"> |
1968 | + <command_line>rm -f fldecomp.log; make clean-run; fldecomp -n 4 -k -v cube > fldecomp.log</command_line> |
1969 | + </problem_definition> |
1970 | + <variables> |
1971 | + <variable name = "partitions" language = "python"> |
1972 | +import fluidity.diagnostics.triangletools as triangletools |
1973 | +partitions = [] |
1974 | +for i in range(4): |
1975 | + partitions.append(triangletools.ReadTriangle("cube_" + str(i))) |
1976 | + </variable> |
1977 | + </variables> |
1978 | + <pass_tests> |
1979 | + <test name = "Equal sized partitions (owned nodes)" language = "python"> |
1980 | +import fluidity_tools |
1981 | +nodeCounts = [] |
1982 | +for partition in partitions: |
1983 | + nodeCounts.append(partition.GetNOwnedNodes()) |
1984 | +fluidity_tools.compare_variables([float(nodeCount) for nodeCount in nodeCounts[1:]], [float(nodeCounts[0]) for i in range(len(nodeCounts) - 1)], 0.075) |
1985 | + </test> |
1986 | + </pass_tests> |
1987 | + <warn_tests> |
1988 | + </warn_tests> |
1989 | +</testproblem> |
1990 | |
1991 | === removed file 'tests/fldecomp/fldecomp.xml' |
1992 | --- tests/fldecomp/fldecomp.xml 2011-10-21 10:05:25 +0000 |
1993 | +++ tests/fldecomp/fldecomp.xml 1970-01-01 00:00:00 +0000 |
1994 | @@ -1,27 +0,0 @@ |
1995 | -<?xml version = "1.0" encoding = "UTF-8" ?> |
1996 | -<testproblem> |
1997 | - <name>fldecomp</name> |
1998 | - <owner userid="ggorman"/> |
1999 | - <problem_definition length = "short" nprocs = "1"> |
2000 | - <command_line>rm -f fldecomp.log; make clean-run; fldecomp -n 4 -k -v cube > fldecomp.log</command_line> |
2001 | - </problem_definition> |
2002 | - <variables> |
2003 | - <variable name = "partitions" language = "python"> |
2004 | -import fluidity.diagnostics.triangletools as triangletools |
2005 | -partitions = [] |
2006 | -for i in range(4): |
2007 | - partitions.append(triangletools.ReadTriangle("cube_" + str(i))) |
2008 | - </variable> |
2009 | - </variables> |
2010 | - <pass_tests> |
2011 | - <test name = "Equal sized partitions (owned nodes)" language = "python"> |
2012 | -import fluidity_tools |
2013 | -nodeCounts = [] |
2014 | -for partition in partitions: |
2015 | - nodeCounts.append(partition.GetNOwnedNodes()) |
2016 | -fluidity_tools.compare_variables([float(nodeCount) for nodeCount in nodeCounts[1:]], [float(nodeCounts[0]) for i in range(len(nodeCounts) - 1)], 0.075) |
2017 | - </test> |
2018 | - </pass_tests> |
2019 | - <warn_tests> |
2020 | - </warn_tests> |
2021 | -</testproblem> |
2022 | |
2023 | === added directory 'tests/fldecomp/src' |
2024 | === removed directory 'tests/fldecomp/src' |
2025 | === added file 'tests/fldecomp/src/cube.tar.bz2' |
2026 | Binary 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 |
2027 | === removed file 'tests/fldecomp/src/cube.tar.bz2' |
2028 | Binary 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 |
2029 | === added directory 'tests/fldecomp_1d' |
2030 | === removed directory 'tests/fldecomp_1d' |
2031 | === added file 'tests/fldecomp_1d/Makefile' |
2032 | --- tests/fldecomp_1d/Makefile 1970-01-01 00:00:00 +0000 |
2033 | +++ tests/fldecomp_1d/Makefile 2012-11-24 15:51:21 +0000 |
2034 | @@ -0,0 +1,11 @@ |
2035 | +default: input |
2036 | + |
2037 | +input: src/line.tar.bz2 |
2038 | + tar -xvjf src/line.tar.bz2 |
2039 | + |
2040 | +clean: clean-mesh clean-run |
2041 | +clean-mesh: |
2042 | + rm -f line.bound line.ele line.node |
2043 | +clean-run: |
2044 | + rm -f line_?*.bound line_?*.ele line_?*.halo line_?*.node |
2045 | + rm -f *.log *.err *.log-* *.err-* |
2046 | |
2047 | === removed file 'tests/fldecomp_1d/Makefile' |
2048 | --- tests/fldecomp_1d/Makefile 2009-12-16 14:11:47 +0000 |
2049 | +++ tests/fldecomp_1d/Makefile 1970-01-01 00:00:00 +0000 |
2050 | @@ -1,11 +0,0 @@ |
2051 | -default: input |
2052 | - |
2053 | -input: src/line.tar.bz2 |
2054 | - tar -xvjf src/line.tar.bz2 |
2055 | - |
2056 | -clean: clean-mesh clean-run |
2057 | -clean-mesh: |
2058 | - rm -f line.bound line.ele line.node |
2059 | -clean-run: |
2060 | - rm -f line_?*.bound line_?*.ele line_?*.halo line_?*.node |
2061 | - rm -f fldecomp.log |
2062 | |
2063 | === added file 'tests/fldecomp_1d/fldecomp_1d.xml' |
2064 | --- tests/fldecomp_1d/fldecomp_1d.xml 1970-01-01 00:00:00 +0000 |
2065 | +++ tests/fldecomp_1d/fldecomp_1d.xml 2012-11-24 15:51:21 +0000 |
2066 | @@ -0,0 +1,27 @@ |
2067 | +<?xml version = "1.0" encoding = "UTF-8" ?> |
2068 | +<testproblem> |
2069 | + <name>fldecomp</name> |
2070 | + <owner userid="ggorman"/> |
2071 | + <problem_definition length = "short" nprocs = "1"> |
2072 | + <command_line>rm -f fldecomp.log; make clean-run; fldecomp -n 4 -k -v line > fldecomp.log</command_line> |
2073 | + </problem_definition> |
2074 | + <variables> |
2075 | + <variable name = "partitions" language = "python"> |
2076 | +import fluidity.diagnostics.triangletools as triangletools |
2077 | +partitions = [] |
2078 | +for i in range(4): |
2079 | + partitions.append(triangletools.ReadTriangle("line_" + str(i))) |
2080 | + </variable> |
2081 | + </variables> |
2082 | + <pass_tests> |
2083 | + <test name = "Equal sized partitions (owned nodes)" language = "python"> |
2084 | +import fluidity_tools |
2085 | +nodeCounts = [] |
2086 | +for partition in partitions: |
2087 | + nodeCounts.append(partition.GetNOwnedNodes()) |
2088 | +fluidity_tools.compare_variables([float(nodeCount) for nodeCount in nodeCounts[1:]], [float(nodeCounts[0]) for i in range(len(nodeCounts) - 1)], 0.075) |
2089 | + </test> |
2090 | + </pass_tests> |
2091 | + <warn_tests> |
2092 | + </warn_tests> |
2093 | +</testproblem> |
2094 | |
2095 | === removed file 'tests/fldecomp_1d/fldecomp_1d.xml' |
2096 | --- tests/fldecomp_1d/fldecomp_1d.xml 2011-10-21 10:05:25 +0000 |
2097 | +++ tests/fldecomp_1d/fldecomp_1d.xml 1970-01-01 00:00:00 +0000 |
2098 | @@ -1,27 +0,0 @@ |
2099 | -<?xml version = "1.0" encoding = "UTF-8" ?> |
2100 | -<testproblem> |
2101 | - <name>fldecomp</name> |
2102 | - <owner userid="ggorman"/> |
2103 | - <problem_definition length = "short" nprocs = "1"> |
2104 | - <command_line>rm -f fldecomp.log; make clean-run; fldecomp -n 4 -k -v line > fldecomp.log</command_line> |
2105 | - </problem_definition> |
2106 | - <variables> |
2107 | - <variable name = "partitions" language = "python"> |
2108 | -import fluidity.diagnostics.triangletools as triangletools |
2109 | -partitions = [] |
2110 | -for i in range(4): |
2111 | - partitions.append(triangletools.ReadTriangle("line_" + str(i))) |
2112 | - </variable> |
2113 | - </variables> |
2114 | - <pass_tests> |
2115 | - <test name = "Equal sized partitions (owned nodes)" language = "python"> |
2116 | -import fluidity_tools |
2117 | -nodeCounts = [] |
2118 | -for partition in partitions: |
2119 | - nodeCounts.append(partition.GetNOwnedNodes()) |
2120 | -fluidity_tools.compare_variables([float(nodeCount) for nodeCount in nodeCounts[1:]], [float(nodeCounts[0]) for i in range(len(nodeCounts) - 1)], 0.075) |
2121 | - </test> |
2122 | - </pass_tests> |
2123 | - <warn_tests> |
2124 | - </warn_tests> |
2125 | -</testproblem> |
2126 | |
2127 | === added directory 'tests/fldecomp_1d/src' |
2128 | === removed directory 'tests/fldecomp_1d/src' |
2129 | === added file 'tests/fldecomp_1d/src/line.tar.bz2' |
2130 | Binary 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 |
2131 | === removed file 'tests/fldecomp_1d/src/line.tar.bz2' |
2132 | Binary 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 |
2133 | === added directory 'tests/fldecomp_2d' |
2134 | === removed directory 'tests/fldecomp_2d' |
2135 | === added file 'tests/fldecomp_2d/Makefile' |
2136 | --- tests/fldecomp_2d/Makefile 1970-01-01 00:00:00 +0000 |
2137 | +++ tests/fldecomp_2d/Makefile 2012-11-24 15:51:21 +0000 |
2138 | @@ -0,0 +1,11 @@ |
2139 | +default: input |
2140 | + |
2141 | +input: src/square.tar.bz2 |
2142 | + tar -xvjf src/square.tar.bz2 |
2143 | + |
2144 | +clean: clean-mesh clean-run |
2145 | +clean-mesh: |
2146 | + rm -f square.edge square.ele square.node |
2147 | +clean-run: |
2148 | + rm -f square_?*.edge square_?*.ele square_?*.halo square_?*.node |
2149 | + rm -f fldecomp.log |
2150 | |
2151 | === removed file 'tests/fldecomp_2d/Makefile' |
2152 | --- tests/fldecomp_2d/Makefile 2009-12-16 14:11:47 +0000 |
2153 | +++ tests/fldecomp_2d/Makefile 1970-01-01 00:00:00 +0000 |
2154 | @@ -1,11 +0,0 @@ |
2155 | -default: input |
2156 | - |
2157 | -input: src/square.tar.bz2 |
2158 | - tar -xvjf src/square.tar.bz2 |
2159 | - |
2160 | -clean: clean-mesh clean-run |
2161 | -clean-mesh: |
2162 | - rm -f square.edge square.ele square.node |
2163 | -clean-run: |
2164 | - rm -f square_?*.edge square_?*.ele square_?*.halo square_?*.node |
2165 | - rm -f fldecomp.log |
2166 | |
2167 | === added file 'tests/fldecomp_2d/fldecomp_2d.xml' |
2168 | --- tests/fldecomp_2d/fldecomp_2d.xml 1970-01-01 00:00:00 +0000 |
2169 | +++ tests/fldecomp_2d/fldecomp_2d.xml 2012-11-24 15:51:21 +0000 |
2170 | @@ -0,0 +1,24 @@ |
2171 | +<?xml version='1.0' encoding='utf-8'?> |
2172 | +<testproblem> |
2173 | + <name>fldecomp</name> |
2174 | + <owner userid="ggorman"/> |
2175 | + <problem_definition length="short" nprocs="1"> |
2176 | + <command_line>rm -f fldecomp.log; make clean-run; fldecomp -n 4 -k -v square > fldecomp.log</command_line> |
2177 | + </problem_definition> |
2178 | + <variables> |
2179 | + <variable name="partitions" language="python">import fluidity.diagnostics.triangletools as triangletools |
2180 | +partitions = [] |
2181 | +for i in range(4): |
2182 | + partitions.append(triangletools.ReadTriangle("square_" + str(i)))</variable> |
2183 | + </variables> |
2184 | + <pass_tests> |
2185 | + <test name = "Equal sized partitions (owned nodes)" language = "python"> |
2186 | +import fluidity_tools |
2187 | +nodeCounts = [] |
2188 | +for partition in partitions: |
2189 | + nodeCounts.append(partition.GetNOwnedNodes()) |
2190 | +fluidity_tools.compare_variables([float(nodeCount) for nodeCount in nodeCounts[1:]], [float(nodeCounts[0]) for i in range(len(nodeCounts) - 1)], 0.075) |
2191 | + </test> |
2192 | + </pass_tests> |
2193 | + <warn_tests/> |
2194 | +</testproblem> |
2195 | |
2196 | === removed file 'tests/fldecomp_2d/fldecomp_2d.xml' |
2197 | --- tests/fldecomp_2d/fldecomp_2d.xml 2010-10-28 10:21:28 +0000 |
2198 | +++ tests/fldecomp_2d/fldecomp_2d.xml 1970-01-01 00:00:00 +0000 |
2199 | @@ -1,24 +0,0 @@ |
2200 | -<?xml version='1.0' encoding='utf-8'?> |
2201 | -<testproblem> |
2202 | - <name>fldecomp</name> |
2203 | - <owner userid="ggorman"/> |
2204 | - <problem_definition length="short" nprocs="1"> |
2205 | - <command_line>rm -f fldecomp.log; make clean-run; fldecomp -n 4 -k -v square > fldecomp.log</command_line> |
2206 | - </problem_definition> |
2207 | - <variables> |
2208 | - <variable name="partitions" language="python">import fluidity.diagnostics.triangletools as triangletools |
2209 | -partitions = [] |
2210 | -for i in range(4): |
2211 | - partitions.append(triangletools.ReadTriangle("square_" + str(i)))</variable> |
2212 | - </variables> |
2213 | - <pass_tests> |
2214 | - <test name = "Equal sized partitions (owned nodes)" language = "python"> |
2215 | -import fluidity_tools |
2216 | -nodeCounts = [] |
2217 | -for partition in partitions: |
2218 | - nodeCounts.append(partition.GetNOwnedNodes()) |
2219 | -fluidity_tools.compare_variables([float(nodeCount) for nodeCount in nodeCounts[1:]], [float(nodeCounts[0]) for i in range(len(nodeCounts) - 1)], 0.075) |
2220 | - </test> |
2221 | - </pass_tests> |
2222 | - <warn_tests/> |
2223 | -</testproblem> |
2224 | |
2225 | === added directory 'tests/fldecomp_2d/src' |
2226 | === removed directory 'tests/fldecomp_2d/src' |
2227 | === added file 'tests/fldecomp_2d/src/square.tar.bz2' |
2228 | Binary 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 |
2229 | === removed file 'tests/fldecomp_2d/src/square.tar.bz2' |
2230 | Binary 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 |
2231 | === added directory 'tests/flredecomp' |
2232 | === added file 'tests/flredecomp/Makefile' |
2233 | --- tests/flredecomp/Makefile 1970-01-01 00:00:00 +0000 |
2234 | +++ tests/flredecomp/Makefile 2012-11-24 15:51:21 +0000 |
2235 | @@ -0,0 +1,12 @@ |
2236 | +default: input |
2237 | + |
2238 | +input: src/cube.tar.bz2 |
2239 | + tar -xvjf src/cube.tar.bz2 |
2240 | + |
2241 | +clean: clean-mesh clean-run |
2242 | +clean-mesh: |
2243 | + rm -f cube.ele cube.face cube.node |
2244 | +clean-run: |
2245 | + rm -f cube_?*.ele cube_?*.face cube_?*.halo cube_?*.node |
2246 | + rm -f *.log* *.err* test_flredecomp.flml |
2247 | + rm -f test_flredecomp_CoordinateMesh_* |
2248 | |
2249 | === added file 'tests/flredecomp/flredecomp.xml' |
2250 | --- tests/flredecomp/flredecomp.xml 1970-01-01 00:00:00 +0000 |
2251 | +++ tests/flredecomp/flredecomp.xml 2012-11-24 15:51:21 +0000 |
2252 | @@ -0,0 +1,27 @@ |
2253 | +<?xml version = "1.0" encoding = "UTF-8" ?> |
2254 | +<testproblem> |
2255 | + <name>flredecomp</name> |
2256 | + <owner userid="ggorman"/> |
2257 | + <problem_definition length = "short" nprocs = "1"> |
2258 | + <command_line>make clean-run; mpiexec -n 4 ../../bin/flredecomp -i 1 -o 4 -v -l test test_flredecomp</command_line> |
2259 | + </problem_definition> |
2260 | + <variables> |
2261 | + <variable name = "partitions" language = "python"> |
2262 | +import fluidity.diagnostics.triangletools as triangletools |
2263 | +partitions = [] |
2264 | +for i in range(4): |
2265 | + partitions.append(triangletools.ReadTriangle("test_flredecomp_CoordinateMesh_" + str(i))) |
2266 | + </variable> |
2267 | + </variables> |
2268 | + <pass_tests> |
2269 | + <test name = "Equal sized partitions (owned nodes)" language = "python"> |
2270 | +import fluidity_tools |
2271 | +nodeCounts = [] |
2272 | +for partition in partitions: |
2273 | + nodeCounts.append(partition.GetNOwnedNodes()) |
2274 | +fluidity_tools.compare_variables([float(nodeCount) for nodeCount in nodeCounts[1:]], [float(nodeCounts[0]) for i in range(len(nodeCounts) - 1)], 0.075) |
2275 | + </test> |
2276 | + </pass_tests> |
2277 | + <warn_tests> |
2278 | + </warn_tests> |
2279 | +</testproblem> |
2280 | |
2281 | === added directory 'tests/flredecomp/src' |
2282 | === added file 'tests/flredecomp/src/cube.tar.bz2' |
2283 | Binary 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 |
2284 | === added file 'tests/flredecomp/test.flml' |
2285 | --- tests/flredecomp/test.flml 1970-01-01 00:00:00 +0000 |
2286 | +++ tests/flredecomp/test.flml 2012-11-24 15:51:21 +0000 |
2287 | @@ -0,0 +1,69 @@ |
2288 | +<?xml version='1.0' encoding='utf-8'?> |
2289 | +<fluidity_options> |
2290 | + <simulation_name> |
2291 | + <string_value lines="1">test</string_value> |
2292 | + </simulation_name> |
2293 | + <problem_type> |
2294 | + <string_value lines="1">fluids</string_value> |
2295 | + </problem_type> |
2296 | + <geometry> |
2297 | + <dimension> |
2298 | + <integer_value rank="0">3</integer_value> |
2299 | + </dimension> |
2300 | + <mesh name="CoordinateMesh"> |
2301 | + <from_file file_name="cube"> |
2302 | + <format name="triangle"/> |
2303 | + <stat> |
2304 | + <include_in_stat/> |
2305 | + </stat> |
2306 | + </from_file> |
2307 | + </mesh> |
2308 | + <quadrature> |
2309 | + <degree> |
2310 | + <integer_value rank="0">1</integer_value> |
2311 | + </degree> |
2312 | + </quadrature> |
2313 | + </geometry> |
2314 | + <io> |
2315 | + <dump_format> |
2316 | + <string_value>vtk</string_value> |
2317 | + </dump_format> |
2318 | + <dump_period> |
2319 | + <constant> |
2320 | + <real_value rank="0">0</real_value> |
2321 | + </constant> |
2322 | + </dump_period> |
2323 | + <output_mesh name="CoordinateMesh"/> |
2324 | + <stat/> |
2325 | + </io> |
2326 | + <timestepping> |
2327 | + <current_time> |
2328 | + <real_value rank="0">0</real_value> |
2329 | + </current_time> |
2330 | + <timestep> |
2331 | + <real_value rank="0">1</real_value> |
2332 | + </timestep> |
2333 | + <finish_time> |
2334 | + <real_value rank="0">0</real_value> |
2335 | + </finish_time> |
2336 | + </timestepping> |
2337 | + <material_phase name="air"> |
2338 | + <vector_field name="Velocity" rank="1"> |
2339 | + <prescribed> |
2340 | + <mesh name="CoordinateMesh"/> |
2341 | + <value name="WholeMesh"> |
2342 | + <constant> |
2343 | + <real_value shape="3" dim1="dim" rank="1">0 0 0</real_value> |
2344 | + </constant> |
2345 | + </value> |
2346 | + <output/> |
2347 | + <stat> |
2348 | + <include_in_stat/> |
2349 | + </stat> |
2350 | + <detectors> |
2351 | + <exclude_from_detectors/> |
2352 | + </detectors> |
2353 | + </prescribed> |
2354 | + </vector_field> |
2355 | + </material_phase> |
2356 | +</fluidity_options> |
2357 | |
2358 | === added directory 'tests/flredecomp_1d' |
2359 | === added file 'tests/flredecomp_1d/Makefile' |
2360 | --- tests/flredecomp_1d/Makefile 1970-01-01 00:00:00 +0000 |
2361 | +++ tests/flredecomp_1d/Makefile 2012-11-24 15:51:21 +0000 |
2362 | @@ -0,0 +1,12 @@ |
2363 | +default: input |
2364 | + |
2365 | +input: src/line.tar.bz2 |
2366 | + tar -xvjf src/line.tar.bz2 |
2367 | + |
2368 | +clean: clean-mesh clean-run |
2369 | +clean-mesh: |
2370 | + rm -f line.bound line.ele line.node |
2371 | +clean-run: |
2372 | + rm -f line_?*.bound line_?*.ele line_?*.halo line_?*.node |
2373 | + rm -f *.log* *.err* test_flredecomp.flml |
2374 | + rm -f test_flredecomp_CoordinateMesh_* |
2375 | |
2376 | === added file 'tests/flredecomp_1d/flredecomp_1d.xml' |
2377 | --- tests/flredecomp_1d/flredecomp_1d.xml 1970-01-01 00:00:00 +0000 |
2378 | +++ tests/flredecomp_1d/flredecomp_1d.xml 2012-11-24 15:51:21 +0000 |
2379 | @@ -0,0 +1,27 @@ |
2380 | +<?xml version = "1.0" encoding = "UTF-8" ?> |
2381 | +<testproblem> |
2382 | + <name>flredecomp</name> |
2383 | + <owner userid="ggorman"/> |
2384 | + <problem_definition length = "short" nprocs = "1"> |
2385 | + <command_line>make clean-run; mpiexec -n 4 ../../bin/flredecomp -i 1 -o 4 -v -l test test_flredecomp</command_line> |
2386 | + </problem_definition> |
2387 | + <variables> |
2388 | + <variable name = "partitions" language = "python"> |
2389 | +import fluidity.diagnostics.triangletools as triangletools |
2390 | +partitions = [] |
2391 | +for i in range(4): |
2392 | + partitions.append(triangletools.ReadTriangle("test_flredecomp_CoordinateMesh_" + str(i))) |
2393 | + </variable> |
2394 | + </variables> |
2395 | + <pass_tests> |
2396 | + <test name = "Equal sized partitions (owned nodes)" language = "python"> |
2397 | +import fluidity_tools |
2398 | +nodeCounts = [] |
2399 | +for partition in partitions: |
2400 | + nodeCounts.append(partition.GetNOwnedNodes()) |
2401 | +fluidity_tools.compare_variables([float(nodeCount) for nodeCount in nodeCounts[1:]], [float(nodeCounts[0]) for i in range(len(nodeCounts) - 1)], 0.075) |
2402 | + </test> |
2403 | + </pass_tests> |
2404 | + <warn_tests> |
2405 | + </warn_tests> |
2406 | +</testproblem> |
2407 | |
2408 | === added directory 'tests/flredecomp_1d/src' |
2409 | === added file 'tests/flredecomp_1d/src/line.tar.bz2' |
2410 | Binary 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 |
2411 | === added file 'tests/flredecomp_1d/test.flml' |
2412 | --- tests/flredecomp_1d/test.flml 1970-01-01 00:00:00 +0000 |
2413 | +++ tests/flredecomp_1d/test.flml 2012-11-24 15:51:21 +0000 |
2414 | @@ -0,0 +1,69 @@ |
2415 | +<?xml version='1.0' encoding='utf-8'?> |
2416 | +<fluidity_options> |
2417 | + <simulation_name> |
2418 | + <string_value lines="1">test</string_value> |
2419 | + </simulation_name> |
2420 | + <problem_type> |
2421 | + <string_value lines="1">fluids</string_value> |
2422 | + </problem_type> |
2423 | + <geometry> |
2424 | + <dimension> |
2425 | + <integer_value rank="0">1</integer_value> |
2426 | + </dimension> |
2427 | + <mesh name="CoordinateMesh"> |
2428 | + <from_file file_name="line"> |
2429 | + <format name="triangle"/> |
2430 | + <stat> |
2431 | + <include_in_stat/> |
2432 | + </stat> |
2433 | + </from_file> |
2434 | + </mesh> |
2435 | + <quadrature> |
2436 | + <degree> |
2437 | + <integer_value rank="0">1</integer_value> |
2438 | + </degree> |
2439 | + </quadrature> |
2440 | + </geometry> |
2441 | + <io> |
2442 | + <dump_format> |
2443 | + <string_value>vtk</string_value> |
2444 | + </dump_format> |
2445 | + <dump_period> |
2446 | + <constant> |
2447 | + <real_value rank="0">0</real_value> |
2448 | + </constant> |
2449 | + </dump_period> |
2450 | + <output_mesh name="CoordinateMesh"/> |
2451 | + <stat/> |
2452 | + </io> |
2453 | + <timestepping> |
2454 | + <current_time> |
2455 | + <real_value rank="0">0</real_value> |
2456 | + </current_time> |
2457 | + <timestep> |
2458 | + <real_value rank="0">1</real_value> |
2459 | + </timestep> |
2460 | + <finish_time> |
2461 | + <real_value rank="0">0</real_value> |
2462 | + </finish_time> |
2463 | + </timestepping> |
2464 | + <material_phase name="air"> |
2465 | + <vector_field name="Velocity" rank="1"> |
2466 | + <prescribed> |
2467 | + <mesh name="CoordinateMesh"/> |
2468 | + <value name="WholeMesh"> |
2469 | + <constant> |
2470 | + <real_value shape="1" dim1="dim" rank="1">0</real_value> |
2471 | + </constant> |
2472 | + </value> |
2473 | + <output/> |
2474 | + <stat> |
2475 | + <include_in_stat/> |
2476 | + </stat> |
2477 | + <detectors> |
2478 | + <exclude_from_detectors/> |
2479 | + </detectors> |
2480 | + </prescribed> |
2481 | + </vector_field> |
2482 | + </material_phase> |
2483 | +</fluidity_options> |
2484 | |
2485 | === added directory 'tests/flredecomp_2d' |
2486 | === added file 'tests/flredecomp_2d/Makefile' |
2487 | --- tests/flredecomp_2d/Makefile 1970-01-01 00:00:00 +0000 |
2488 | +++ tests/flredecomp_2d/Makefile 2012-11-24 15:51:21 +0000 |
2489 | @@ -0,0 +1,12 @@ |
2490 | +default: input |
2491 | + |
2492 | +input: src/square.tar.bz2 |
2493 | + tar -xvjf src/square.tar.bz2 |
2494 | + |
2495 | +clean: clean-mesh clean-run |
2496 | +clean-mesh: |
2497 | + rm -f square.edge square.ele square.node |
2498 | +clean-run: |
2499 | + rm -f square_?*.edge square_?*.ele square_?*.halo square_?*.node |
2500 | + rm -f *.log* *.err* test_flredecomp.flml |
2501 | + rm -f test_flredecomp_CoordinateMesh_* |
2502 | |
2503 | === added file 'tests/flredecomp_2d/flredecomp_2d.xml' |
2504 | --- tests/flredecomp_2d/flredecomp_2d.xml 1970-01-01 00:00:00 +0000 |
2505 | +++ tests/flredecomp_2d/flredecomp_2d.xml 2012-11-24 15:51:21 +0000 |
2506 | @@ -0,0 +1,27 @@ |
2507 | +<?xml version = "1.0" encoding = "UTF-8" ?> |
2508 | +<testproblem> |
2509 | + <name>flredecomp</name> |
2510 | + <owner userid="ggorman"/> |
2511 | + <problem_definition length = "short" nprocs = "1"> |
2512 | + <command_line>make clean-run; mpiexec -n 4 ../../bin/flredecomp -i 1 -o 4 -v -l test test_flredecomp</command_line> |
2513 | + </problem_definition> |
2514 | + <variables> |
2515 | + <variable name = "partitions" language = "python"> |
2516 | +import fluidity.diagnostics.triangletools as triangletools |
2517 | +partitions = [] |
2518 | +for i in range(4): |
2519 | + partitions.append(triangletools.ReadTriangle("test_flredecomp_CoordinateMesh_" + str(i))) |
2520 | + </variable> |
2521 | + </variables> |
2522 | + <pass_tests> |
2523 | + <test name = "Equal sized partitions (owned nodes)" language = "python"> |
2524 | +import fluidity_tools |
2525 | +nodeCounts = [] |
2526 | +for partition in partitions: |
2527 | + nodeCounts.append(partition.GetNOwnedNodes()) |
2528 | +fluidity_tools.compare_variables([float(nodeCount) for nodeCount in nodeCounts[1:]], [float(nodeCounts[0]) for i in range(len(nodeCounts) - 1)], 0.075) |
2529 | + </test> |
2530 | + </pass_tests> |
2531 | + <warn_tests> |
2532 | + </warn_tests> |
2533 | +</testproblem> |
2534 | |
2535 | === added directory 'tests/flredecomp_2d/src' |
2536 | === added file 'tests/flredecomp_2d/src/square.tar.bz2' |
2537 | Binary 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 |
2538 | === added file 'tests/flredecomp_2d/test.flml' |
2539 | --- tests/flredecomp_2d/test.flml 1970-01-01 00:00:00 +0000 |
2540 | +++ tests/flredecomp_2d/test.flml 2012-11-24 15:51:21 +0000 |
2541 | @@ -0,0 +1,69 @@ |
2542 | +<?xml version='1.0' encoding='utf-8'?> |
2543 | +<fluidity_options> |
2544 | + <simulation_name> |
2545 | + <string_value lines="1">test</string_value> |
2546 | + </simulation_name> |
2547 | + <problem_type> |
2548 | + <string_value lines="1">fluids</string_value> |
2549 | + </problem_type> |
2550 | + <geometry> |
2551 | + <dimension> |
2552 | + <integer_value rank="0">2</integer_value> |
2553 | + </dimension> |
2554 | + <mesh name="CoordinateMesh"> |
2555 | + <from_file file_name="square"> |
2556 | + <format name="triangle"/> |
2557 | + <stat> |
2558 | + <include_in_stat/> |
2559 | + </stat> |
2560 | + </from_file> |
2561 | + </mesh> |
2562 | + <quadrature> |
2563 | + <degree> |
2564 | + <integer_value rank="0">1</integer_value> |
2565 | + </degree> |
2566 | + </quadrature> |
2567 | + </geometry> |
2568 | + <io> |
2569 | + <dump_format> |
2570 | + <string_value>vtk</string_value> |
2571 | + </dump_format> |
2572 | + <dump_period> |
2573 | + <constant> |
2574 | + <real_value rank="0">0</real_value> |
2575 | + </constant> |
2576 | + </dump_period> |
2577 | + <output_mesh name="CoordinateMesh"/> |
2578 | + <stat/> |
2579 | + </io> |
2580 | + <timestepping> |
2581 | + <current_time> |
2582 | + <real_value rank="0">0</real_value> |
2583 | + </current_time> |
2584 | + <timestep> |
2585 | + <real_value rank="0">1</real_value> |
2586 | + </timestep> |
2587 | + <finish_time> |
2588 | + <real_value rank="0">0</real_value> |
2589 | + </finish_time> |
2590 | + </timestepping> |
2591 | + <material_phase name="air"> |
2592 | + <vector_field name="Velocity" rank="1"> |
2593 | + <prescribed> |
2594 | + <mesh name="CoordinateMesh"/> |
2595 | + <value name="WholeMesh"> |
2596 | + <constant> |
2597 | + <real_value shape="2" dim1="dim" rank="1">0 0</real_value> |
2598 | + </constant> |
2599 | + </value> |
2600 | + <output/> |
2601 | + <stat> |
2602 | + <include_in_stat/> |
2603 | + </stat> |
2604 | + <detectors> |
2605 | + <exclude_from_detectors/> |
2606 | + </detectors> |
2607 | + </prescribed> |
2608 | + </vector_field> |
2609 | + </material_phase> |
2610 | +</fluidity_options> |
2611 | |
2612 | === modified file 'tests/geopressure_convergence/Makefile' |
2613 | --- tests/geopressure_convergence/Makefile 2011-12-17 18:17:49 +0000 |
2614 | +++ tests/geopressure_convergence/Makefile 2012-11-24 15:51:21 +0000 |
2615 | @@ -7,10 +7,6 @@ |
2616 | |
2617 | input: |
2618 | tar -xvjf src/meshes.tar.bz2 |
2619 | - ../../bin/fldecomp -n 2 square-8 |
2620 | - ../../bin/fldecomp -n 2 square-16 |
2621 | - ../../bin/fldecomp -n 2 square-32 |
2622 | - ../../bin/fldecomp -n 2 square-64 |
2623 | cp $(FLMLMODEL1).flml $(FLMLMODEL2).flml |
2624 | sed -i "s/"$(FLMLMODEL1)"/"$(FLMLMODEL2)"/g" $(FLMLMODEL2).flml |
2625 | sed -i "s/square-8/square-16/g" $(FLMLMODEL2).flml |
2626 | @@ -19,12 +15,18 @@ |
2627 | sed -i "s/square-8/square-32/g" $(FLMLMODEL3).flml |
2628 | cp $(FLMLMODEL1).flml $(FLMLMODEL4).flml |
2629 | sed -i "s/"$(FLMLMODEL1)"/"$(FLMLMODEL4)"/g" $(FLMLMODEL4).flml |
2630 | - sed -i "s/square-8/square-64/g" $(FLMLMODEL4).flml |
2631 | + sed -i "s/square-8/square-64/g" $(FLMLMODEL4).flml |
2632 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l $(FLMLMODEL1) $(FLMLMODEL1)_flredecomp |
2633 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l $(FLMLMODEL2) $(FLMLMODEL2)_flredecomp |
2634 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l $(FLMLMODEL3) $(FLMLMODEL3)_flredecomp |
2635 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l $(FLMLMODEL4) $(FLMLMODEL4)_flredecomp |
2636 | + |
2637 | |
2638 | clean: clean-mesh clean-run-debug |
2639 | rm -f $(FLMLMODEL2).flml |
2640 | rm -f $(FLMLMODEL3).flml |
2641 | rm -f $(FLMLMODEL4).flml |
2642 | + rm -rf *flredecomp* |
2643 | clean-mesh: |
2644 | rm -f square-?*.edge square-?*.ele square-?*.node |
2645 | rm -f square-?*_?*.edge square-?*_*.ele square-?*_?*.node square-?*_?*.halo |
2646 | |
2647 | === modified file 'tests/geopressure_convergence/geopressure_convergence.xml' |
2648 | --- tests/geopressure_convergence/geopressure_convergence.xml 2011-10-21 10:05:25 +0000 |
2649 | +++ tests/geopressure_convergence/geopressure_convergence.xml 2012-11-24 15:51:21 +0000 |
2650 | @@ -5,10 +5,10 @@ |
2651 | <tags>flml parallel</tags> |
2652 | <problem_definition length = "medium" nprocs = "1"> |
2653 | <command_line>make clean-run; rm -f 8.log 16.log 32.log 64.log; |
2654 | -mpiexec -n 2 ../../bin/fluidity -v2 geopressure_8.flml > 8.log; |
2655 | -mpiexec -n 2 ../../bin/fluidity -v2 geopressure_16.flml > 16.log; |
2656 | -mpiexec -n 2 ../../bin/fluidity -v2 geopressure_32.flml > 32.log; |
2657 | -mpiexec -n 2 ../../bin/fluidity -v2 geopressure_64.flml > 64.log; |
2658 | +mpiexec -n 2 ../../bin/fluidity -v2 geopressure_8_flredecomp.flml > 8.log; |
2659 | +mpiexec -n 2 ../../bin/fluidity -v2 geopressure_16_flredecomp.flml > 16.log; |
2660 | +mpiexec -n 2 ../../bin/fluidity -v2 geopressure_32_flredecomp.flml > 32.log; |
2661 | +mpiexec -n 2 ../../bin/fluidity -v2 geopressure_64_flredecomp.flml > 64.log; |
2662 | </command_line> |
2663 | </problem_definition> |
2664 | <variables> |
2665 | |
2666 | === modified file 'tests/geopressure_convergence_p1/Makefile' |
2667 | --- tests/geopressure_convergence_p1/Makefile 2011-10-27 22:51:21 +0000 |
2668 | +++ tests/geopressure_convergence_p1/Makefile 2012-11-24 15:51:21 +0000 |
2669 | @@ -7,10 +7,6 @@ |
2670 | |
2671 | input: |
2672 | tar -xvjf src/meshes.tar.bz2 |
2673 | - fldecomp -n 2 square-8 |
2674 | - fldecomp -n 2 square-16 |
2675 | - fldecomp -n 2 square-32 |
2676 | - fldecomp -n 2 square-64 |
2677 | cp $(FLMLMODEL1).flml $(FLMLMODEL2).flml |
2678 | sed -i "s/"$(FLMLMODEL1)"/"$(FLMLMODEL2)"/g" $(FLMLMODEL2).flml |
2679 | sed -i "s/square-8/square-16/g" $(FLMLMODEL2).flml |
2680 | @@ -19,12 +15,18 @@ |
2681 | sed -i "s/square-8/square-32/g" $(FLMLMODEL3).flml |
2682 | cp $(FLMLMODEL1).flml $(FLMLMODEL4).flml |
2683 | sed -i "s/"$(FLMLMODEL1)"/"$(FLMLMODEL4)"/g" $(FLMLMODEL4).flml |
2684 | - sed -i "s/square-8/square-64/g" $(FLMLMODEL4).flml |
2685 | + sed -i "s/square-8/square-64/g" $(FLMLMODEL4).flml |
2686 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l $(FLMLMODEL1) $(FLMLMODEL1)_flredecomp |
2687 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l $(FLMLMODEL2) $(FLMLMODEL2)_flredecomp |
2688 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l $(FLMLMODEL3) $(FLMLMODEL3)_flredecomp |
2689 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l $(FLMLMODEL4) $(FLMLMODEL4)_flredecomp |
2690 | + |
2691 | |
2692 | clean: clean-mesh clean-run-debug |
2693 | rm -f $(FLMLMODEL2).flml |
2694 | rm -f $(FLMLMODEL3).flml |
2695 | rm -f $(FLMLMODEL4).flml |
2696 | + rm -rf *flredecomp* |
2697 | clean-mesh: |
2698 | rm -f square-?*.edge square-?*.ele square-?*.node |
2699 | rm -f square-?*_?*.edge square-?*_*.ele square-?*_?*.node square-?*_?*.halo |
2700 | @@ -39,9 +41,9 @@ |
2701 | rm -f $(FLMLMODEL4).detectors $(FLMLMODEL4).stat tmpf* |
2702 | rm -f fluidity.err-?* fluidity.log-?* |
2703 | rm -f matrixdump matrixdump.info |
2704 | + rm -f *.log |
2705 | rm -rf $(FLMLMODEL1)_? |
2706 | rm -rf $(FLMLMODEL2)_? |
2707 | rm -rf $(FLMLMODEL3)_? |
2708 | rm -rf $(FLMLMODEL4)_? |
2709 | - rm -f *.log |
2710 | clean-run-debug: clean-run |
2711 | |
2712 | === modified file 'tests/geopressure_convergence_p1/geopressure_convergence_p1.xml' |
2713 | --- tests/geopressure_convergence_p1/geopressure_convergence_p1.xml 2011-10-21 10:05:25 +0000 |
2714 | +++ tests/geopressure_convergence_p1/geopressure_convergence_p1.xml 2012-11-24 15:51:21 +0000 |
2715 | @@ -5,10 +5,10 @@ |
2716 | <tags>flml parallel</tags> |
2717 | <problem_definition length = "medium" nprocs = "1"> |
2718 | <command_line>make clean-run; rm -f 8.log 16.log 32.log 64.log; |
2719 | -mpiexec -n 2 ../../bin/fluidity -v2 geopressure_8.flml > 8.log; |
2720 | -mpiexec -n 2 ../../bin/fluidity -v2 geopressure_16.flml > 16.log; |
2721 | -mpiexec -n 2 ../../bin/fluidity -v2 geopressure_32.flml > 32.log; |
2722 | -mpiexec -n 2 ../../bin/fluidity -v2 geopressure_64.flml > 64.log; |
2723 | +mpiexec -n 2 ../../bin/fluidity -v2 geopressure_8_flredecomp.flml > 8.log; |
2724 | +mpiexec -n 2 ../../bin/fluidity -v2 geopressure_16_flredecomp.flml > 16.log; |
2725 | +mpiexec -n 2 ../../bin/fluidity -v2 geopressure_32_flredecomp.flml > 32.log; |
2726 | +mpiexec -n 2 ../../bin/fluidity -v2 geopressure_64_flredecomp.flml > 64.log; |
2727 | </command_line> |
2728 | </problem_definition> |
2729 | <variables> |
2730 | |
2731 | === modified file 'tests/heat_2d_dg/Makefile' |
2732 | --- tests/heat_2d_dg/Makefile 2012-06-28 08:23:27 +0000 |
2733 | +++ tests/heat_2d_dg/Makefile 2012-11-24 15:51:21 +0000 |
2734 | @@ -1,7 +1,8 @@ |
2735 | input: clean |
2736 | ../../bin/gmsh2triangle --2d src/square.msh |
2737 | - ../../bin/fldecomp -n 2 square |
2738 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l heat heat_flredecomp |
2739 | |
2740 | clean: |
2741 | rm -fr *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu fluidity.* *.s *.d.1 *.stat heat_[01] \ |
2742 | matrixdump matrixdump.info |
2743 | + rm -rf *flredecomp* |
2744 | |
2745 | === modified file 'tests/heat_2d_dg/heat_2d_dg.xml' |
2746 | --- tests/heat_2d_dg/heat_2d_dg.xml 2012-06-28 08:23:27 +0000 |
2747 | +++ tests/heat_2d_dg/heat_2d_dg.xml 2012-11-24 15:51:21 +0000 |
2748 | @@ -5,7 +5,7 @@ |
2749 | <owner userid="dham"/> |
2750 | <tags>flml parallel</tags> |
2751 | <problem_definition length="short" nprocs="1"> |
2752 | - <command_line>mpiexec -np 2 ../../bin/fluidity -l heat.flml </command_line> |
2753 | + <command_line>mpiexec -np 2 ../../bin/fluidity -l heat_flredecomp.flml </command_line> |
2754 | <!-- Two dimensional diffusion only problem. --> |
2755 | </problem_definition> |
2756 | <variables> |
2757 | |
2758 | === modified file 'tests/heat_2d_dg_ip/Makefile' |
2759 | --- tests/heat_2d_dg_ip/Makefile 2012-06-28 08:23:27 +0000 |
2760 | +++ tests/heat_2d_dg_ip/Makefile 2012-11-24 15:51:21 +0000 |
2761 | @@ -1,7 +1,8 @@ |
2762 | input: clean |
2763 | ../../bin/gmsh2triangle --2d src/square.msh |
2764 | - ../../bin/fldecomp -n 2 square |
2765 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l heat heat_flredecomp |
2766 | |
2767 | clean: |
2768 | rm -fr *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu fluidity.* *.s *.d.1 *.stat heat_[01] \ |
2769 | matrixdump matrixdump.info |
2770 | + rm -rf *flredecomp* |
2771 | |
2772 | === modified file 'tests/heat_2d_dg_ip/heat_2d_dg_ip.xml' |
2773 | --- tests/heat_2d_dg_ip/heat_2d_dg_ip.xml 2012-06-28 08:23:27 +0000 |
2774 | +++ tests/heat_2d_dg_ip/heat_2d_dg_ip.xml 2012-11-24 15:51:21 +0000 |
2775 | @@ -5,7 +5,7 @@ |
2776 | <owner userid="dham"/> |
2777 | <tags>flml parallel</tags> |
2778 | <problem_definition length="short" nprocs="1"> |
2779 | - <command_line>mpiexec -np 2 ../../bin/fluidity -l heat.flml </command_line> |
2780 | + <command_line>mpiexec -np 2 ../../bin/fluidity -l heat_flredecomp.flml </command_line> |
2781 | <!-- Two dimensional diffusion only problem. --> |
2782 | </problem_definition> |
2783 | <variables> |
2784 | |
2785 | === modified file 'tests/heat_2d_dg_local_assembly/Makefile' |
2786 | --- tests/heat_2d_dg_local_assembly/Makefile 2012-09-19 10:31:15 +0000 |
2787 | +++ tests/heat_2d_dg_local_assembly/Makefile 2012-11-24 15:51:21 +0000 |
2788 | @@ -1,8 +1,8 @@ |
2789 | input: clean |
2790 | ../../bin/gmsh2triangle --2d src/square.msh |
2791 | - ../../bin/fldecomp -n 8 square |
2792 | + mpiexec -n 8 ../../bin/flredecomp -i 1 -o 8 -v -l heat heat_flredecomp |
2793 | |
2794 | clean: |
2795 | rm -f *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu fluidity.* *.s *.d.1 *.stat \ |
2796 | matrixdump matrixdump.info |
2797 | - rm -rf heat_? |
2798 | + rm -rf heat_? *flredecomp* |
2799 | |
2800 | === modified file 'tests/heat_2d_dg_local_assembly/heat_2d_dg_local_assembly.xml' |
2801 | --- tests/heat_2d_dg_local_assembly/heat_2d_dg_local_assembly.xml 2012-06-28 08:23:27 +0000 |
2802 | +++ tests/heat_2d_dg_local_assembly/heat_2d_dg_local_assembly.xml 2012-11-24 15:51:21 +0000 |
2803 | @@ -6,7 +6,7 @@ |
2804 | <owner userid="wence"/> |
2805 | <tags>flml parallel</tags> |
2806 | <problem_definition length="short" nprocs="1"> |
2807 | - <command_line>mpiexec -np 8 ../../bin/fluidity -l heat.flml </command_line> |
2808 | + <command_line>mpiexec -np 8 ../../bin/fluidity -l heat_flredecomp.flml </command_line> |
2809 | <!-- Two dimensional diffusion only problem. --> |
2810 | </problem_definition> |
2811 | <variables> |
2812 | |
2813 | === modified file 'tests/lagrangian_detectors/Makefile' |
2814 | --- tests/lagrangian_detectors/Makefile 2011-03-07 17:39:46 +0000 |
2815 | +++ tests/lagrangian_detectors/Makefile 2012-11-24 15:51:21 +0000 |
2816 | @@ -1,9 +1,9 @@ |
2817 | input: default |
2818 | default: clean |
2819 | gmsh -2 -bin square.geo -o square.msh |
2820 | - ../../bin/fldecomp -m gmsh -n 4 square |
2821 | + mpiexec -n 4 ../../bin/flredecomp -i 1 -o 4 -v -l lagrangian_detectors_rk lagrangian_detectors_rk_flredecomp |
2822 | clean: |
2823 | - rm -rf *.msh *.halo *.vtu *.pvtu *.log* *.err* *.stat blob_[012] *.detectors *.dat |
2824 | + rm -rf *.msh *.halo *.vtu *.pvtu *.log* *.err* *.stat blob_[012] *.detectors *.dat *flredecomp* |
2825 | |
2826 | logs: |
2827 | mpirun -n 4 ../../bin/fluidity -v3 -l lagrangian_detectors_rk.flml |
2828 | |
2829 | === modified file 'tests/lagrangian_detectors/lagrangian_detectors.xml' |
2830 | --- tests/lagrangian_detectors/lagrangian_detectors.xml 2011-10-21 10:05:25 +0000 |
2831 | +++ tests/lagrangian_detectors/lagrangian_detectors.xml 2012-11-24 15:51:21 +0000 |
2832 | @@ -6,7 +6,7 @@ |
2833 | <tags>flml parallel nozoltan</tags> |
2834 | <problem_definition length="short" nprocs="1"> |
2835 | <command_line> |
2836 | -mpirun -n 4 ../../bin/fluidity -v3 -l lagrangian_detectors_rk.flml |
2837 | +mpirun -n 4 ../../bin/fluidity -v3 -l lagrangian_detectors_rk_flredecomp.flml |
2838 | </command_line> |
2839 | </problem_definition> |
2840 | <variables> |
2841 | |
2842 | === modified file 'tests/lagrangian_detectors_3d/Makefile' |
2843 | --- tests/lagrangian_detectors_3d/Makefile 2011-10-21 10:05:25 +0000 |
2844 | +++ tests/lagrangian_detectors_3d/Makefile 2012-11-24 15:51:21 +0000 |
2845 | @@ -1,6 +1,6 @@ |
2846 | input: default |
2847 | default: clean |
2848 | gmsh -3 -bin src/box.geo -o box.msh |
2849 | - ../../bin/fldecomp -m gmsh -n 4 box |
2850 | + mpiexec -n 4 ../../bin/flredecomp -i 1 -o 4 -v -l lagrangian_detectors_3d lagrangian_detectors_3d_flredecomp |
2851 | clean: |
2852 | - rm -rf *.msh *.halo *.vtu *.pvtu *.log* *.err* *.stat blob_[012] *.detectors *.dat lagrangian_detectors_[01] |
2853 | + rm -rf *.msh *.halo *.vtu *.pvtu *.log* *.err* *.stat blob_[012] *.detectors *.dat lagrangian_detectors_[01] *flredecomp* |
2854 | |
2855 | === modified file 'tests/lagrangian_detectors_3d/lagrangian_detectors_3d.xml' |
2856 | --- tests/lagrangian_detectors_3d/lagrangian_detectors_3d.xml 2011-10-21 10:05:25 +0000 |
2857 | +++ tests/lagrangian_detectors_3d/lagrangian_detectors_3d.xml 2012-11-24 15:51:21 +0000 |
2858 | @@ -6,7 +6,7 @@ |
2859 | <tags>flml parallel</tags> |
2860 | <problem_definition length="short" nprocs="1"> |
2861 | <command_line> |
2862 | -mpirun -n 4 ../../bin/fluidity -v3 -l lagrangian_detectors_3d.flml |
2863 | +mpirun -n 4 ../../bin/fluidity -v3 -l lagrangian_detectors_3d_flredecomp.flml |
2864 | </command_line> |
2865 | </problem_definition> |
2866 | <variables> |
2867 | |
2868 | === modified file 'tests/mixing_stats_test/Makefile' |
2869 | --- tests/mixing_stats_test/Makefile 2012-06-28 08:23:27 +0000 |
2870 | +++ tests/mixing_stats_test/Makefile 2012-11-24 15:51:21 +0000 |
2871 | @@ -2,7 +2,7 @@ |
2872 | sed "s/mixing_stats_test/mixing_stats_test_serial/" mixing_stats_test.flml > mixing_stats_test_serial.flml |
2873 | sed "s/mixing_stats_test/mixing_stats_test_parallel/" mixing_stats_test.flml > mixing_stats_test_parallel.flml |
2874 | gmsh -bin -3 src/pseudo_2d_square.geo -o pseudo_2d_square.msh |
2875 | - ../../bin/fldecomp -m gmsh -n 3 pseudo_2d_square |
2876 | + mpiexec -n 3 ../../bin/flredecomp -i 1 -o 3 -v -l mixing_stats_test_parallel mixing_stats_test_parallel_flredecomp |
2877 | |
2878 | clean: |
2879 | rm -f *.stat *.vtu *.pvtu *.convergence *checkpoint* *.err* *.log* |
2880 | @@ -10,3 +10,4 @@ |
2881 | rm -f *.halo *.node *.ele *.face *.msh |
2882 | rm -rf mixing_stats_test_parallel_? \ |
2883 | matrixdump matrixdump.info |
2884 | + rm -rf *flredecomp* |
2885 | |
2886 | === modified file 'tests/mixing_stats_test/mixing_stats_test.xml' |
2887 | --- tests/mixing_stats_test/mixing_stats_test.xml 2012-07-18 11:26:25 +0000 |
2888 | +++ tests/mixing_stats_test/mixing_stats_test.xml 2012-11-24 15:51:21 +0000 |
2889 | @@ -10,7 +10,7 @@ |
2890 | |
2891 | <problem_definition length="medium" nprocs="1"> |
2892 | <command_line>fluidity -v3 -l mixing_stats_test_serial.flml; |
2893 | - mpiexec -n 3 ../../bin/fluidity -v3 -l mixing_stats_test_parallel.flml; |
2894 | + mpiexec -n 3 ../../bin/fluidity -v3 -l mixing_stats_test_parallel_flredecomp.flml; |
2895 | </command_line> |
2896 | </problem_definition> |
2897 | |
2898 | |
2899 | === modified file 'tests/mmat-adapt-after-checkpoint/mmat-adapt-after-checkpoint.xml' |
2900 | --- tests/mmat-adapt-after-checkpoint/mmat-adapt-after-checkpoint.xml 2012-06-28 08:23:27 +0000 |
2901 | +++ tests/mmat-adapt-after-checkpoint/mmat-adapt-after-checkpoint.xml 2012-11-24 15:51:21 +0000 |
2902 | @@ -223,7 +223,7 @@ |
2903 | </test> |
2904 | <test name="check that reasonable tolerance is being used to test conservation" language="python"> |
2905 | print 'divergence tolerance = ', max(abs(divergencemaxstart), abs(divergencemaxend), abs(divergenceminstart), abs(divergenceminend)) |
2906 | -assert max(abs(divergencemaxstart), abs(divergencemaxend), abs(divergenceminstart), abs(divergenceminend)) < 2.E-8 |
2907 | +assert max(abs(divergencemaxstart), abs(divergencemaxend), abs(divergenceminstart), abs(divergenceminend)) < 4.E-8 |
2908 | </test> |
2909 | <test name="check material1 max bound was conserved" language="python"> |
2910 | assert abs(material1maxstart-material1maxend) < 1.E-10 |
2911 | @@ -238,16 +238,16 @@ |
2912 | assert abs(material3minstart-material3minend) < 1.E-10 |
2913 | </test> |
2914 | <test name="check initial max divergence was zero" language="python"> |
2915 | -assert abs(divergencemaxstart) < 2.E-8 |
2916 | +assert abs(divergencemaxstart) < 4.E-8 |
2917 | </test> |
2918 | <test name="check initial min divergence was zero" language="python"> |
2919 | -assert abs(divergenceminstart) < 2.E-8 |
2920 | +assert abs(divergenceminstart) < 4.E-8 |
2921 | </test> |
2922 | <test name="check final max divergence was zero" language="python"> |
2923 | -assert abs(divergencemaxend) < 2.E-8 |
2924 | +assert abs(divergencemaxend) < 4.E-8 |
2925 | </test> |
2926 | <test name="check final min divergence was zero" language="python"> |
2927 | -assert abs(divergenceminend) < 2.E-8 |
2928 | +assert abs(divergenceminend) < 4.E-8 |
2929 | </test> |
2930 | <test name="check initial max cfl was 0.1" language="python"> |
2931 | assert abs(cflmaxstart-0.1) < 1.E-10 |
2932 | |
2933 | === modified file 'tests/mmat-balancepressure-extrude-parallel/Makefile' |
2934 | --- tests/mmat-balancepressure-extrude-parallel/Makefile 2012-04-03 09:08:56 +0000 |
2935 | +++ tests/mmat-balancepressure-extrude-parallel/Makefile 2012-11-24 15:51:21 +0000 |
2936 | @@ -1,9 +1,13 @@ |
2937 | input: clean |
2938 | ../../bin/interval --dx 0.05 --reverse -- -0.5 0.5 line |
2939 | - ../../bin/fldecomp -n 2 line |
2940 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l mmat-balancepressure-p0p1cv-gpp2 mmat-balancepressure-p0p1cv-gpp2_flredecomp |
2941 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l mmat-balancepressure-p0p1cv-hpp2dg mmat-balancepressure-p0p1cv-hpp2dg_flredecomp |
2942 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l mmat-balancepressure-p0p1-rhop0-vfracp0 mmat-balancepressure-p0p1-rhop0-vfracp0_flredecomp |
2943 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv_flredecomp |
2944 | |
2945 | clean: |
2946 | rm -rf *.stat *.vtu *.pvtu *.convergence *.node *.bound *.ele *.halo *.log-? *.err-? *checkpoint* |
2947 | rm -rf mmat-balancepressure*_? |
2948 | rm -rf mmat-balancepressure*_?? |
2949 | rm -rf matrixdump* |
2950 | + rm -rf *flredecomp* |
2951 | |
2952 | === modified file 'tests/mmat-balancepressure-extrude-parallel/mmat-balancepressure-extrude-parallel.xml' |
2953 | --- tests/mmat-balancepressure-extrude-parallel/mmat-balancepressure-extrude-parallel.xml 2011-10-21 10:05:25 +0000 |
2954 | +++ tests/mmat-balancepressure-extrude-parallel/mmat-balancepressure-extrude-parallel.xml 2012-11-24 15:51:21 +0000 |
2955 | @@ -5,7 +5,7 @@ |
2956 | <owner userid="cwilson"/> |
2957 | <tags>flml parallel</tags> |
2958 | <problem_definition length="medium" nprocs="1"> |
2959 | - <command_line>mpiexec -n 2 ../../bin/fluidity -v2 -l mmat-balancepressure-p0p1cv-gpp2.flml && mv fluidity.log-0 mmat-balancepressure-p0p1cv-gpp2.log-0 && mv fluidity.log-1 mmat-balancepressure-p0p1cv-gpp2.log-1 && mv fluidity.err-0 mmat-balancepressure-p0p1cv-gpp2.err-0 && mv fluidity.err-1 mmat-balancepressure-p0p1cv-gpp2.err-1 && mpiexec -n 2 ../../bin/fluidity -v2 -l mmat-balancepressure-p0p1cv-hpp2dg.flml && mv fluidity.log-0 mmat-balancepressure-p0p1cv-hpp2dg.log-0 && mv fluidity.log-1 mmat-balancepressure-p0p1cv-hpp2dg.log-1 && mv fluidity.err-0 mmat-balancepressure-p0p1cv-hpp2dg.err-0 && mv fluidity.err-1 mmat-balancepressure-p0p1cv-hpp2dg.err-1 && mpiexec -n 2 ../../bin/fluidity -v2 -l mmat-balancepressure-p0p1-rhop0-vfracp0.flml && mv fluidity.log-0 mmat-balancepressure-p0p1-rhop0-vfracp0.log-0 && mv fluidity.log-1 mmat-balancepressure-p0p1-rhop0-vfracp0.log-1 && mv fluidity.err-0 mmat-balancepressure-p0p1-rhop0-vfracp0.err-0 && mv fluidity.err-1 mmat-balancepressure-p0p1-rhop0-vfracp0.err-1 && mpiexec -n 2 ../../bin/fluidity -v2 -l mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv.flml && mv fluidity.log-0 mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv.log-0 && mv fluidity.log-1 mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv.log-1 && mv fluidity.err-0 mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv.err-0 && mv fluidity.err-1 mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv.err-1</command_line> |
2960 | + <command_line>mpiexec -n 2 ../../bin/fluidity -v2 -l mmat-balancepressure-p0p1cv-gpp2_flredecomp.flml && mv fluidity.log-0 mmat-balancepressure-p0p1cv-gpp2.log-0 && mv fluidity.log-1 mmat-balancepressure-p0p1cv-gpp2.log-1 && mv fluidity.err-0 mmat-balancepressure-p0p1cv-gpp2.err-0 && mv fluidity.err-1 mmat-balancepressure-p0p1cv-gpp2.err-1 && mpiexec -n 2 ../../bin/fluidity -v2 -l mmat-balancepressure-p0p1cv-hpp2dg_flredecomp.flml && mv fluidity.log-0 mmat-balancepressure-p0p1cv-hpp2dg.log-0 && mv fluidity.log-1 mmat-balancepressure-p0p1cv-hpp2dg.log-1 && mv fluidity.err-0 mmat-balancepressure-p0p1cv-hpp2dg.err-0 && mv fluidity.err-1 mmat-balancepressure-p0p1cv-hpp2dg.err-1 && mpiexec -n 2 ../../bin/fluidity -v2 -l mmat-balancepressure-p0p1-rhop0-vfracp0_flredecomp.flml && mv fluidity.log-0 mmat-balancepressure-p0p1-rhop0-vfracp0.log-0 && mv fluidity.log-1 mmat-balancepressure-p0p1-rhop0-vfracp0.log-1 && mv fluidity.err-0 mmat-balancepressure-p0p1-rhop0-vfracp0.err-0 && mv fluidity.err-1 mmat-balancepressure-p0p1-rhop0-vfracp0.err-1 && mpiexec -n 2 ../../bin/fluidity -v2 -l mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv_flredecomp.flml && mv fluidity.log-0 mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv.log-0 && mv fluidity.log-1 mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv.log-1 && mv fluidity.err-0 mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv.err-0 && mv fluidity.err-1 mmat-balancepressure-p1dgp2-rhop1dg-vfracp1cv.err-1</command_line> |
2961 | </problem_definition> |
2962 | <variables> |
2963 | <variable name="pressure_p0p1cv_gpp2" language="python"> |
2964 | |
2965 | === modified file 'tests/mmat-balancepressure-extrude/Makefile' |
2966 | --- tests/mmat-balancepressure-extrude/Makefile 2011-10-27 22:51:21 +0000 |
2967 | +++ tests/mmat-balancepressure-extrude/Makefile 2012-11-24 15:51:21 +0000 |
2968 | @@ -1,6 +1,5 @@ |
2969 | input: clean |
2970 | ../../bin/interval --dx 0.05 --reverse -- -0.5 0.5 line |
2971 | - ../../bin/fldecomp -n 2 line |
2972 | |
2973 | clean: |
2974 | rm -rf *.halo *.log *.d.* *.stat *.vtu *.pvtu *.convergence *.node *.bound *.ele *checkpoint* |
2975 | |
2976 | === modified file 'tests/mmat-interpolation-2d-parallel/Makefile' |
2977 | --- tests/mmat-interpolation-2d-parallel/Makefile 2012-09-19 10:31:15 +0000 |
2978 | +++ tests/mmat-interpolation-2d-parallel/Makefile 2012-11-24 15:51:21 +0000 |
2979 | @@ -1,7 +1,7 @@ |
2980 | input: clean |
2981 | gmsh -2 src/2d_square.geo |
2982 | ../../bin/gmsh2triangle --2d src/2d_square.msh |
2983 | - ../../bin/fldecomp -n 2 2d_square |
2984 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l mmat-interpolation mmat-interpolation_flredecomp |
2985 | |
2986 | clean: |
2987 | - 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] |
2988 | + 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* |
2989 | |
2990 | === modified file 'tests/mmat-interpolation-2d-parallel/mmat-interpolation-2d-parallel.xml' |
2991 | --- tests/mmat-interpolation-2d-parallel/mmat-interpolation-2d-parallel.xml 2012-06-28 08:23:27 +0000 |
2992 | +++ tests/mmat-interpolation-2d-parallel/mmat-interpolation-2d-parallel.xml 2012-11-24 15:51:21 +0000 |
2993 | @@ -4,7 +4,7 @@ |
2994 | <owner userid="cwilson"/> |
2995 | <tags>flml 2dadapt zoltan parallel</tags> |
2996 | <problem_definition length ="short" nprocs = "1"> |
2997 | - <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l mmat-interpolation.flml && mv fluidity.log-0 first.log-0 && mv fluidity.log-1 first.log-1 && mv fluidity.err-0 first.err-0 && mv fluidity.err-1 first.err-1 && ./change_options.py && mpiexec -np 2 ../../bin/fluidity -v2 -l mmat-interpolation_2_checkpoint.flml && mv fluidity.log-0 checkpoint.log-0 && mv fluidity.log-1 checkpoint.log-1 && mv fluidity.err-0 checkpoint.err-0 && mv fluidity.err-1 checkpoint.err-1 </command_line> |
2998 | + <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l mmat-interpolation_flredecomp.flml && mv fluidity.log-0 first.log-0 && mv fluidity.log-1 first.log-1 && mv fluidity.err-0 first.err-0 && mv fluidity.err-1 first.err-1 && ./change_options.py && mpiexec -np 2 ../../bin/fluidity -v2 -l mmat-interpolation_2_checkpoint.flml && mv fluidity.log-0 checkpoint.log-0 && mv fluidity.log-1 checkpoint.log-1 && mv fluidity.err-0 checkpoint.err-0 && mv fluidity.err-1 checkpoint.err-1 </command_line> |
2999 | </problem_definition> |
3000 | <variables> |
3001 | <variable name="solvers_converged" language="python"> |
3002 | |
3003 | === modified file 'tests/mmat-interpolation-pseudo2d-parallel/Makefile' |
3004 | --- tests/mmat-interpolation-pseudo2d-parallel/Makefile 2012-06-28 08:23:27 +0000 |
3005 | +++ tests/mmat-interpolation-pseudo2d-parallel/Makefile 2012-11-24 15:51:21 +0000 |
3006 | @@ -1,8 +1,7 @@ |
3007 | input: clean |
3008 | gmsh -3 src/2d_square.geo |
3009 | ../../bin/gmsh2triangle src/2d_square.msh |
3010 | - ../../bin/fldecomp -n 2 2d_square |
3011 | + mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l mmat-interpolation mmat-interpolation_flredecomp |
3012 | |
3013 | clean: |
3014 | - rm -rf *.stat *.vtu *.pvtu *.node *.ele *.halo *.face *checkpoint* *convergence* *.log-? *.err-? src/2d_square.msh \ |
3015 | - matrixdump matrixdump.info |
3016 | + 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* |
3017 | |
3018 | === modified file 'tests/mmat-interpolation-pseudo2d-parallel/mmat-interpolation-pseudo2d-parallel.xml' |
3019 | --- tests/mmat-interpolation-pseudo2d-parallel/mmat-interpolation-pseudo2d-parallel.xml 2012-06-28 08:23:27 +0000 |
3020 | +++ tests/mmat-interpolation-pseudo2d-parallel/mmat-interpolation-pseudo2d-parallel.xml 2012-11-24 15:51:21 +0000 |
3021 | @@ -4,7 +4,7 @@ |
3022 | <owner userid="cwilson"/> |
3023 | <tags>flml 2dadapt parallel</tags> |
3024 | <problem_definition length ="special" nprocs = "1"> |
3025 | - <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l mmat-interpolation.flml && mv fluidity.log-0 first.log-0 && mv fluidity.log-1 first.log-1 && mv fluidity.err-0 first.err-0 && mv fluidity.err-1 first.err-1 && ./change_options.py && mpiexec -np 2 ../../bin/fluidity -v2 -l mmat-interpolation_2_checkpoint.flml && mv fluidity.log-0 checkpoint.log-0 && mv fluidity.log-1 checkpoint.log-1 && mv fluidity.err-0 checkpoint.err-0 && mv fluidity.err-1 checkpoint.err-1 </command_line> |
3026 | + <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l mmat-interpolation_flredecomp.flml && mv fluidity.log-0 first.log-0 && mv fluidity.log-1 first.log-1 && mv fluidity.err-0 first.err-0 && mv fluidity.err-1 first.err-1 && ./change_options.py && mpiexec -np 2 ../../bin/fluidity -v2 -l mmat-interpolation_2_checkpoint.flml && mv fluidity.log-0 checkpoint.log-0 && mv fluidity.log-1 checkpoint.log-1 && mv fluidity.err-0 checkpoint.err-0 && mv fluidity.err-1 checkpoint.err-1 </command_line> |
3027 | </problem_definition> |
3028 | <variables> |
3029 | <variable name="solvers_converged" language="python"> |
3030 | |
3031 | === modified file 'tests/parallel_dg/Makefile' |
3032 | --- tests/parallel_dg/Makefile 2010-03-30 01:05:26 +0000 |
3033 | +++ tests/parallel_dg/Makefile 2012-11-24 15:51:21 +0000 |
3034 | @@ -10,14 +10,11 @@ |
3035 | |
3036 | input: src/$(MESH).tar.bz2 |
3037 | tar -xvjf src/$(MESHARCH).tar.bz2 |
3038 | -ifdef NP |
3039 | - fldecomp -n $(NP) -v $(MESH) > decomp.log 2> decomp_err.log |
3040 | -endif |
3041 | |
3042 | clean: clean-mesh clean-run-debug |
3043 | clean-mesh: |
3044 | rm -f $(MESH).ele $(MESH).face $(MESH).node |
3045 | - rm -f $(MESH)_?*.ele $(MESH)_?*.face $(MESH)_?*.halo $(MESH)_?*.node decomp.log decomp_err.log |
3046 | + rm -f $(MESH)_?*.ele $(MESH)_?*.face $(MESH)_?*.halo $(MESH)_?*.node |
3047 | clean-run: |
3048 | rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*.vtu |
3049 | rm -f $(FLMLMODEL).detectors $(FLMLMODEL).stat tmpf* |
3050 | @@ -28,6 +25,8 @@ |
3051 | rm -f $(FLMLMODEL)_?*_?*_checkpoint.pvtu $(FLMLMODEL)_?*_?*_checkpoint.vtu |
3052 | rm -f $(FLMLMODEL)_?*_checkpoint.ele $(FLMLMODEL)_?*_checkpoint.face $(FLMLMODEL)_?*_checkpoint.node |
3053 | rm -f $(FLMLMODEL)_?*_checkpoint.vtu |
3054 | + rm -f *flredecomp* |
3055 | + rm -rf $(FLMLMODEL)_[0-9] $(FLMLMODEL)_[0-9][0-9] |
3056 | clean-run-debug: clean-run |
3057 | 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 |
3058 | rm -f adapted_mesh.face adapted_mesh.ele adapted_mesh.node |
3059 | @@ -36,13 +35,15 @@ |
3060 | |
3061 | run: clean-run input |
3062 | ifdef NP |
3063 | - mpiexec -np $(NP) $(FLUIDITY) $(FLFLAGS) $(MODEL).flml |
3064 | + mpiexec -n $(NP) ../../bin/flredecomp -i 1 -o $(NP) -v -l $(FLMLMODEL) $(FLMLMODEL)_flredecomp |
3065 | + mpiexec -np $(NP) $(FLUIDITY) $(FLFLAGS) $(MODEL)_flredecomp.flml |
3066 | else |
3067 | $(FLUIDITY) $(FLFLAGS) $(MODEL).flml |
3068 | endif |
3069 | run-debug: clean-run-debug input |
3070 | ifdef NP |
3071 | - mpiexec -np $(NP) $(FLUIDITY)-debug $(FLFLAGS) $(MODEL).flml |
3072 | + mpiexec -n $(NP) ../../bin/flredecomp -i 1 -o $(NP) -v -l $(FLMLMODEL) $(FLMLMODEL)_flredecomp |
3073 | + mpiexec -np $(NP) $(FLUIDITY)-debug $(FLFLAGS) $(MODEL)_flredecomp.flml |
3074 | else |
3075 | $(FLUIDITY)-debug $(FLFLAGS) $(MODEL).flml |
3076 | endif |
3077 | |
3078 | === modified file 'tests/parallel_dg/parallel_dg.xml' |
3079 | --- tests/parallel_dg/parallel_dg.xml 2011-10-21 10:05:25 +0000 |
3080 | +++ tests/parallel_dg/parallel_dg.xml 2012-11-24 15:51:21 +0000 |
3081 | @@ -4,7 +4,7 @@ |
3082 | <owner userid="dham"/> |
3083 | <tags>flml parallel</tags> |
3084 | <problem_definition length = "special" nprocs = "2"> |
3085 | - <command_line>make clean-run-debug && mpiexec fluidity -v2 -l cube.flml</command_line> |
3086 | + <command_line>make clean-run-debug && mpiexec ../../bin/flredecomp -i 1 -o 2 -v -l cube cube_flredecomp && mpiexec fluidity -v2 -l cube_flredecomp.flml</command_line> |
3087 | </problem_definition> |
3088 | <variables> |
3089 | <variable name = "times" language = "python"> |
3090 | @@ -24,7 +24,8 @@ |
3091 | </variable> |
3092 | <variable name = "final_vtus" language = "python"> |
3093 | import vtktools |
3094 | -final_vtus = [vtktools.vtu("cube_2_0.vtu"), vtktools.vtu("cube_2_1.vtu")] |
3095 | +# parallel, so pvtu |
3096 | +final_vtus = [vtktools.vtu("cube_2.pvtu")] |
3097 | </variable> |
3098 | </variables> |
3099 | <pass_tests> |
3100 | @@ -36,15 +37,16 @@ |
3101 | <test name = "Solvers converged" language = "python"> |
3102 | assert(solvers_converged) |
3103 | </test> |
3104 | - <test name = "Correct velocity" language = "python"> |
3105 | + <test name = "Correct velocity within 3.0e-3" language = "python"> |
3106 | for vtu in final_vtus: |
3107 | print "Testing vtu " + vtu.filename |
3108 | velocity = vtu.GetVectorField("Velocity") |
3109 | for vel in velocity: |
3110 | assert(len(vel) == 3) |
3111 | - assert(abs(vel[0] - 1.0) < 1.0e6) |
3112 | - assert(abs(vel[1]) < 1.0e-6) |
3113 | - assert(abs(vel[2]) < 1.0e-6) |
3114 | + # tolerance loosened from 1.0e-6 to 3.0e-3 |
3115 | + assert(abs(vel[0] - 1.0) < 3.0e-3) |
3116 | + assert(abs(vel[1]) < 3.0e-3) |
3117 | + assert(abs(vel[2]) < 3.0e-3) |
3118 | </test> |
3119 | </pass_tests> |
3120 | <warn_tests> |
3121 | |
3122 | === modified file 'tests/parallel_p0_consistent_interpolation/Makefile' |
3123 | --- tests/parallel_p0_consistent_interpolation/Makefile 2012-06-28 08:23:27 +0000 |
3124 | +++ tests/parallel_p0_consistent_interpolation/Makefile 2012-11-24 15:51:21 +0000 |
3125 | @@ -5,7 +5,6 @@ |
3126 | |
3127 | input: src/$(MESH).tar.bz2 |
3128 | tar -xvjf src/$(MESH).tar.bz2 |
3129 | - ../../bin/fldecomp -n 2 $(MESH) |
3130 | |
3131 | clean: clean-mesh clean-run |
3132 | rm -rf parallel_p0_consistent_interpolation_* |
3133 | @@ -15,3 +14,4 @@ |
3134 | clean-run: |
3135 | rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*_?*.vtu $(FLMLMODEL).stat fluidity.err-* fluidity.log-* \ |
3136 | matrixdump matrixdump.info |
3137 | + rm -rf *flredecomp* |
3138 | |
3139 | === modified file 'tests/parallel_p0_consistent_interpolation/parallel_p0_consistent_interpolation.xml' |
3140 | --- tests/parallel_p0_consistent_interpolation/parallel_p0_consistent_interpolation.xml 2012-06-28 08:23:27 +0000 |
3141 | +++ tests/parallel_p0_consistent_interpolation/parallel_p0_consistent_interpolation.xml 2012-11-24 15:51:21 +0000 |
3142 | @@ -4,7 +4,7 @@ |
3143 | <owner userid="cwilson"/> |
3144 | <tags>flml zoltan parallel</tags> |
3145 | <problem_definition length="short" nprocs="1"> |
3146 | - <command_line>make clean-run; mpiexec -n 2 ../../bin/fluidity -v2 -l parallel_p0_consistent_interpolation.flml</command_line> |
3147 | + <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> |
3148 | </problem_definition> |
3149 | <variables> |
3150 | <variable name="solvers_converged" language="python"> |
3151 | |
3152 | === modified file 'tests/parallel_p0_consistent_interpolation_3d/Makefile' |
3153 | --- tests/parallel_p0_consistent_interpolation_3d/Makefile 2012-06-28 08:23:27 +0000 |
3154 | +++ tests/parallel_p0_consistent_interpolation_3d/Makefile 2012-11-24 15:51:21 +0000 |
3155 | @@ -6,7 +6,6 @@ |
3156 | input: src/$(MESH).geo |
3157 | gmsh -3 src/$(MESH).geo |
3158 | ../../bin/gmsh2triangle src/$(MESH).msh |
3159 | - ../../bin/fldecomp -n 3 $(MESH) |
3160 | |
3161 | clean: clean-mesh clean-run |
3162 | rm -rf parallel_p0_consistent_interpolation_[01]* parallel_p0_consistent_interpolation.stat |
3163 | @@ -17,3 +16,4 @@ |
3164 | clean-run: |
3165 | rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*_?*.vtu $(FLMLMODEL).stat fluidity.err-* fluidity.log-* \ |
3166 | matrixdump matrixdump.info |
3167 | + rm -rf *flredecomp* |
3168 | |
3169 | === modified file 'tests/parallel_p0_consistent_interpolation_3d/parallel_p0_consistent_interpolation_3d.xml' |
3170 | --- tests/parallel_p0_consistent_interpolation_3d/parallel_p0_consistent_interpolation_3d.xml 2012-06-28 08:23:27 +0000 |
3171 | +++ tests/parallel_p0_consistent_interpolation_3d/parallel_p0_consistent_interpolation_3d.xml 2012-11-24 15:51:21 +0000 |
3172 | @@ -4,7 +4,7 @@ |
3173 | <owner userid="cwilson"/> |
3174 | <tags>flml zoltan parallel</tags> |
3175 | <problem_definition length="short" nprocs="1"> |
3176 | - <command_line>make clean-run; mpiexec -n 3 ../../bin/fluidity -v2 -l parallel_p0_consistent_interpolation.flml</command_line> |
3177 | + <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> |
3178 | </problem_definition> |
3179 | <variables> |
3180 | <variable name="solvers_converged" language="python"> |
3181 | |
3182 | === modified file 'tests/parallel_p1_consistent_interpolation/Makefile' |
3183 | --- tests/parallel_p1_consistent_interpolation/Makefile 2012-06-28 08:23:27 +0000 |
3184 | +++ tests/parallel_p1_consistent_interpolation/Makefile 2012-11-24 15:51:21 +0000 |
3185 | @@ -5,7 +5,6 @@ |
3186 | |
3187 | input: src/$(MESH).tar.bz2 |
3188 | tar -xvjf src/$(MESH).tar.bz2 |
3189 | - fldecomp -n 2 $(MESH) |
3190 | |
3191 | clean: clean-mesh clean-run |
3192 | rm -rf parallel_p1_consistent_interpolation_* |
3193 | @@ -15,3 +14,4 @@ |
3194 | clean-run: |
3195 | rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*_?*.vtu $(FLMLMODEL).stat fluidity.err-* fluidity.log-* \ |
3196 | matrixdump matrixdump.info |
3197 | + rm -rf *flredecomp* |
3198 | |
3199 | === modified file 'tests/parallel_p1_consistent_interpolation/parallel_p1_consistent_interpolation.xml' |
3200 | --- tests/parallel_p1_consistent_interpolation/parallel_p1_consistent_interpolation.xml 2012-06-28 08:23:27 +0000 |
3201 | +++ tests/parallel_p1_consistent_interpolation/parallel_p1_consistent_interpolation.xml 2012-11-24 15:51:21 +0000 |
3202 | @@ -4,7 +4,7 @@ |
3203 | <owner userid="cwilson"/> |
3204 | <tags>flml zoltan parallel</tags> |
3205 | <problem_definition length="short" nprocs="1"> |
3206 | - <command_line>make clean-run; mpiexec -n 2 ../../bin/fluidity -v2 -l parallel_p1_consistent_interpolation.flml</command_line> |
3207 | + <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> |
3208 | </problem_definition> |
3209 | <variables> |
3210 | <variable name="solvers_converged" language="python"> |
3211 | |
3212 | === modified file 'tests/parallel_p2_consistent_interpolation/Makefile' |
3213 | --- tests/parallel_p2_consistent_interpolation/Makefile 2012-06-28 08:23:27 +0000 |
3214 | +++ tests/parallel_p2_consistent_interpolation/Makefile 2012-11-24 15:51:21 +0000 |
3215 | @@ -5,7 +5,6 @@ |
3216 | |
3217 | input: src/$(MESH).tar.bz2 |
3218 | tar -xvjf src/$(MESH).tar.bz2 |
3219 | - fldecomp -n 2 $(MESH) |
3220 | |
3221 | clean: clean-mesh clean-run |
3222 | rm -rf parallel_p2_consistent_interpolation_* |
3223 | @@ -15,3 +14,4 @@ |
3224 | clean-run: |
3225 | rm -f $(FLMLMODEL)_?*.pvtu $(FLMLMODEL)_?*_?*.vtu $(FLMLMODEL).stat fluidity.err-* fluidity.log-* \ |
3226 | matrixdump matrixdump.info |
3227 | + rm -rf *flredecomp* |
3228 | |
3229 | === modified file 'tests/parallel_p2_consistent_interpolation/parallel_p2_consistent_interpolation.xml' |
3230 | --- tests/parallel_p2_consistent_interpolation/parallel_p2_consistent_interpolation.xml 2012-06-28 08:23:27 +0000 |
3231 | +++ tests/parallel_p2_consistent_interpolation/parallel_p2_consistent_interpolation.xml 2012-11-24 15:51:21 +0000 |
3232 | @@ -4,7 +4,7 @@ |
3233 | <owner userid="pef"/> |
3234 | <tags>flml zoltan parallel</tags> |
3235 | <problem_definition length="short" nprocs="1"> |
3236 | - <command_line>make clean-run; mpiexec -n 2 ../../bin/fluidity -v2 -l parallel_p2_consistent_interpolation.flml</command_line> |
3237 | + <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> |
3238 | </problem_definition> |
3239 | <variables> |
3240 | <variable name="solvers_converged" language="python"> |
3241 | |
3242 | === modified file 'tests/petsc_readnsolve/Makefile' |
3243 | --- tests/petsc_readnsolve/Makefile 2010-12-15 18:51:47 +0000 |
3244 | +++ tests/petsc_readnsolve/Makefile 2012-11-24 15:51:21 +0000 |
3245 | @@ -1,6 +1,5 @@ |
3246 | input: clean |
3247 | gmsh -3 -bin src/standing_wave.geo -o standing_wave.msh |
3248 | - ../../bin/fldecomp -m gmsh -n 3 standing_wave |
3249 | |
3250 | clean: |
3251 | rm -f standing_wave.stat |
3252 | @@ -11,3 +10,4 @@ |
3253 | rm -f petsc_readnsolve.log* petsc_readnsolve.err* |
3254 | rm -f velocity_matrixdump pressure_matrixdump |
3255 | rm -rf standing_wave_[0-9]* |
3256 | + rm -rf *flredecomp* |
3257 | |
3258 | === modified file 'tests/petsc_readnsolve/petsc_readnsolve.xml' |
3259 | --- tests/petsc_readnsolve/petsc_readnsolve.xml 2011-04-23 11:28:47 +0000 |
3260 | +++ tests/petsc_readnsolve/petsc_readnsolve.xml 2012-11-24 15:51:21 +0000 |
3261 | @@ -4,18 +4,24 @@ |
3262 | <owner userid="skramer"/> |
3263 | <tags> parallel </tags> |
3264 | <problem_definition length="short" nprocs="1"> |
3265 | - <command_line>( mpiexec -n 3 fluidity -v2 -l standing_wave_failing_velocity.flml 2>&1 ) > /dev/null; |
3266 | + <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> |
3267 | + <command_line>mpiexec -n 4 ../../bin/flredecomp -i 1 -o 4 -v -l standing_wave_failing_velocity standing_wave_failing_velocity_flredecomp; |
3268 | +mpiexec -n 4 ../../bin/flredecomp -i 1 -o 4 -v -l standing_wave_failing_pressure standing_wave_failing_pressure_flredecomp; |
3269 | +mpiexec -n 4 ../../bin/flredecomp -i 1 -o 4 -v -l standing_wave standing_wave_flredecomp; |
3270 | +sed --in-place s/failing_velocity_flredecomp_CoordinateMesh/flredecomp_CoordinateMesh/g standing_wave_failing_velocity_flredecomp.flml; |
3271 | +sed --in-place s/failing_pressure_flredecomp_CoordinateMesh/flredecomp_CoordinateMesh/g standing_wave_failing_pressure_flredecomp.flml; |
3272 | +rm -f *failing_velocity_flredecomp_CoordinateMesh* *failing_pressure_flredecomp_CoordinateMesh* |
3273 | +( mpiexec -n 4 fluidity -v2 -l standing_wave_failing_velocity_flredecomp.flml 2>&1 ) > /dev/null; |
3274 | mv matrixdump velocity_matrixdump; |
3275 | mkdir -p velocity_logs; |
3276 | mv fluidity.log* fluidity.err* velocity_logs/; |
3277 | -( mpiexec -n 3 fluidity -v2 -l standing_wave_failing_pressure.flml 2>&1 ) > /dev/null; |
3278 | +( mpiexec -n 4 fluidity -v2 -l standing_wave_failing_pressure_flredecomp.flml 2>&1 ) > /dev/null; |
3279 | mv matrixdump pressure_matrixdump; |
3280 | rm matrixdump.info; |
3281 | -mpiexec -n 3 petsc_readnsolve -v -l -prns_filename velocity_matrixdump standing_wave.flml Velocity; |
3282 | +mpiexec -n 4 petsc_readnsolve -v -l -prns_filename velocity_matrixdump standing_wave_flredecomp.flml Velocity; |
3283 | mv petsc_readnsolve.err* petsc_readnsolve.log* velocity_logs/; |
3284 | -mpiexec -n 3 petsc_readnsolve -v -l -prns_filename pressure_matrixdump standing_wave.flml Pressure; |
3285 | +mpiexec -n 4 petsc_readnsolve -v -l -prns_filename pressure_matrixdump standing_wave_flredecomp.flml Pressure; |
3286 | rm -rf fluidity.err-*<comment>Note we use ; and no && 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> |
3287 | - <comment>This is a lie: we're actually using nprocs=3.</comment> |
3288 | </problem_definition> |
3289 | <variables> |
3290 | <variable name="velocity_error_logs" language="python">import glob |
3291 | |
3292 | === modified file 'tests/photosynthetic_radiation/Makefile' |
3293 | --- tests/photosynthetic_radiation/Makefile 2012-09-19 10:31:15 +0000 |
3294 | +++ tests/photosynthetic_radiation/Makefile 2012-11-24 15:51:21 +0000 |
3295 | @@ -1,8 +1,7 @@ |
3296 | input: clean |
3297 | ../../bin/gmsh2triangle src/column.msh |
3298 | - ../../bin/fldecomp -n 2 column |
3299 | |
3300 | clean: |
3301 | rm -f *.halo *.face *.ele *.edge *.node *.poly *.pvtu *.vtu *.s *.d.1 *.stat \ |
3302 | matrixdump matrixdump.info |
3303 | - rm -rf photosynthetic_radiation_? |
3304 | + rm -rf photosynthetic_radiation_? *flredecomp* |
3305 | |
3306 | === modified file 'tests/photosynthetic_radiation/photosynthetic_radiation.xml' |
3307 | --- tests/photosynthetic_radiation/photosynthetic_radiation.xml 2012-08-02 13:03:52 +0000 |
3308 | +++ tests/photosynthetic_radiation/photosynthetic_radiation.xml 2012-11-24 15:51:21 +0000 |
3309 | @@ -5,7 +5,7 @@ |
3310 | <owner userid="jhill1"/> |
3311 | <tags>flml biology par</tags> |
3312 | <problem_definition length="short" nprocs="1"> |
3313 | - <command_line>mpiexec -n 2 fluidity photosynthetic_radiation.flml </command_line> |
3314 | + <command_line>mpiexec -n 2 flredecomp -i 1 -o 2 photosynthetic_radiation photosynthetic_radiation_flredecomp && mpiexec -n 2 fluidity photosynthetic_radiation_flredecomp.flml </command_line> |
3315 | <!-- Calculate the amount of light in the ocean. This version is DG. --> |
3316 | </problem_definition> |
3317 | <variables> |
3318 | |
3319 | === modified file 'tests/spherical_patch/Makefile' |
3320 | --- tests/spherical_patch/Makefile 2012-09-19 10:31:15 +0000 |
3321 | +++ tests/spherical_patch/Makefile 2012-11-24 15:51:21 +0000 |
3322 | @@ -1,10 +1,9 @@ |
3323 | GMSH_GEO_FILE=src/spherical_segment.geo |
3324 | -NPROCS=3 |
3325 | input: clean |
3326 | gmsh -2 -bin $(GMSH_GEO_FILE) -o patch.msh |
3327 | - ../../bin/fldecomp -n $(NPROCS) -s -m gmsh patch |
3328 | |
3329 | clean: |
3330 | rm -rf *.msh *.halo *.vtu *.stat serial.flml fluidity.* |
3331 | rm -rf spherical_segment_* *.pvtu |
3332 | - rm -rf flredecomp.* matrixdump* |
3333 | + rm -rf *flredecomp* matrixdump* |
3334 | + |
3335 | |
3336 | === modified file 'tests/spherical_patch/spherical_patch.xml' |
3337 | --- tests/spherical_patch/spherical_patch.xml 2012-03-26 17:53:59 +0000 |
3338 | +++ tests/spherical_patch/spherical_patch.xml 2012-11-24 15:51:21 +0000 |
3339 | @@ -3,7 +3,8 @@ |
3340 | <name>spherical patch<comment>Tests gmsh reading and writing on the sphere with 2d horizontal spherical input mesh, checkpointing and flredecomp.</comment></name> |
3341 | <owner userid="skramer"/> |
3342 | <problem_definition length="short" nprocs="1"> |
3343 | - <command_line>mpirun -np 3 fluidity -v2 -l spherical_segment.flml && |
3344 | + <command_line>mpiexec -n 3 ../../bin/flredecomp -i 1 -o 3 -v -l spherical_segment spherical_segment_flredecomp && |
3345 | +mpirun -np 3 fluidity -v2 -l spherical_segment_flredecomp.flml && |
3346 | mpirun -np 3 ../../bin/flredecomp -v -l -i 3 -o 1 spherical_segment_2_checkpoint serial && |
3347 | fluidity -v2 -l serial.flml</command_line> |
3348 | </problem_definition> |
3349 | |
3350 | === modified file 'tests/square-convection-parallel-trivial/Makefile' |
3351 | --- tests/square-convection-parallel-trivial/Makefile 2011-10-21 10:05:25 +0000 |
3352 | +++ tests/square-convection-parallel-trivial/Makefile 2012-11-24 15:51:21 +0000 |
3353 | @@ -7,8 +7,7 @@ |
3354 | default: input |
3355 | |
3356 | input: clean |
3357 | - fldecomp -n 2 -f src/$(MESH) |
3358 | - mv src/*_* . |
3359 | + cp src/*.node src/*.ele src/*.edge . |
3360 | |
3361 | clean: clean-mesh clean-run-debug |
3362 | rm -fr *.ele *.node *.halo *.edge *checkpoint* square-convection.detectors.dat square-convection_* fluidity.[le]* |
3363 | @@ -16,6 +15,7 @@ |
3364 | rm -f $(MESH).edge $(MESH).ele $(MESH).node |
3365 | clean-run: |
3366 | 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 |
3367 | + rm -rf *flredecomp* |
3368 | clean-run-debug: clean-run |
3369 | 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 |
3370 | |
3371 | |
3372 | === modified file 'tests/square-convection-parallel-trivial/square-convection-parallel-trivial.xml' |
3373 | --- tests/square-convection-parallel-trivial/square-convection-parallel-trivial.xml 2012-06-28 08:23:27 +0000 |
3374 | +++ tests/square-convection-parallel-trivial/square-convection-parallel-trivial.xml 2012-11-24 15:51:21 +0000 |
3375 | @@ -4,7 +4,8 @@ |
3376 | <owner userid="pfarrell"/> |
3377 | <tags>flml parallel</tags> |
3378 | <problem_definition length = "short" nprocs = "1"> |
3379 | - <command_line>mpiexec -n 2 ../../bin/fluidity -v2 -l square-convection.flml</command_line> |
3380 | + <command_line>mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l square-convection square-convection_flredecomp && |
3381 | +mpiexec -n 2 ../../bin/fluidity -v2 -l square-convection_flredecomp.flml</command_line> |
3382 | </problem_definition> |
3383 | <variables> |
3384 | <variable name="solvers_converged" language="python"> |
3385 | |
3386 | === modified file 'tests/square-convection-parallel/Makefile' |
3387 | --- tests/square-convection-parallel/Makefile 2011-10-27 22:51:21 +0000 |
3388 | +++ tests/square-convection-parallel/Makefile 2012-11-24 15:51:21 +0000 |
3389 | @@ -7,8 +7,7 @@ |
3390 | default: input |
3391 | |
3392 | input: clean |
3393 | - fldecomp -n 2 -f src/$(MESH) |
3394 | - mv src/*_* . |
3395 | + cp src/* . |
3396 | |
3397 | clean: clean-mesh clean-run-debug |
3398 | clean-mesh: |
3399 | @@ -16,6 +15,7 @@ |
3400 | clean-run: |
3401 | rm -f *.dat *.halo *.pvtu *.vtu *.edge *.ele *.node $(FLMLMODEL)_?*_checkpoint.flml *.detectors *.stat *.err-? *.log-? matrixdump matrixdump.info |
3402 | rm -rf $(MODEL)*_checkpoint $(MODEL)_? |
3403 | + rm -rf *flredecomp* |
3404 | clean-run-debug: clean-run |
3405 | 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 |
3406 | |
3407 | |
3408 | === modified file 'tests/square-convection-parallel/square-convection-parallel.xml' |
3409 | --- tests/square-convection-parallel/square-convection-parallel.xml 2012-06-28 08:23:27 +0000 |
3410 | +++ tests/square-convection-parallel/square-convection-parallel.xml 2012-11-24 15:51:21 +0000 |
3411 | @@ -4,7 +4,8 @@ |
3412 | <owner userid="pfarrell"/> |
3413 | <tags>flml parallel 2dadapt</tags> |
3414 | <problem_definition length = "medium" nprocs = "1"> |
3415 | - <command_line>mpiexec -n 2 ../../bin/fluidity -v2 -l square-convection.flml</command_line> |
3416 | + <command_line>mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l square-convection square-convection_flredecomp && |
3417 | +mpiexec -n 2 ../../bin/fluidity -v2 -l square-convection_flredecomp.flml</command_line> |
3418 | </problem_definition> |
3419 | <variables> |
3420 | <variable name="solvers_converged" language="python"> |
3421 | |
3422 | === modified file 'tests/standing_wave-parallel/Makefile' |
3423 | --- tests/standing_wave-parallel/Makefile 2011-10-27 22:51:21 +0000 |
3424 | +++ tests/standing_wave-parallel/Makefile 2012-11-24 15:51:21 +0000 |
3425 | @@ -2,7 +2,6 @@ |
3426 | |
3427 | input: clean |
3428 | gmsh -2 -bin src/standing_wave.geo -o standing_wave.msh |
3429 | - ../../bin/fldecomp -m gmsh -n 2 standing_wave |
3430 | |
3431 | clean: |
3432 | rm -f *.dat *.vtu *.pvtu *.stat *.detectors |
3433 | @@ -11,3 +10,4 @@ |
3434 | rm -rf matrixdump* *_checkpoint* |
3435 | rm -rf run1_logs/ |
3436 | rm -rf standing_wave_? |
3437 | + rm -rf *flredecomp* |
3438 | |
3439 | === modified file 'tests/standing_wave-parallel/standing_wave-parallel.xml' |
3440 | --- tests/standing_wave-parallel/standing_wave-parallel.xml 2012-06-28 08:23:27 +0000 |
3441 | +++ tests/standing_wave-parallel/standing_wave-parallel.xml 2012-11-24 15:51:21 +0000 |
3442 | @@ -4,7 +4,9 @@ |
3443 | <owner userid="skramer"/> |
3444 | <tags>flml parallel</tags> |
3445 | <problem_definition length="medium" nprocs="1"> |
3446 | - <command_line>mpiexec -n 2 ../../bin/fluidity -v3 -l standing_wave.flml; |
3447 | + <command_line>mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l standing_wave standing_wave_flredecomp |
3448 | + |
3449 | +mpiexec -n 2 ../../bin/fluidity -v3 -l standing_wave_flredecomp.flml; |
3450 | mkdir -p run1_logs; |
3451 | mv fluidity.* run1_logs; |
3452 | spud-set standing_wave_1_checkpoint.flml /material_phase::water/scalar_field::Pressure/prognostic/scheme/poisson_pressure_solution never; |
3453 | |
3454 | === modified file 'tests/test_adapt-at-first-time-step/Makefile' |
3455 | --- tests/test_adapt-at-first-time-step/Makefile 2012-06-28 08:23:27 +0000 |
3456 | +++ tests/test_adapt-at-first-time-step/Makefile 2012-11-24 15:51:21 +0000 |
3457 | @@ -1,8 +1,9 @@ |
3458 | input: clean |
3459 | gmsh -3 ./src/cube-1.geo |
3460 | ../../bin/gmsh2triangle ./src/cube-1.msh |
3461 | - ../../bin/fldecomp -n 2 cube-1 |
3462 | |
3463 | clean: |
3464 | rm -f *.ele *.face *.node *.halo *.vtu *.s *.d.1 *.stat *.log-* *.err-* *.pvtu *~ ./src/*.msh ./src/*~ \ |
3465 | matrixdump matrixdump.info |
3466 | + rm -rf *flredecomp* |
3467 | + rm -rf test_adapt-at-first-time-step_[0-9]* |
3468 | |
3469 | === modified file 'tests/test_adapt-at-first-time-step/test_adapt-at-first-time-step.xml' |
3470 | --- tests/test_adapt-at-first-time-step/test_adapt-at-first-time-step.xml 2012-07-18 11:26:25 +0000 |
3471 | +++ tests/test_adapt-at-first-time-step/test_adapt-at-first-time-step.xml 2012-11-24 15:51:21 +0000 |
3472 | @@ -5,7 +5,8 @@ |
3473 | <owner userid="skramer"/> |
3474 | <tags>flml nozoltan parallel</tags> |
3475 | <problem_definition length="short" nprocs="1"> |
3476 | - <command_line>mpiexec -n 2 ../../bin/fluidity -v3 -l test_adapt-at-first-time-step.flml </command_line> |
3477 | + <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 && |
3478 | +mpiexec -n 2 ../../bin/fluidity -v3 -l test_adapt-at-first-time-step_flredecomp.flml </command_line> |
3479 | </problem_definition> |
3480 | <variables> |
3481 | <variable name="solvers_converged" language="python"> |
3482 | |
3483 | === modified file 'tests/test_energy_stats/Makefile' |
3484 | --- tests/test_energy_stats/Makefile 2011-10-27 22:51:21 +0000 |
3485 | +++ tests/test_energy_stats/Makefile 2012-11-24 15:51:21 +0000 |
3486 | @@ -1,11 +1,11 @@ |
3487 | input: clean |
3488 | $(call makemesh,channel_2d) ; \ |
3489 | - ../../bin/fldecomp -n 3 channel_2d |
3490 | $(call makemesh,channel_2d_finemesh) |
3491 | |
3492 | clean: |
3493 | rm -f ./src/*.msh *.ele *.edge *.node *.face *.halo *.vtu *pvtu *.stat *.log-* *.err-* matrixdump* |
3494 | rm -rf lock_exchange_2d_parallel_? |
3495 | + rm -rf *flredecomp* |
3496 | |
3497 | makemesh = echo $(1) ; \ |
3498 | gmsh -2 ./src/$(1).geo ; \ |
3499 | |
3500 | === modified file 'tests/test_energy_stats/test_energy_stats.xml' |
3501 | --- tests/test_energy_stats/test_energy_stats.xml 2012-07-18 11:26:25 +0000 |
3502 | +++ tests/test_energy_stats/test_energy_stats.xml 2012-11-24 15:51:21 +0000 |
3503 | @@ -6,7 +6,8 @@ |
3504 | <problem_definition length="medium" nprocs="1"> |
3505 | <command_line> |
3506 | mpiexec -np 1 ../../bin/fluidity -v3 -l lock_exchange_2d.flml && |
3507 | - mpiexec -np 3 ../../bin/fluidity -v3 -l lock_exchange_2d_parallel.flml |
3508 | + mpiexec -n 3 ../../bin/flredecomp -i 1 -o 3 -v -l lock_exchange_2d_parallel lock_exchange_2d_parallel_flredecomp && |
3509 | + mpiexec -np 3 ../../bin/fluidity -v3 -l lock_exchange_2d_parallel_flredecomp.flml |
3510 | </command_line> |
3511 | </problem_definition> |
3512 | <variables> |
3513 | |
3514 | === modified file 'tests/test_metric_advection_parallel/Makefile' |
3515 | --- tests/test_metric_advection_parallel/Makefile 2011-10-27 22:51:21 +0000 |
3516 | +++ tests/test_metric_advection_parallel/Makefile 2012-11-24 15:51:21 +0000 |
3517 | @@ -1,8 +1,8 @@ |
3518 | input: clean |
3519 | gmsh -2 ./src/box_2d.geo |
3520 | ../../bin/gmsh2triangle --2d ./src/box_2d.msh |
3521 | - ../../bin/fldecomp -n 2 box_2d |
3522 | |
3523 | clean: |
3524 | rm -f ./src/*.msh *.ele *.edge *.node *.halo *.face *.poly *vtu *.s *.stat *.log-* *.err-* matrixdump* |
3525 | rm -rf test_metric_advection_parallel_? |
3526 | + rm -rf *flredecomp* |
3527 | |
3528 | === modified file 'tests/test_metric_advection_parallel/test_metric_advection_parallel.xml' |
3529 | --- tests/test_metric_advection_parallel/test_metric_advection_parallel.xml 2012-07-18 11:26:25 +0000 |
3530 | +++ tests/test_metric_advection_parallel/test_metric_advection_parallel.xml 2012-11-24 15:51:21 +0000 |
3531 | @@ -4,7 +4,8 @@ |
3532 | <owner userid="pef"/> |
3533 | <tags>flml parallel 2dadapt</tags> |
3534 | <problem_definition length = "medium" nprocs = "1"> |
3535 | - <command_line>mpiexec -n 2 ../../bin/fluidity -v3 -l test_metric_advection_parallel.flml |
3536 | + <command_line>mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l test_metric_advection_parallel test_metric_advection_parallel_flredecomp && |
3537 | +mpiexec -n 2 ../../bin/fluidity -v3 -l test_metric_advection_parallel_flredecomp.flml |
3538 | </command_line> |
3539 | </problem_definition> |
3540 | <variables> |
3541 | |
3542 | === modified file 'tests/vb_parallel/Makefile' |
3543 | --- tests/vb_parallel/Makefile 2012-09-19 10:31:15 +0000 |
3544 | +++ tests/vb_parallel/Makefile 2012-11-24 15:51:21 +0000 |
3545 | @@ -1,7 +1,7 @@ |
3546 | input: default |
3547 | default: clean |
3548 | gmsh -2 -bin square.geo -o square.msh |
3549 | - fldecomp -m gmsh -n 2 square |
3550 | clean: |
3551 | rm -rf *.msh *.halo *.vtu *.pvtu *.log *.stat blob_? \ |
3552 | matrixdump matrixdump.info |
3553 | + rm -rf *flredecomp* |
3554 | |
3555 | === modified file 'tests/vb_parallel/vb_parallel.xml' |
3556 | --- tests/vb_parallel/vb_parallel.xml 2012-06-28 08:23:27 +0000 |
3557 | +++ tests/vb_parallel/vb_parallel.xml 2012-11-24 15:51:21 +0000 |
3558 | @@ -5,7 +5,8 @@ |
3559 | <owner userid="colin"/> |
3560 | <tags>flml parallel</tags> |
3561 | <problem_definition length="short" nprocs="1"> |
3562 | - <command_line>mpiexec -n 2 ../../bin/fluidity blob.flml; ../../bin/pvtu2vtu blob 1</command_line> |
3563 | + <command_line>mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l blob blob_flredecomp && |
3564 | +mpiexec -n 2 ../../bin/fluidity blob_flredecomp.flml; ../../bin/pvtu2vtu blob 1</command_line> |
3565 | </problem_definition> |
3566 | <variables> |
3567 | <variable name="solvers_converged" language="python"> |
3568 | |
3569 | === modified file 'tests/viscosity_2d_p0_parallel/Makefile' |
3570 | --- tests/viscosity_2d_p0_parallel/Makefile 2012-06-28 08:23:27 +0000 |
3571 | +++ tests/viscosity_2d_p0_parallel/Makefile 2012-11-24 15:51:21 +0000 |
3572 | @@ -1,8 +1,8 @@ |
3573 | input: clean |
3574 | ../../bin/gmsh2triangle --2d src/square.msh |
3575 | - ../../bin/fldecomp -n 2 square |
3576 | |
3577 | clean: |
3578 | rm -fr *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu \ |
3579 | fluidity.* *.s *.d.1 *.stat heat_* \ |
3580 | matrixdump matrixdump.info |
3581 | + rm -rf *flredecomp* |
3582 | |
3583 | === modified file 'tests/viscosity_2d_p0_parallel/viscosity_2d_p0_parallel.xml' |
3584 | --- tests/viscosity_2d_p0_parallel/viscosity_2d_p0_parallel.xml 2012-06-28 08:23:27 +0000 |
3585 | +++ tests/viscosity_2d_p0_parallel/viscosity_2d_p0_parallel.xml 2012-11-24 15:51:21 +0000 |
3586 | @@ -5,7 +5,8 @@ |
3587 | <owner userid="cwilson"/> |
3588 | <tags>flml parallel</tags> |
3589 | <problem_definition length="short" nprocs="1"> |
3590 | - <command_line>mpiexec -np 2 ../../bin/fluidity -v2 -l heat.flml </command_line> |
3591 | + <command_line>mpiexec -n 2 ../../bin/flredecomp -i 1 -o 2 -v -l heat heat_flredecomp && |
3592 | +mpiexec -np 2 ../../bin/fluidity -v2 -l heat_flredecomp.flml </command_line> |
3593 | <!-- Two dimensional diffusion only problem. --> |
3594 | </problem_definition> |
3595 | <variables> |
3596 | |
3597 | === modified file 'tests/viscosity_2d_p0_parallel_local_assembly/Makefile' |
3598 | --- tests/viscosity_2d_p0_parallel_local_assembly/Makefile 2012-09-19 10:31:15 +0000 |
3599 | +++ tests/viscosity_2d_p0_parallel_local_assembly/Makefile 2012-11-24 15:51:21 +0000 |
3600 | @@ -1,7 +1,6 @@ |
3601 | input: clean |
3602 | ../../bin/gmsh2triangle --2d src/square.msh |
3603 | - ../../bin/fldecomp -n 16 square |
3604 | |
3605 | clean: |
3606 | rm -rf *.ele *.edge *.node *.poly *.halo *.vtu *.pvtu fluidity.* *.s *.d.1 *.stat \ |
3607 | - matrixdump matrixdump.info heat_* |
3608 | + matrixdump matrixdump.info heat_* *flredecomp* |
3609 | |
3610 | === modified file 'tests/viscosity_2d_p0_parallel_local_assembly/viscosity_2d_p0_parallel_local_assembly.xml' |
3611 | --- tests/viscosity_2d_p0_parallel_local_assembly/viscosity_2d_p0_parallel_local_assembly.xml 2012-06-28 08:23:27 +0000 |
3612 | +++ tests/viscosity_2d_p0_parallel_local_assembly/viscosity_2d_p0_parallel_local_assembly.xml 2012-11-24 15:51:21 +0000 |
3613 | @@ -6,7 +6,8 @@ |
3614 | <owner userid="wence"/> |
3615 | <tags>flml parallel</tags> |
3616 | <problem_definition length="short" nprocs="1"> |
3617 | - <command_line>mpiexec -np 16 ../../bin/fluidity -v2 -l heat.flml </command_line> |
3618 | + <command_line>mpiexec -n 16 ../../bin/flredecomp -i 1 -o 16 -v -l heat heat_flredecomp && |
3619 | +mpiexec -np 16 ../../bin/fluidity -v2 -l heat_flredecomp.flml </command_line> |
3620 | <!-- Two dimensional diffusion only problem. --> |
3621 | </problem_definition> |
3622 | <variables> |
3623 | |
3624 | === modified file 'tests/wetting_and_drying_balzano2_cg/Makefile' |
3625 | --- tests/wetting_and_drying_balzano2_cg/Makefile 2010-09-21 17:29:38 +0000 |
3626 | +++ tests/wetting_and_drying_balzano2_cg/Makefile 2012-11-24 15:51:21 +0000 |
3627 | @@ -2,7 +2,7 @@ |
3628 | fluidity -v5 balzano1_2plus1.flml &> output.txt |
3629 | |
3630 | input: clean |
3631 | - cd mesh; ./makemesh_parallel.sh |
3632 | + cd mesh; ./makemesh.sh |
3633 | |
3634 | clean: |
3635 | rm -f *.ele *.edge *.node *.poly *vtu *.s *.d.1 *.stat *.msh *.detectors matrixdump* *.pdf *.png *.dat |
3636 | |
3637 | === removed file 'tests/wetting_and_drying_balzano2_cg/mesh/makemesh_parallel.sh' |
3638 | --- tests/wetting_and_drying_balzano2_cg/mesh/makemesh_parallel.sh 2011-10-21 10:05:25 +0000 |
3639 | +++ tests/wetting_and_drying_balzano2_cg/mesh/makemesh_parallel.sh 1970-01-01 00:00:00 +0000 |
3640 | @@ -1,6 +0,0 @@ |
3641 | -#/bin/sh |
3642 | -rm mesh_connected_* |
3643 | -gmsh mesh_connected.geo -2 |
3644 | -../../../bin/gmsh2triangle mesh_connected.msh -2 |
3645 | -../../../bin/fldecomp -n 4 -m triangle mesh_connected |
3646 | - |
3647 | |
3648 | === modified file 'tests/wetting_and_drying_balzano3_cg_parallel/Makefile' |
3649 | --- tests/wetting_and_drying_balzano3_cg_parallel/Makefile 2011-10-27 22:51:21 +0000 |
3650 | +++ tests/wetting_and_drying_balzano3_cg_parallel/Makefile 2012-11-24 15:51:21 +0000 |
3651 | @@ -2,11 +2,12 @@ |
3652 | fluidity -v5 balzano1_2plus1.flml &> output.txt |
3653 | |
3654 | input: clean |
3655 | - cd mesh; ./makemesh_parallel.sh |
3656 | + cd mesh; ./makemesh.sh |
3657 | |
3658 | clean: |
3659 | rm -f *.ele *.edge *.node *.poly *vtu *.s *.d.1 *.stat *.msh *.detectors matrixdump* *.pdf *.png *.dat |
3660 | rm -rf balzano1_2plus1_? balzano1_2plus1_?? balzano1_2plus1_??? |
3661 | + rm -rf *flredecomp* |
3662 | cd mesh; rm -f *.ele *.edge *.node *.poly *.vtu *.s *.d.1 *.stat *.detectors matrixdump* *.halo |
3663 | config: |
3664 | diamond -s ../../tools/fluidity_options.rng balzano1_2plus1.flml |
3665 | |
3666 | === removed file 'tests/wetting_and_drying_balzano3_cg_parallel/mesh/makemesh_parallel.sh' |
3667 | --- tests/wetting_and_drying_balzano3_cg_parallel/mesh/makemesh_parallel.sh 2011-10-21 10:05:25 +0000 |
3668 | +++ tests/wetting_and_drying_balzano3_cg_parallel/mesh/makemesh_parallel.sh 1970-01-01 00:00:00 +0000 |
3669 | @@ -1,4 +0,0 @@ |
3670 | -#/bin/sh |
3671 | -../../../bin/gmsh2triangle mesh_connected.msh -2 |
3672 | -../../../bin/fldecomp -n 4 -m triangle mesh_connected |
3673 | - |
3674 | |
3675 | === modified file 'tests/wetting_and_drying_balzano3_cg_parallel/wetting_and_drying_balzano3_cg_parallel.xml' |
3676 | --- tests/wetting_and_drying_balzano3_cg_parallel/wetting_and_drying_balzano3_cg_parallel.xml 2012-06-28 08:23:27 +0000 |
3677 | +++ tests/wetting_and_drying_balzano3_cg_parallel/wetting_and_drying_balzano3_cg_parallel.xml 2012-11-24 15:51:21 +0000 |
3678 | @@ -4,7 +4,8 @@ |
3679 | <owner userid="sf1409"/> |
3680 | <tags> parallel </tags> |
3681 | <problem_definition length="medium" nprocs="1"> |
3682 | - <command_line>mpiexec -n 4 fluidity balzano1_2plus1.flml; ./plotfs_detec.py --file=balzano1_2plus1.detectors --save=fluidity</command_line> |
3683 | + <command_line>mpiexec -n 4 ../../bin/flredecomp -i 1 -o 4 -v -l balzano1_2plus1 balzano1_2plus1_flredecomp && |
3684 | +mpiexec -n 4 fluidity balzano1_2plus1_flredecomp.flml; ./plotfs_detec.py --file=balzano1_2plus1.detectors --save=fluidity</command_line> |
3685 | </problem_definition> |
3686 | <variables> |
3687 | <variable name="solvers_converged" language="python"> |
3688 | |
3689 | === modified file 'tools/Flredecomp.F90' |
3690 | --- tools/Flredecomp.F90 2012-11-18 11:22:44 +0000 |
3691 | +++ tools/Flredecomp.F90 2012-11-24 15:51:21 +0000 |
3692 | @@ -183,7 +183,7 @@ |
3693 | ! Output |
3694 | assert(associated(state)) |
3695 | call checkpoint_simulation(state, prefix = output_base, postfix = "", protect_simulation_name = .false., & |
3696 | - keep_initial_data=.true.) |
3697 | + keep_initial_data=.true., ignore_detectors=.true.) |
3698 | |
3699 | do i = 1, size(state) |
3700 | call deallocate(state(i)) |
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.