Merge lp:~wence/fluidity/fix-schema into lp:fluidity

Proposed by Lawrence Mitchell
Status: Merged
Merged at revision: 3555
Proposed branch: lp:~wence/fluidity/fix-schema
Merge into: lp:fluidity
Diff against target: 53 lines (+6/-4)
4 files modified
assemble/Adapt_State_Prescribed.F90 (+1/-1)
schemas/adaptivity_options.rnc (+1/-1)
schemas/adaptivity_options.rng (+3/-1)
tests/geostrophic_interpolation_gp/balanced.flml (+1/-1)
To merge this branch: bzr merge lp:~wence/fluidity/fix-schema
Reviewer Review Type Date Requested Status
Cian Wilson Approve
Review via email: mp+70414@code.launchpad.net

This proposal supersedes a proposal from 2011-07-22.

Description of the change

Fix up adaptivity_schema so it is valid relax-ng. Fixes lp:814667.

Cian originally approved, but the branch broke geostrophic_interpolation_gp. I've now fixed up the flml as well for the new format.

To post a comment you must log in.
Revision history for this message
Cian Wilson (cwilson) wrote : Posted in a previous version of this proposal

Looks good to me.

review: Approve
Revision history for this message
Patrick Farrell (pefarrell) wrote : Posted in a previous version of this proposal

a) With this change, does jing work?

b) Grep the flmls for which tests use prescribed adaptivity; do they still pass after this change?

Revision history for this message
Patrick Farrell (pefarrell) wrote : Posted in a previous version of this proposal

Oh, sorry, you said it fixes lp:814667.

Revision history for this message
Cian Wilson (cwilson) wrote : Posted in a previous version of this proposal

> a) With this change, does jing work?
>
> b) Grep the flmls for which tests use prescribed adaptivity; do they still
> pass after this change?

Good point...
geostrophic_interpolation_gp/balanced.flml
needs to be updated.

Revision history for this message
Lawrence Mitchell (wence) wrote : Posted in a previous version of this proposal

> a) With this change, does jing work?

fixes lp:814667, so yes, this does work

> b) Grep the flmls for which tests use prescribed adaptivity; do they still
> pass after this change?

Probably not, since I didn't do this. But now it is friday, so I will wait til monday

Revision history for this message
Lawrence Mitchell (wence) wrote : Posted in a previous version of this proposal

> > a) With this change, does jing work?
>
> fixes lp:814667, so yes, this does work
>
> > b) Grep the flmls for which tests use prescribed adaptivity; do they still
> > pass after this change?
>
> Probably not, since I didn't do this. But now it is friday, so I will wait
> til monday

I've now fixed up geostrophic_balanced_gp/balanced.flml in line with the schema change. All other prescribed_adaptivity elements in the tree don't use the from_file option.

Revision history for this message
Cian Wilson (cwilson) wrote :

Looks good. I've set up a buildbot branch at:
http://buildbot-ocean.ese.ic.ac.uk:8080/waterfall?show=x86_64-fix-schema-gcc4
just in case (as I missed the test cases last time).

Once that passes, then I've got no problems but I'm not sure what the current freeze policy is... this is a bug fix but not for any of the failing tests.

review: Approve
lp:~wence/fluidity/fix-schema updated
3551. By Jon Hill

Fix for the failing flredecomp test. Probably better ways to fix this long term, but this will suffice for now

3552. By Cian Wilson

Bugfix pointed out by hhiester. cv_stats were not parallel safe.

3553. By Tim Bond

Small bufix targetting bug:

   https://bugs.launchpad.net/fluidity/+bug/823966

swapping the order of the parmetis and zoltan checks in configure.in
to fix a linking bug using gcc 4.6 on oneiric.

3554. By Tim Bond

Reverting 3553; this fixes 4.6 but breaks Intel 10, and the latter is more
important to us at the moment.

3556. By Lawrence Mitchell

Update flml for geostrophic_interpolation_gp in light of new schema

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'assemble/Adapt_State_Prescribed.F90'
2--- assemble/Adapt_State_Prescribed.F90 2010-11-09 14:08:19 +0000
3+++ assemble/Adapt_State_Prescribed.F90 2011-08-11 10:04:22 +0000
4@@ -107,7 +107,7 @@
5 ewrite(2, *) "New mesh name: " // trim(mesh_name)
6
7 if(have_option(base_path // "/mesh/from_file")) then
8- call get_option(base_path // "/mesh/from_file/format", format)
9+ call get_option(base_path // "/mesh/from_file/format/name", format)
10 call get_option("/geometry/quadrature/degree", quad_degree)
11
12 new_positions = read_mesh_files(mesh_name, quad_degree = quad_degree)
13
14=== modified file 'schemas/adaptivity_options.rnc'
15--- schemas/adaptivity_options.rnc 2011-03-31 07:29:11 +0000
16+++ schemas/adaptivity_options.rnc 2011-08-11 10:04:22 +0000
17@@ -1186,7 +1186,7 @@
18 (
19 ## Input mesh file format.
20 element format {
21- "triangle",
22+ attribute name {"triangle"},
23 comment
24 }
25 ),
26
27=== modified file 'schemas/adaptivity_options.rng'
28--- schemas/adaptivity_options.rng 2011-03-31 07:29:11 +0000
29+++ schemas/adaptivity_options.rng 2011-08-11 10:04:22 +0000
30@@ -1404,7 +1404,9 @@
31 system state.</a:documentation>
32 <element name="format">
33 <a:documentation>Input mesh file format.</a:documentation>
34- <value>triangle</value>
35+ <attribute name="name">
36+ <value>triangle</value>
37+ </attribute>
38 <ref name="comment"/>
39 </element>
40 <ref name="comment"/>
41
42=== modified file 'tests/geostrophic_interpolation_gp/balanced.flml'
43--- tests/geostrophic_interpolation_gp/balanced.flml 2010-11-21 15:41:35 +0000
44+++ tests/geostrophic_interpolation_gp/balanced.flml 2011-08-11 10:04:22 +0000
45@@ -478,7 +478,7 @@
46 </python>
47 </name>
48 <from_file>
49- <format>triangle</format>
50+ <format name="triangle"/>
51 </from_file>
52 </mesh>
53 </prescribed_adaptivity>