Merge lp:~fluidity-core/fluidity/sediment_restructure into lp:~fluidity-core/fluidity/sediment

Proposed by Samuel Parkinson
Status: Merged
Merged at revision: 3415
Proposed branch: lp:~fluidity-core/fluidity/sediment_restructure
Merge into: lp:~fluidity-core/fluidity/sediment
Diff against target: 788642 lines
To merge this branch: bzr merge lp:~fluidity-core/fluidity/sediment_restructure
Reviewer Review Type Date Requested Status
Jon Hill Approve
Review via email: mp+80584@code.launchpad.net

Description of the change

Restructure to match blueprint. Also added some additional error checks and edited the manual a little to reflect these changes.

To post a comment you must log in.
3421. By Samuel Parkinson

added some deallocate commands

3422. By Samuel Parkinson

Changed definition of sediment to include submerged specific gravity instead of density. This allows for any reference and ambient density of sediment and removes 1000's in sediment code.

Also started adapting erosion subroutine to allow for several erosion algorithms

3423. By Samuel Parkinson

partly added Garcia_1991 entrainment algorithm

3424. By Samuel Parkinson

fixed bugs in reentrainment and also some bugs in k-epsilon scalar field diffusivity paths - still doesn't work

3425. By Samuel Parkinson

merge with trunk

3426. By Samuel Parkinson

Changed k-epsilon so that it initialises eddy_viscosity properly from kk and keps at start of simulation

Changed main/Fluids.F90 so that this is done before the initial dump to vtu files

Removed references to Prandtl number in Populate_State as they are not needed here

3427. By Samuel Parkinson

Added k-epsilon scalar field diffusivity diagnostic algorithm

3428. By Samuel Parkinson

moved k_epsilon init so that the initial diffusivities are calculated correctly

removed some print statements

3429. By Samuel Parkinson

First attempt at getting Garcia_1991 entrainmnet working
Added two diagnostic fields for d50 and standard deviation of bed sediment
Added interface for retrieving items from sediment fields
Added face_val_at_quad_tensor_dim_dim to face_val_at_quad interface
Removed unused k_epsilon code in populate state

3430. By Samuel Parkinson

merge with trunk

3431. By Samuel Parkinson

- changes to sediment interface in code to allow name and field of sediment field to be extracted using same interface as other items
- added ability to be able to provide an overriding viscosity to be used when calculating reentrainment
- revision of garcia entrainment fixing some bugs and including d50 value in algorithm (sitll need to include sd)
- added tests for garcia entrainment and also bedload calculation with diffusivity

3432. By Samuel Parkinson

rearranged and fixed bug in SedimentDiagnostics
fixed various bugs in reentrainment and reworked JHill reentrainment

3433. By Samuel Parkinson

Reentrainment now works for single sediment classes. Garcia still needs some work to have it working for multiple sediments. A working test has been created for reentrainment and a more challenging test for settling rate.

3434. By Samuel Parkinson

created diagnostic to calculate standard deviation of bed sediment diameters

3435. By Samuel Parkinson

merge with branch including remap_surface_to_field but then removed this change and approached it a different way which seems to work

3436. By Samuel Parkinson

calculation of standard deviation of bed sediment complete

3437. By Samuel Parkinson

now with reentrainment scaled by volume fraction

3438. By Samuel Parkinson

changed SedimentBedload to Bedload

3439. By Samuel Parkinson

removed k-epsilon changes

3440. By Samuel Parkinson

merge with k_epsilon_scalar_diffusivity branch

3441. By Samuel Parkinson

merge with revised k-epsilon scalar diffusivity branch

3442. By Samuel Parkinson

fixed two bugs, SedimentBedload split across two lines and viscosity field deallocation

3443. By Samuel Parkinson

removed vtu file from repository

Revision history for this message
Jon Hill (jon-hill) wrote :

Latest results look very encouraging and the coding standard is good, so merging this into the main sediment branch.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.bzrignore'
2--- .bzrignore 2011-04-15 16:18:30 +0000
3+++ .bzrignore 2011-11-30 17:31:28 +0000
4@@ -2,3 +2,4 @@
5 backward_facing_step_2d-high.flml
6 examples/backward_facing_step_2d/coarse
7 coarse
8+matrixdump
9
10=== modified file 'Makefile.in'
11--- Makefile.in 2011-10-21 13:38:04 +0000
12+++ Makefile.in 2011-11-30 17:31:28 +0000
13@@ -27,7 +27,16 @@
14 SHELL = @SHELL@
15
16 PACKAGE_NAME = @PACKAGE_NAME@
17-PACKAGE_VERSION = @PACKAGE_VERSION@
18+
19+# Ignore package version from autoconf. Instead, for packages
20+# FLUIDITY_VERSION is passed into ./configure and used here. If it is not
21+# set we obtain version information from bzr. Again, this is not done in
22+# configure to ensure the info is up-to-date after a "bzr up" without reconfiguring
23+ifeq ("@FLUIDITY_VERSION@","")
24+PACKAGE_VERSION = `bzr version-info --custom --template='{branch_nick}.{revno}'`
25+else
26+PACKAGE_VERSION = "@FLUIDITY_VERSION@"
27+endif
28
29 FLUIDITY = $(PACKAGE_NAME)
30
31@@ -40,6 +49,7 @@
32 # Follow: www.gnu.org/prep/standards/html_node/Directory-Variables.html
33 PACKAGE_NAME = @PACKAGE_NAME@
34 prefix = @prefix@
35+exec_prefix = @exec_prefix@
36 bindir = @bindir@
37 libdir = @libdir@
38 datadir = @datadir@
39@@ -62,6 +72,8 @@
40
41 LINKER = @LINKER@ @LDFLAGS@
42
43+FLLINKER = @FLLINKER@ @LDFLAGS@ $(FCFLAGS)
44+
45 LIBS = -L./lib -l$(FLUIDITY) @BLAS_LIBS@ @LIB_FEMDEM@ ./lib/libadaptivity.a \
46 ./lib/libvtkfortran.a ./lib/libspatialindex.a ./lib/libspud.a ./lib/libjudy.a \
47 @LIBS@
48@@ -75,8 +87,6 @@
49
50 EVAL = tools/silenteval.sh
51
52-VERSION = $(shell bzr revision-info)
53-
54 ifeq (@MBA2D@,yes)
55 LIBMBA2D = lib/libmba2d.a
56 endif
57@@ -109,7 +119,7 @@
58 sub_system: $(LIBMBA2D) $(LIBMBA3D) $(LIBALGENCAN) @LIB_FEMDEM@ \
59 lib/libadaptivity.a lib/libvtkfortran.a lib/libspatialindex.a \
60 lib/libspud.a lib/libjudy.a include/version.h
61-
62+
63 lib/libjudy.a:
64 @echo ' MKDIR lib'; mkdir -p lib
65 @cd libjudy; echo ' MAKE libjudy'; $(MAKE) > make.log ; $(MAKE) install >> make.log ; cd ..
66@@ -143,7 +153,7 @@
67 ifeq (@SPUD_ONLY@,yes)
68 @cd libspud; echo ' MAKE libspud'; $(MAKE) ; $(MAKE) install-libspud
69 else
70- @cd libspud; echo ' MAKE libspud'; $(MAKE) ; $(MAKE) install; cd ..; cp lib*/python*/site-packages/libspud.so python/
71+ @cd libspud; echo ' MAKE libspud'; $(MAKE) ; $(MAKE) install-libspud; cd python; python setup.py build; cd ../..; cp libspud/python/build/lib*/libspud.so python/
72 endif
73
74 libfemtools: sub_system
75@@ -190,8 +200,8 @@
76 @echo " MKDIR bin"
77 @mkdir -p bin
78 @echo " LD shallow_water"
79- @$(EVAL) $(LINKER) -o bin/hybridized_helmholtz_solver main/Hybridized_Helmholtz_Solver.o $(LIBS)
80- @$(EVAL) $(LINKER) -o bin/shallow_water main/Shallow_Water.o $(LIBS)
81+ @$(EVAL) $(FLLINKER) -o bin/hybridized_helmholtz_solver main/Hybridized_Helmholtz_Solver.o $(LIBS)
82+ @$(EVAL) $(FLLINKER) -o bin/shallow_water main/Shallow_Water.o $(LIBS)
83
84 bin/hybridized_helmholtz_solver: fluidity_library main/Hybridized_Helmholtz_Solver.F90
85 @cd main; $(MAKE) Hybridized_Helmholtz_Solver.o
86@@ -199,7 +209,7 @@
87 @echo " MKDIR bin"
88 @mkdir -p bin
89 @echo " LD hybridized_helmholtz_solver"
90- @$(EVAL) $(LINKER) -o bin/hybridized_helmholtz_solver main/Hybridized_Helmholtz_Solver.o $(LIBS)
91+ @$(EVAL) $(FLLINKER) -o bin/hybridized_helmholtz_solver main/Hybridized_Helmholtz_Solver.o $(LIBS)
92
93 bin/burgers_equation: fluidity_library main/Burgers_Equation.F90
94 @cd main; $(MAKE) Burgers_Equation.o
95@@ -395,6 +405,9 @@
96 @cd horizontal_adaptivity/tests; $(MAKE) clean
97 @echo " CLEAN tools"
98 @cd tools; $(MAKE) clean
99+ @echo " CLEAN adjoint"
100+ @cd adjoint; $(MAKE) clean
101+ @cd adjoint/tests; $(MAKE) clean
102 @echo " CLEAN bathymetry"
103 @cd bathymetry; $(MAKE) clean
104 @echo " CLEAN ocean_forcing"
105@@ -416,7 +429,7 @@
106 @cd main; $(MAKE) clean
107 @rm -fr bin/* lib
108
109-clean: clean-light clean-test python_clean
110+clean: clean-light clean-test python_clean clean-debian
111 @echo " CLEAN libvtkfortran"
112 @cd libvtkfortran; $(MAKE) clean
113 @echo " CLEAN libjudy"
114@@ -433,17 +446,24 @@
115 @cd libalgencan; $(MAKE) clean
116 @echo " CLEAN libwm"
117 @cd libwm; $(MAKE) clean
118+ @echo " CLEAN manual"
119+ @cd manual; $(MAKE) clean
120 @CLEAN_LIBADAPT@
121 @rm -fr include/*.mod *.cache core *.o config.status
122 @find ./ \( -name work.pc \) -exec rm {} \;
123 @find ./ \( -name work.pcl \) -exec rm {} \;
124
125+clean-debian:
126+ @echo " CLEAN debian"
127+ @cd debian; rm -rf files tmp fluidity python-fluidity *.substvars *.debhelper*
128+
129 clean-test:
130 @echo " CLEAN tests"
131- @cd tests; ../tools/testharness.py --clean >/dev/null
132+ @cd tests; PYTHONPATH=../python ../tools/testharness.py --clean >/dev/null
133+ @cd tests/data; $(MAKE) clean
134
135 distclean: clean
136- @echo " DISTCLEAN"
137+ @echo " DISTCLEAN"
138 @cd spatialindex-1.5 ; make distclean > /dev/null ; rm -rf \
139 make.log regressiontest/mvrtree/.deps \
140 regressiontest/rtree/.deps regressiontest/tprtree/.deps > \
141@@ -473,7 +493,7 @@
142 include/spatialindex include/spud include/spud.h \
143 include/spud_enums.h include/tinystr.h include/tinyxml.h \
144 include/version.h include/vtk.h \
145- preprocessor/check_options.F90 \
146+ preprocessor/check_options.F90 schemas/flml \
147 preprocessor/register_diagnostics.F90 python/setup.py > \
148 /dev/null
149 @for i in `find ./*/ -name Makefile.in`; do rm -f `echo $$i | sed 's/.in$$//'`; done > /dev/null
150@@ -482,7 +502,7 @@
151
152 test: fltools bin/$(FLUIDITY) bin/shallow_water serialtest bin/burgers_equation
153
154-serialtest:
155+serialtest: fltools bin/$(FLUIDITY) bin/shallow_water
156 ifeq (@MBA2D@,yes)
157 ifeq (@ZOLTAN@,yes)
158 @cd tests; ../bin/testharness -l short -p serial -e nozoltan -n $(THREADS)
159@@ -497,7 +517,7 @@
160 endif
161 endif
162
163-mediumtest: bin/burgers_equation
164+mediumtest: fltools bin/$(FLUIDITY) manual bin/burgers_equation
165 @cd tests; ../bin/testharness -l medium $(EXCLUDE_TAGS) -n $(THREADS)
166
167 mediumzoltantest:
168@@ -599,7 +619,18 @@
169 $(MAKE) clean-light
170 @echo " Congratulations, make makefiles succeeded!"
171
172-install:
173- @mkdir -p $(DESTDIR)$(bindir)
174+install: default fltools bin/shallow_water bin/burgers_equation
175+ @mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(docdir)/fluidity
176 cp bin/* $(DESTDIR)$(bindir)
177- cd python ; python setup.py install --root="${DESTDIR}" --prefix="$(prefix)"
178+ rm -f $(DESTDIR)$(bindir)/spud-* $(DESTDIR)$(bindir)/diamond $(DESTDIR)$(bindir)/silenteval $(DESTDIR)$(bindir)/runut
179+ [ -f manual/fluidity_manual.pdf ] && cp manual/fluidity_manual.pdf $(DESTDIR)$(docdir)/fluidity || true
180+ mkdir -p $(DESTDIR)$(datadir)/fluidity
181+ cp -r schemas/ $(DESTDIR)$(datadir)/fluidity/
182+ mkdir -p $(DESTDIR)$(datadir)/diamond/schemata
183+ cp schemas/flml $(DESTDIR)$(datadir)/diamond/schemata
184+ cd python ; python setup.py install --root="${DESTDIR}" --prefix="$(prefix)" $$FLUIDITY_PYTHON_INSTALL_ARGS
185+ cp -r examples/ $(DESTDIR)$(docdir)/fluidity
186+ find $(DESTDIR)$(docdir)/fluidity/examples -type f -exec sed -i "s/\.\.\/\.\.\/\.\.\/bin\///" '{}' \;
187+ find $(DESTDIR)$(docdir)/fluidity/examples -type f -exec sed -i "s/\.\.\/\.\.\/bin\///" '{}' \;
188+ tar -czvf $(DESTDIR)$(docdir)/fluidity/examples.tar.gz $(DESTDIR)$(docdir)/fluidity/examples/
189+ rm -rf $(DESTDIR)$(docdir)/fluidity/examples/
190
191=== modified file 'aclocal.m4'
192--- aclocal.m4 2011-10-03 17:24:46 +0000
193+++ aclocal.m4 2011-11-30 17:31:28 +0000
194@@ -500,7 +500,11 @@
195 PetscInt i,j,II,JJ,m,n,its
196 PetscInt Istart,Iend,ione
197 PetscErrorCode ierr
198+#if PETSC_VERSION_MINOR==2
199+ PetscBool flg
200+#else
201 PetscTruth flg
202+#endif
203 PetscScalar v,one,neg_one
204 Vec x,b,u
205 Mat A
206
207=== modified file 'assemble/Biology.F90'
208--- assemble/Biology.F90 2011-10-19 17:55:20 +0000
209+++ assemble/Biology.F90 2011-11-30 17:31:28 +0000
210@@ -39,6 +39,9 @@
211 use solvers
212 use python_state
213 use sparsity_patterns_meshes
214+ use fefields
215+ use field_options
216+
217 implicit none
218
219 private
220@@ -66,6 +69,14 @@
221 type(state_type), intent(inout) :: state
222
223 character(len=OPTION_PATH_LEN) :: prefix, algorithm
224+ ! This is the photosynthetic radiation projected onto the
225+ ! same mesh as the biology fields
226+ ! It also takes into account the "active" part of the solar radiation
227+ type(scalar_field) :: par_bio
228+ ! we use the phytoplankton as the "bio" mesh
229+ type(scalar_field), pointer :: phytoplankton, PhotosyntheticRadiation
230+ type(vector_field) :: coords
231+ integer :: stat
232
233 call backup_source_terms(state)
234
235@@ -91,6 +102,24 @@
236 ! Calculate the light field at every point.
237 call solve_light_equation(state, prefix)
238
239+ par_bio = extract_scalar_field(state, "_PAR", stat)
240+ phytoplankton => extract_scalar_field(state, "Phytoplankton")
241+ if (stat /= 0) then
242+ ! field does not yet exist: create it
243+ call allocate(par_bio,phytoplankton%mesh, name="_PAR")
244+ call zero(par_bio)
245+ call insert(state, par_bio, par_bio%name)
246+ call deallocate(par_bio)
247+ par_bio = extract_scalar_field(state, "_PAR", stat)
248+ end if
249+ PhotosyntheticRadiation => extract_scalar_field(state, "PhotosyntheticRadiation")
250+ coords = get_coordinate_field(state, par_bio%mesh)
251+ ! project the Photosynthetic radaition field onto the _PAR field
252+ call project_field(PhotosyntheticRadiation, par_bio, coords)
253+ ! scale it to get the active part
254+ call scale(par_bio, 0.43)
255+ call deallocate(coords)
256+
257 ! Calculate the sources and sinks at every point.
258 call calculate_biology_from_python(state, prefix, algorithm)
259
260@@ -210,13 +239,9 @@
261 g=extract_vector_field(state, "GravityDirection")
262 light=extract_scalar_field(state, "PhotosyntheticRadiation")
263 P=extract_scalar_field(state, "Phytoplankton")
264-
265- if(continuity(light)<0) then
266- ! could be cleverer with this and check if diffusion is assembled
267- sparsity=>get_csr_sparsity_secondorder(state, light%mesh, light%mesh)
268- else
269- sparsity=>get_csr_sparsity_firstorder(state, light%mesh, light%mesh)
270- end if
271+
272+ ! Only need first order sparsity as we have no diffusion
273+ sparsity=>get_csr_sparsity_firstorder(state, light%mesh, light%mesh)
274
275 call get_option(trim(light%option_path)//&
276 "/prognostic/absorption_coefficients/water", k_w)
277@@ -369,23 +394,22 @@
278 ! External face.
279 face_2=face
280 end if
281-
282- call construct_light_interface(ele, ele_2, face, face_2, ni,&
283+
284+ call construct_light_interface(face, face_2,&
285 & light_mat, rhs, X, g, light, &
286 & bc_value, bc_type)
287-
288 end do neighbourloop
289
290 end subroutine construct_light_element
291
292- subroutine construct_light_interface(ele, ele_2, face, face_2, ni,&
293+ subroutine construct_light_interface(face, face_2,&
294 & light_mat, rhs, X, g, light, bc_value, bc_type)
295 !!< Construct the element boundary integrals on the ni-th face of
296 !!< element ele. For continuous discretisation, this is only boundary
297 !!< faces. For DG it's all of them.
298 implicit none
299
300- integer, intent(in) :: ele, ele_2, face, face_2, ni
301+ integer, intent(in) :: face, face_2
302 type(csr_matrix), intent(inout) :: light_mat
303 type(scalar_field), intent(inout) :: rhs
304 ! We pass these additional fields to save on state lookups.
305@@ -399,7 +423,7 @@
306
307 ! Face objects and numberings.
308 type(element_type), pointer ::l_shape, l_shape_2
309- integer, dimension(face_loc(light,face)) :: l_face, l_face_l
310+ integer, dimension(face_loc(light,face)) :: l_face
311 integer, dimension(face_loc(light,face_2)) :: l_face_2
312
313 ! Note that both sides of the face can be assumed to have the same
314@@ -428,7 +452,7 @@
315 ! Boundary nodes have both faces the same.
316 boundary=(face==face_2)
317 dirichlet=.false.
318- if (boundary) then
319+ if (boundary .and. face < size(bc_type)) then
320 if (bc_type(face)==BCTYPE_WEAKDIRICHLET) then
321 dirichlet=.true.
322 end if
323
324=== modified file 'assemble/Diagnostic_fields_wrapper.F90'
325--- assemble/Diagnostic_fields_wrapper.F90 2011-09-20 12:26:59 +0000
326+++ assemble/Diagnostic_fields_wrapper.F90 2011-11-30 17:31:28 +0000
327@@ -544,8 +544,11 @@
328
329 ! Start of sediment diagnostics.
330 if (have_option("/material_phase[0]/sediment")) then
331- call calculate_sinking_velocity(state(i))
332+ call calculate_sediment_sinking_velocity(state(i))
333 call calculate_sediment_flux(state(i))
334+ call calculate_sediment_active_layer_d50(state(i))
335+ call calculate_sediment_active_layer_sigma(state(i))
336+ call calculate_sediment_active_layer_volume_fractions(state(i))
337 end if
338 ! End of sediment diagnostics.
339
340
341=== modified file 'assemble/Divergence_Matrix_CV.F90'
342--- assemble/Divergence_Matrix_CV.F90 2011-09-16 21:18:56 +0000
343+++ assemble/Divergence_Matrix_CV.F90 2011-11-30 17:31:28 +0000
344@@ -107,7 +107,7 @@
345 type(vector_field) :: field_bc
346
347 real, dimension(:,:,:), allocatable :: ct_mat_local, ct_mat_local_bdy
348- real, dimension(:), allocatable :: ct_rhs_local
349+ real, dimension(:,:), allocatable :: ct_rhs_local
350
351 logical :: l_get_ct
352
353@@ -316,7 +316,7 @@
354 allocate(field_nodes_bdy(field%mesh%faces%shape%loc))
355 allocate(test_nodes_bdy(test_mesh%faces%shape%loc))
356 allocate(ct_mat_local_bdy(x%dim, test_mesh%faces%shape%loc, field%mesh%faces%shape%loc), &
357- ct_rhs_local(test_mesh%faces%shape%loc))
358+ ct_rhs_local(x%dim, test_mesh%faces%shape%loc))
359
360 surface_element_loop: do sele = 1, surface_element_count(test_mesh)
361
362@@ -366,11 +366,11 @@
363 if((present(ct_rhs)).and.(field_bc_type(dim, sele)==BC_TYPE_WEAKDIRICHLET)) then
364
365 if(multiphase) then
366- ct_rhs_local(iloc) = ct_rhs_local(iloc) + &
367+ ct_rhs_local(dim, iloc) = ct_rhs_local(dim, iloc) - &
368 field_cvbdyshape%n(jloc,ggi)*detwei_bdy(ggi)*nvfrac_gi_f(ggi)*&
369 normal_bdy(dim,ggi)*field_bc_val(dim, jloc)
370 else
371- ct_rhs_local(iloc) = ct_rhs_local(iloc) + &
372+ ct_rhs_local(dim, iloc) = ct_rhs_local(dim, iloc) - &
373 field_cvbdyshape%n(jloc,ggi)*detwei_bdy(ggi)*normal_bdy(dim,ggi)*&
374 field_bc_val(dim, jloc)
375 end if
376@@ -403,7 +403,7 @@
377
378 if((present(ct_rhs)).and.(field_bc_type(dim, sele)==BC_TYPE_WEAKDIRICHLET)) then
379
380- call addto(ct_rhs, test_nodes_bdy, ct_rhs_local)
381+ call addto(ct_rhs, test_nodes_bdy, ct_rhs_local(dim,:))
382
383 elseif(l_get_ct) then
384
385
386=== modified file 'assemble/Full_Projection.F90'
387--- assemble/Full_Projection.F90 2011-04-06 15:37:23 +0000
388+++ assemble/Full_Projection.F90 2011-11-30 17:31:28 +0000
389@@ -44,8 +44,8 @@
390 use petsc_solve_state_module
391 use boundary_conditions_from_options
392
393-#ifdef HAVE_PETSC_MODULES
394 #include "petscversion.h"
395+#ifdef HAVE_PETSC_MODULES
396 use petsc
397 #if PETSC_VERSION_MINOR==0
398 use petscvec
399
400=== modified file 'assemble/LES_viscosity.F90'
401--- assemble/LES_viscosity.F90 2011-05-10 10:39:15 +0000
402+++ assemble/LES_viscosity.F90 2011-11-30 17:31:28 +0000
403@@ -54,17 +54,17 @@
404 ewrite(2,*) "Initialising optional dynamic LES diagnostic fields"
405 ! Filter width
406 if(have_filter_width) then
407- tensorfield => extract_tensor_field(state, "DynamicFilterWidth")
408+ tensorfield => extract_tensor_field(state, "FilterWidth")
409 call zero(tensorfield)
410 end if
411 ! Strain rate field S1
412 if(have_strain) then
413- tensorfield => extract_tensor_field(state, "DynamicStrainRate")
414+ tensorfield => extract_tensor_field(state, "StrainRate")
415 call zero(tensorfield)
416 end if
417 ! Filtered strain rate field S2
418 if(have_filtered_strain) then
419- tensorfield => extract_tensor_field(state, "DynamicFilteredStrainRate")
420+ tensorfield => extract_tensor_field(state, "FilteredStrainRate")
421 call zero(tensorfield)
422 end if
423 ! Eddy viscosity field m_ij
424@@ -98,31 +98,31 @@
425
426 ! Strain rate field S1
427 if(have_strain) then
428- tensorfield => extract_tensor_field(state, "DynamicStrainRate")
429+ tensorfield => extract_tensor_field(state, "StrainRate")
430 tensor_loc=shape_tensor_rhs(ele_shape(nu, ele), strain_gi, detwei)
431 call addto(tensorfield, ele_nodes(nu, ele), tensor_loc)
432 end if
433
434 ! Filtered strain rate field S2
435 if(have_filtered_strain) then
436- tensorfield => extract_tensor_field(state, "DynamicFilteredStrainRate")
437+ tensorfield => extract_tensor_field(state, "FilteredStrainRate")
438 tensor_loc=shape_tensor_rhs(ele_shape(nu, ele), t_strain_gi, detwei)
439 call addto(tensorfield, ele_nodes(nu, ele), tensor_loc)
440 end if
441
442 ! Filter width
443 if(have_filter_width) then
444- tensorfield => extract_tensor_field(state, "DynamicFilterWidth")
445+ tensorfield => extract_tensor_field(state, "FilterWidth")
446 tensor_loc=shape_tensor_rhs(ele_shape(nu, ele), mesh_size_gi, detwei)
447 call addto(tensorfield, ele_nodes(nu, ele), tensor_loc)
448 end if
449
450 end subroutine les_set_diagnostic_tensor_fields
451
452- subroutine leonard_tensor(mnu, positions, tnu, leonard, alpha, path)
453+ subroutine leonard_tensor(nu, positions, tnu, leonard, alpha, path)
454
455 ! Unfiltered velocity
456- type(vector_field), pointer :: mnu
457+ type(vector_field), pointer :: nu
458 type(vector_field), intent(in) :: positions
459 ! Filtered velocity
460 type(vector_field), pointer :: tnu
461@@ -140,31 +140,30 @@
462
463 ! Path is to level above solver options
464 lpath = (trim(path)//"/dynamic_les")
465- ewrite(2,*) "path: ", trim(lpath)
466- ewrite(2,*) "alpha: ", alpha
467+ ewrite(2,*) "filter factor alpha: ", alpha
468
469- ewrite_minmax(mnu)
470+ ewrite_minmax(nu)
471 ewrite_minmax(tnu)
472
473- call anisotropic_smooth_vector(mnu, positions, tnu, alpha, lpath)
474+ call anisotropic_smooth_vector(nu, positions, tnu, alpha, lpath)
475
476- ewrite_minmax(mnu)
477+ ewrite_minmax(nu)
478 ewrite_minmax(tnu)
479
480 ! Velocity products (ui*uj)
481 allocate(ui_uj); allocate(tui_tuj)
482- call allocate(ui_uj, mnu%mesh, "NonlinearVelocityProduct")
483- call allocate(tui_tuj, mnu%mesh, "TestNonlinearVelocityProduct")
484+ call allocate(ui_uj, nu%mesh, "NonlinearVelocityProduct")
485+ call allocate(tui_tuj, nu%mesh, "TestNonlinearVelocityProduct")
486 call zero(ui_uj); call zero(tui_tuj)
487
488 ! Other local variables
489- allocate(u_loc(mnu%dim)); allocate(t_loc(mnu%dim, mnu%dim))
490+ allocate(u_loc(nu%dim)); allocate(t_loc(nu%dim, nu%dim))
491 u_loc=0.0; t_loc=0.0
492
493 ! Get cross products of velocities
494- do i=1, node_count(mnu)
495+ do i=1, node_count(nu)
496 ! Mesh filter ^r
497- u_loc = node_val(mnu,i)
498+ u_loc = node_val(nu,i)
499 t_loc = outer_product(u_loc, u_loc)
500 call set( ui_uj, i, t_loc )
501 ! Test filter ^t
502
503=== modified file 'assemble/Makefile.dependencies'
504--- assemble/Makefile.dependencies 2011-10-19 13:24:47 +0000
505+++ assemble/Makefile.dependencies 2011-11-30 17:31:28 +0000
506@@ -131,11 +131,11 @@
507
508 Biology.o ../include/biology.mod: Biology.F90 \
509 ../include/boundary_conditions.mod ../include/fdebug.h \
510- ../include/fetools.mod ../include/fields.mod \
511- ../include/global_parameters.mod ../include/python_state.mod \
512- ../include/solvers.mod ../include/sparse_tools.mod \
513- ../include/sparsity_patterns_meshes.mod ../include/spud.mod \
514- ../include/state_module.mod
515+ ../include/fefields.mod ../include/fetools.mod ../include/field_options.mod \
516+ ../include/fields.mod ../include/global_parameters.mod \
517+ ../include/python_state.mod ../include/solvers.mod \
518+ ../include/sparse_tools.mod ../include/sparsity_patterns_meshes.mod \
519+ ../include/spud.mod ../include/state_module.mod
520
521 ../include/burgers_assembly.mod: Burgers_Assembly.o
522 @true
523
524=== modified file 'assemble/Momentum_CG.F90'
525--- assemble/Momentum_CG.F90 2011-10-19 13:53:05 +0000
526+++ assemble/Momentum_CG.F90 2011-11-30 17:31:28 +0000
527@@ -133,7 +133,7 @@
528
529 ! LES coefficients and options
530 real :: smagorinsky_coefficient
531- logical :: have_averaging, have_lilly, have_eddy_visc
532+ logical :: have_lilly, have_eddy_visc, backscatter
533 logical :: have_strain, have_filtered_strain, have_filter_width
534
535 ! Temperature dependent viscosity coefficients:
536@@ -235,9 +235,9 @@
537 ! For 4th order:
538 type(tensor_field):: grad_u
539 ! For Germano Dynamic LES:
540- type(vector_field), pointer :: nu_av, mnu, mnu_av, tnu, tnu_av
541- type(tensor_field), pointer :: leonard, leonard_av
542- real :: alpha, alpha2
543+ type(vector_field), pointer :: tnu
544+ type(tensor_field), pointer :: leonard
545+ real :: alpha
546
547 ! for temperature dependent viscosity :
548 type(scalar_field), pointer :: temperature
549@@ -387,90 +387,47 @@
550 smagorinsky_coefficient)
551 end if
552 if(dynamic_les) then
553- ! Are we using averaged velocity to stabilise the model? NOT WORKING
554- have_averaging = have_option(trim(les_option_path)//"/dynamic_les/enable_averaging")
555 ! Are we using the Lilly (1991) modification?
556 have_lilly = have_option(trim(les_option_path)//"/dynamic_les/enable_lilly")
557- ! Get optional diagnostic fields
558+
559+ ! Whether or not to allow backscatter (negative eddy viscosity)
560+ backscatter = have_option(trim(les_option_path)//"/dynamic_les/enable_backscatter")
561+
562+ ! Initialise optional diagnostic fields
563 have_eddy_visc = have_option(trim(les_option_path)//"/dynamic_les/tensor_field::EddyViscosity")
564- have_strain = have_option(trim(les_option_path)//"/dynamic_les/tensor_field::DynamicStrainRate")
565- have_filtered_strain = have_option(trim(les_option_path)//"/dynamic_les/tensor_field::DynamicFilteredStrainRate")
566- have_filter_width = have_option(trim(les_option_path)//"/dynamic_les/tensor_field::DynamicFilterWidth")
567+ have_strain = have_option(trim(les_option_path)//"/dynamic_les/tensor_field::StrainRate")
568+ have_filtered_strain = have_option(trim(les_option_path)//"/dynamic_les/tensor_field::FilteredStrainRate")
569+ have_filter_width = have_option(trim(les_option_path)//"/dynamic_les/tensor_field::FilterWidth")
570+ call les_init_diagnostic_tensor_fields(state, have_eddy_visc, have_strain, have_filtered_strain, have_filter_width)
571
572 ! Initialise necessary local fields.
573 ewrite(2,*) "Initialising compulsory dynamic LES fields"
574- allocate(mnu); allocate(tnu); allocate(leonard)
575- call allocate(mnu, u%dim, u%mesh, "DynamicVelocity")
576- call allocate(tnu, u%dim, u%mesh, "DynamicFilteredVelocity")
577- call allocate(leonard, u%mesh, "DynamicLeonardTensor")
578- call zero(mnu); call zero(tnu); call zero(leonard)
579-
580- ! Initialise optional diagnostic fields.
581- call les_init_diagnostic_tensor_fields(state, have_eddy_visc, have_strain, have_filtered_strain, have_filter_width)
582-
583- ! Use time-averaged quantities. EXPERIMENTAL - DOES NOT WORK.
584- if(have_averaging) then
585- ewrite(2,*) "Initialising dynamic LES averaged fields"
586- ! Test-filtered velocity field
587- allocate(mnu_av); allocate(tnu_av); allocate(leonard_av)
588- call allocate(mnu_av, u%dim, u%mesh, "DynamicAverageVelocity")
589- call allocate(tnu_av, u%dim, u%mesh, "DynamicFilteredAverageVelocity")
590- call allocate(leonard_av, u%mesh, "DynamicAverageLeonardTensor")
591- call zero(mnu_av); call zero(tnu_av); call zero(leonard_av)
592-
593- ! Averaged velocity field
594- ewrite(2,*) "Calculating averaged velocity"
595- !nu_av => vector_source_field(state, u)
596- !call calculate_time_averaged_vector(state, nu_av)
597- else
598- nu_av => dummyvector
599- end if
600-
601- ! Are we filtering the velocity field to stabilise the model?
602- call get_option(trim(les_option_path)//"/dynamic_les/stabilisation_parameter", alpha2, default=0.0)
603- if(alpha2 > 0.0) then
604- ! Calculate mesh-filtered velocity
605- ewrite(2,*) "Calculating mesh-filtered velocity from Velocity (not NonlinearVelocity)"
606- call anisotropic_smooth_vector(u, x, mnu, alpha2, trim(les_option_path)//"/dynamic_les")
607- ! If averaging, we need to smooth the averaged velocity too!
608- if(have_averaging) then
609- call anisotropic_smooth_vector(nu_av, x, mnu_av, alpha2, trim(les_option_path)//"/dynamic_les")
610- else
611- mnu_av => dummyvector
612- end if
613- else if(alpha2==0.0) then
614- ! Point the dynamic velocity field at the Velocity field because we're not filtering it.
615- call set(mnu, u)
616- if(have_averaging) then
617- call set(mnu_av, nu_av)
618- else
619- mnu_av => dummyvector
620- end if
621- else
622- FLAbort("Incorrect value for dynamic LES stabilisation parameter.")
623- end if
624-
625- ! Get (test filter)/(mesh filter) size ratio alpha
626+ if(have_option(trim(les_option_path)//"/dynamic_les/vector_field::FilteredVelocity")) then
627+ tnu => extract_vector_field(state, "FilteredVelocity")
628+ else
629+ allocate(tnu)
630+ call allocate(tnu, u%dim, u%mesh, "FilteredVelocity")
631+ end if
632+ call zero(tnu)
633+ allocate(leonard)
634+ call allocate(leonard, u%mesh, "LeonardTensor")
635+ call zero(leonard)
636+
637+ ! Get (test filter)/(mesh filter) size ratio alpha. Default value is 2.
638 call get_option(trim(les_option_path)//"/dynamic_les/alpha", alpha, default=2.0)
639
640 ! Calculate test-filtered velocity field and Leonard tensor field.
641 ewrite(2,*) "Calculating test-filtered velocity and Leonard tensor"
642- call leonard_tensor(mnu, x, tnu, leonard, alpha, les_option_path)
643- if(have_averaging) then
644- call leonard_tensor(mnu_av, x, tnu_av, leonard_av, alpha, les_option_path)
645- else
646- tnu_av => dummyvector; leonard_av => dummytensor
647- end if
648+ call leonard_tensor(nu, x, tnu, leonard, alpha, les_option_path)
649
650 ewrite_minmax(leonard)
651 else
652- have_averaging=.false.; have_lilly=.false.; have_eddy_visc=.false.
653+ have_lilly=.false.; have_eddy_visc=.false.; backscatter=.false.
654 have_strain=.false.; have_filtered_strain=.false.; have_filter_width=.false.
655 end if
656 else
657 les_second_order=.false.; les_fourth_order=.false.; wale=.false.; dynamic_les=.false.
658- tnu => dummyvector; mnu => dummyvector; nu_av => dummyvector; tnu_av => dummyvector; mnu_av => dummyvector
659- leonard => dummytensor; leonard_av => dummytensor
660+ tnu => dummyvector; leonard => dummytensor
661 end if
662
663
664@@ -670,7 +627,7 @@
665 density, p, &
666 source, absorption, buoyancy, gravity, &
667 viscosity, grad_u, &
668- mnu, tnu, leonard, alpha, &
669+ tnu, leonard, alpha, &
670 gp, surfacetension, &
671 assemble_ct_matrix_here, on_sphere, depth, &
672 alpha_u_field, abs_wd, temperature, nvfrac)
673@@ -835,14 +792,10 @@
674 end if
675
676 if (dynamic_les) then
677- call deallocate(mnu); deallocate(mnu)
678- call deallocate(tnu); deallocate(tnu)
679+ if(.not. have_option(trim(les_option_path)//"/dynamic_les/vector_field::FilteredVelocity")) then
680+ call deallocate(tnu); deallocate(tnu)
681+ end if
682 call deallocate(leonard); deallocate(leonard)
683- if (have_averaging) then
684- call deallocate(mnu_av); deallocate(mnu_av)
685- call deallocate(tnu_av); deallocate(tnu_av)
686- call deallocate(leonard_av); deallocate(leonard_av)
687- end if
688 end if
689
690 call deallocate(dummytensor)
691@@ -1113,7 +1066,7 @@
692 density, p, &
693 source, absorption, buoyancy, gravity, &
694 viscosity, grad_u, &
695- mnu, tnu, leonard, alpha, &
696+ tnu, leonard, alpha, &
697 gp, surfacetension, &
698 assemble_ct_matrix_here, on_sphere, depth, &
699 alpha_u_field, abs_wd, temperature, nvfrac)
700@@ -1143,7 +1096,7 @@
701 type(tensor_field), intent(in) :: viscosity, grad_u
702
703 ! Fields for Germano Dynamic LES Model
704- type(vector_field), intent(in) :: mnu, tnu
705+ type(vector_field), intent(in) :: tnu
706 type(tensor_field), intent(in) :: leonard
707 real, intent(in) :: alpha
708
709@@ -1341,7 +1294,7 @@
710 ! Viscous terms
711 if(have_viscosity .or. have_les) then
712 call add_viscosity_element_cg(state, ele, test_function, u, oldu_val, nu, x, viscosity, grad_u, &
713- mnu, tnu, leonard, alpha, &
714+ tnu, leonard, alpha, &
715 du_t, detwei, big_m_tensor_addto, rhs_addto, temperature, nvfrac)
716 end if
717
718@@ -1956,7 +1909,7 @@
719 end subroutine add_absorption_element_cg
720
721 subroutine add_viscosity_element_cg(state, ele, test_function, u, oldu_val, nu, x, viscosity, grad_u, &
722- mnu, tnu, leonard, alpha, &
723+ tnu, leonard, alpha, &
724 du_t, detwei, big_m_tensor_addto, rhs_addto, temperature, nvfrac)
725 type(state_type), intent(inout) :: state
726 integer, intent(in) :: ele
727@@ -1968,7 +1921,7 @@
728 type(tensor_field), intent(in) :: grad_u
729
730 ! Fields for Germano Dynamic LES Model
731- type(vector_field), intent(in) :: mnu, tnu
732+ type(vector_field), intent(in) :: tnu
733 type(tensor_field), intent(in) :: leonard
734 real, intent(in) :: alpha
735
736@@ -1977,8 +1930,8 @@
737 real, dimension(x%dim, x%dim, ele_ngi(u,ele)) :: strain_gi, t_strain_gi
738 real, dimension(x%dim, x%dim, ele_ngi(u,ele)) :: mesh_size_gi, leonard_gi
739 real, dimension(ele_ngi(u, ele)) :: strain_mod, t_strain_mod
740- type(element_type) :: shape_mnu
741- integer, dimension(:), pointer :: nodes_mnu
742+ type(element_type) :: shape_nu
743+ integer, dimension(:), pointer :: nodes_nu
744
745 ! Temperature dependent viscosity:
746 type(scalar_field), intent(in) :: temperature
747@@ -2064,21 +2017,20 @@
748 end do
749 ! Germano dynamic model
750 else if (dynamic_les) then
751- shape_mnu = ele_shape(mnu, ele)
752- nodes_mnu => ele_nodes(mnu, ele)
753+ shape_nu = ele_shape(nu, ele)
754+ nodes_nu => ele_nodes(nu, ele)
755 les_tensor_gi=0.0
756
757 ! Get strain S1 for unfiltered velocity (dim,dim,ngi)
758- strain_gi = les_strain_rate(du_t, ele_val(mnu, ele))
759+ strain_gi = les_strain_rate(du_t, ele_val(nu, ele))
760 ! Get strain S2 for test-filtered velocity (dim,dim,ngi)
761 t_strain_gi = les_strain_rate(du_t, ele_val(tnu, ele))
762-
763 ! Filter width G1 associated with mesh size (units length^2)
764- mesh_size_gi = length_scale_tensor(du_t, shape_mnu)
765+ mesh_size_gi = length_scale_tensor(du_t, ele_shape(u, ele))
766 ! Leonard tensor L at gi
767 leonard_gi =ele_val_at_quad(leonard, ele)
768
769- do gi=1, ele_ngi(mnu, ele)
770+ do gi=1, ele_ngi(nu, ele)
771 ! Get strain modulus |S1| for unfiltered velocity (ngi)
772 strain_mod(gi) = sqrt( 2*sum(strain_gi(:,:,gi)*strain_gi(:,:,gi) ) )
773 ! Get strain modulus |S2| for test-filtered velocity (ngi)
774@@ -2092,42 +2044,52 @@
775 else
776 ! Choose original Germano model or Lilly's (1991) modification from options
777 if(.not. have_lilly) then
778- do gi=1, ele_ngi(mnu, ele)
779- ! L.S1
780- numerator = sum( leonard_gi(:,:,gi)*strain_gi(:,:,gi) )
781+ do gi=1, ele_ngi(nu, ele)
782+ ! |S1|*L.S1
783+ numerator = sum( leonard_gi(:,:,gi)*strain_gi(:,:,gi) )*strain_mod(gi)
784+
785 ! alpha^2*|S2|*S2.S1
786- ! This term is WRONG until I find a way of filtering the strain rate product.
787- denominator = -2*alpha**2*t_strain_mod(gi)*sum(t_strain_gi(:,:,gi)*strain_gi(:,:,gi))
788- ! Dynamic eddy viscosity m_ij
789- ! N.B. If averaging, beware of operator not applying to every term.
790- les_tensor_gi(:,:,gi) = numerator/denominator*strain_mod(gi)
791-
792- ! Artificial but it works!
793+ ! This term is WRONG until I find a way of filtering the strain rate product. The difference may be quite small though.
794+ denominator = -alpha**2*t_strain_mod(gi)*sum(t_strain_gi(:,:,gi)*strain_gi(:,:,gi))
795+
796+ ! Dynamic eddy viscosity m_ij = C*S1
797+ les_tensor_gi(:,:,gi) = numerator/denominator
798+
799+ ! Whether or not to allow negative eddy viscosity (backscattering)
800+ ! but do not allow (viscosity+eddy_viscosity) < 0.
801 if(any(les_tensor_gi(:,:,gi) < 0.0)) then
802- les_tensor_gi(:,:,gi) = max(les_tensor_gi(:,:,gi),0.0)
803+ if(backscatter) then
804+ les_tensor_gi(:,:,gi) = max(les_tensor_gi(:,:,gi), epsilon(0.0) - viscosity_gi(:,:,gi))
805+ else
806+ les_tensor_gi(:,:,gi) = max(les_tensor_gi(:,:,gi),0.0)
807+ end if
808 end if
809 end do
810 else if(have_lilly) then
811- do gi=1, ele_ngi(mnu, ele)
812+ do gi=1, ele_ngi(nu, ele)
813 ! |S1|*L.S1
814- numerator = t_strain_mod(gi)*sum(leonard_gi(:,:,gi)*t_strain_gi(:,:,gi))
815+ numerator = sum(leonard_gi(:,:,gi)*t_strain_gi(:,:,gi))*strain_mod(gi)
816 ! alpha^2*|S2|^2*S2.S2
817- ! This term is WRONG until I find a way of filtering the strain rate product.
818- denominator = -2*alpha**2*(t_strain_mod(gi))**2*sum(t_strain_gi(:,:,gi)*t_strain_gi(:,:,gi))
819+ ! This term is WRONG until I find a way of filtering the strain rate product. The difference may be quite small though.
820+ denominator = -alpha**2*(t_strain_mod(gi))**2*sum(t_strain_gi(:,:,gi)*t_strain_gi(:,:,gi))
821 ! Dynamic eddy viscosity m_ij
822- ! N.B. If averaging, beware of operator not applying to every term.
823- les_tensor_gi(:,:,gi) = numerator/denominator*strain_mod(gi)
824+ les_tensor_gi(:,:,gi) = numerator/denominator
825
826- ! Artificial but it works!
827+ ! Whether or not to allow negative eddy viscosity (backscattering)
828+ ! but do not allow (viscosity+eddy_viscosity) < 0.
829 if(any(les_tensor_gi(:,:,gi) < 0.0)) then
830- les_tensor_gi(:,:,gi) = max(les_tensor_gi(:,:,gi),0.0)
831+ if(backscatter) then
832+ les_tensor_gi(:,:,gi) = max(les_tensor_gi(:,:,gi), epsilon(0.0) - viscosity_gi(:,:,gi))
833+ else
834+ les_tensor_gi(:,:,gi) = max(les_tensor_gi(:,:,gi),0.0)
835+ end if
836 end if
837 end do
838 end if
839 end if
840
841 ! Set diagnostic fields
842- call les_set_diagnostic_tensor_fields(state, mnu, ele, detwei, &
843+ call les_set_diagnostic_tensor_fields(state, nu, ele, detwei, &
844 mesh_size_gi, strain_gi, t_strain_gi, les_tensor_gi, &
845 have_eddy_visc, have_strain, have_filtered_strain, have_filter_width)
846
847
848=== modified file 'assemble/Momentum_Equation.F90'
849--- assemble/Momentum_Equation.F90 2011-10-19 17:35:23 +0000
850+++ assemble/Momentum_Equation.F90 2011-11-30 17:31:28 +0000
851@@ -98,6 +98,8 @@
852 logical, dimension(:), allocatable :: lump_mass
853 ! are we using a cv pressure
854 logical :: cv_pressure
855+ ! for a CG pressure are we testing the continuity with cv
856+ logical :: cg_pressure_cv_test_continuity
857
858 ! Do we need to reassemble the C^T or CMC matrices?
859 logical :: reassemble_all_ct_m, reassemble_all_cmc_m
860@@ -179,7 +181,10 @@
861 ! Scaled pressure mass matrix - used for preconditioning full projection solve:
862 type(csr_matrix), target :: scaled_pressure_mass_matrix
863 type(csr_sparsity), pointer :: scaled_pressure_mass_matrix_sparsity
864- ! Compressible pressure gradient operator/left hand matrix of CMC
865+ ! Left hand matrix of CMC. For incompressibe flow this points to ct_m as they are identical,
866+ ! unless for CG pressure with CV tested continuity case when this matrix will be the
867+ ! CV divergence tested matrix and ct_m the CG divergence tested matrix (right hand matrix of CMC).
868+ ! For compressible flow this differs to ct_m in that it will contain the variable density.
869 type(block_csr_matrix_pointer), dimension(:), allocatable :: ctp_m
870 ! The lumped mass matrix (may vary per component as absorption could be included)
871 type(vector_field), dimension(1:size(state)) :: inverse_masslump, visc_inverse_masslump
872@@ -377,6 +382,14 @@
873 ! Get the pressure gradient matrix (i.e. the divergence matrix)
874 ct_m(istate)%ptr => get_velocity_divergence_matrix(state(istate), get_ct=reassemble_ct_m) ! Sets reassemble_ct_m to true if it does not already exist in state(i)
875 reassemble_ct_m = reassemble_ct_m .or. reassemble_all_ct_m
876+
877+ ! For the CG pressure with CV tested continuity case
878+ ! get the CV tested pressure gradient matrix (i.e. the divergence matrix)
879+ ! if required with a different unique name. Note there is no need
880+ ! to again decide reassemble_ct_m as ctp_m for this case is assembled when ct_m is.
881+ if ((.not. use_compressible_projection) .and. cg_pressure_cv_test_continuity) then
882+ ctp_m(istate)%ptr => get_velocity_divergence_matrix(state(istate), ct_m_name = "CVTestedVelocityDivergenceMatrix")
883+ end if
884
885 ! Get the pressure poisson matrix (i.e. the CMC/projection matrix)
886 cmc_m => get_pressure_poisson_matrix(state(istate), get_cmc=reassemble_cmc_m) ! ...and similarly for reassemble_cmc_m
887@@ -514,10 +527,13 @@
888 diagonal=diagonal_big_m, name="BIG_m")
889 end if
890
891- ! Initialise the big_m and ct_m matrices
892+ ! Initialise the big_m, ct_m and ctp_m matrices
893 call zero(big_m(istate))
894 if(reassemble_ct_m) then
895- call zero(ct_m(istate)%ptr)
896+ call zero(ct_m(istate)%ptr)
897+ if ((.not. use_compressible_projection) .and. cg_pressure_cv_test_continuity) then
898+ call zero(ctp_m(istate)%ptr)
899+ end if
900 end if
901
902 ! Allocate the momentum RHS
903@@ -563,6 +579,8 @@
904 call subtract_geostrophic_pressure_gradient(mom_rhs(istate), state(istate))
905 end if
906 else
907+ ! This call will form the ct_rhs, which for use_compressible_projection
908+ ! or cg_pressure_cv_test_continuity is formed for a second time later below.
909 call construct_momentum_cg(u, p, density, x, &
910 big_m(istate), mom_rhs(istate), ct_m(istate)%ptr, &
911 ct_rhs(istate), mass(istate), inverse_masslump(istate), visc_inverse_masslump(istate), &
912@@ -607,22 +625,20 @@
913 call wall_functions(big_m(istate), mom_rhs(istate), state(istate))
914 end if
915
916- ! Add mass source-absorption for implicit solids
917- if (have_option("/implicit_solids/two_way_coupling")) then
918- call add_mass_source_absorption(ct_rhs(istate), state(istate))
919- end if
920-
921 call profiler_toc(u, "assembly")
922
923 call profiler_tic(p, "assembly")
924 if(cv_pressure) then
925+ ! This call will form the ct_rhs, which for use_compressible_projection
926+ ! is formed for a second time later below.
927 call assemble_divergence_matrix_cv(ct_m(istate)%ptr, state(istate), ct_rhs=ct_rhs(istate), &
928 test_mesh=p%mesh, field=u, get_ct=reassemble_ct_m)
929 end if
930
931- !! Assemble divergence matrix C^T
932- ! At the moment cg does its own ct assembly. We might change this in
933- ! the future.
934+ ! Assemble divergence matrix C^T.
935+ ! At the moment cg does its own ct assembly. We might change this in the future.
936+ ! This call will form the ct_rhs, which for use_compressible_projection
937+ ! or cg_pressure_cv_test_continuity is formed for a second time later below.
938 if(dg(istate) .and. .not. cv_pressure) then
939 call assemble_divergence_matrix_cg(ct_m(istate)%ptr, state(istate), ct_rhs=ct_rhs(istate), &
940 test_mesh=p%mesh, field=u, get_ct=reassemble_ct_m)
941@@ -658,15 +674,35 @@
942 call profiler_tic(p, "assembly")
943
944 if (prognostic_p .and. .not.reduced_model) then
945-
946+
947+ ! Set up the left C matrix in CMC
948+
949 if(use_compressible_projection) then
950 allocate(ctp_m(istate)%ptr)
951 call allocate(ctp_m(istate)%ptr, ct_m(istate)%ptr%sparsity, (/1, u%dim/), name="CTP_m")
952+ ! NOTE that this is not optimal in that the ct_rhs
953+ ! was formed already above. The call here will overwrite those values.
954 if(cv_pressure) then
955 call assemble_compressible_divergence_matrix_cv(ctp_m(istate)%ptr, state, ct_rhs(istate))
956 else
957 call assemble_compressible_divergence_matrix_cg(ctp_m(istate)%ptr, state, ct_rhs(istate))
958+ end if
959+ else
960+ ! Incompressible scenario
961+ if (cg_pressure_cv_test_continuity) then
962+ ! Form the CV tested divergence matrix and ct_rhs.
963+ ! This will only reassemble ctp_m when ct_m
964+ ! also requires reassemble. NOTE that this is not optimal in that the ct_rhs
965+ ! was formed already above. The call here will overwrite those values.
966+ call assemble_divergence_matrix_cv(ctp_m(istate)%ptr, state(istate), ct_rhs=ct_rhs(istate), &
967+ test_mesh=p%mesh, field=u, get_ct=reassemble_ct_m)
968+ else
969+ ! ctp_m is identical to ct_m
970+ ctp_m(istate)%ptr => ct_m(istate)%ptr
971 end if
972+ end if
973+
974+ if (use_compressible_projection .or. cg_pressure_cv_test_continuity) then
975 if (have_rotated_bcs(u)) then
976 if (dg(istate)) then
977 call zero_non_owned(u)
978@@ -679,9 +715,18 @@
979 end if
980 call rotate_ct_m_sphere(state(istate), ctp_m(istate)%ptr, u)
981 end if
982- else
983- ctp_m(istate)%ptr => ct_m(istate)%ptr ! Incompressible scenario
984- end if
985+ end if
986+
987+ ! Add mass source-absorption for implicit solids.
988+ ! This needs to be done after ct_rhs has been formed
989+ ! in the divergence routines as they zero the field.
990+ ! This routine assumes the continuity is tested with
991+ ! FE basis functions, so is not correct for cv_pressure
992+ ! or cg_pressure_cv_test_continuity.
993+ if (have_option("/implicit_solids/two_way_coupling")) then
994+ call add_mass_source_absorption(ct_rhs(istate), state(istate))
995+ end if
996+
997 ewrite_minmax(ctp_m(istate)%ptr)
998 ewrite_minmax(ct_rhs(istate))
999
1000@@ -1242,6 +1287,11 @@
1001 cv_pressure = have_option(trim(p%option_path)//&
1002 "/prognostic/spatial_discretisation/control_volumes")
1003
1004+ ! For CG pressure are we testing the continuity with the CV dual
1005+ cg_pressure_cv_test_continuity = have_option(trim(p%option_path)//&
1006+ &"/prognostic/spatial_discretisation/continuous_galerkin&
1007+ &/test_continuity_with_cv_dual")
1008+
1009 end subroutine get_pressure_options
1010
1011
1012@@ -1750,9 +1800,11 @@
1013
1014 subroutine momentum_equation_check_options
1015
1016- integer :: i, nmat
1017+ integer :: i, nmat, bc, nbc
1018 character(len=FIELD_NAME_LEN) :: schur_scheme
1019 character(len=FIELD_NAME_LEN) :: schur_preconditioner
1020+ character(len=FIELD_NAME_LEN) :: pressure_mesh
1021+ character(len=FIELD_NAME_LEN) :: pressure_mesh_element_type
1022
1023 ewrite(1,*) 'Checking momentum discretisation options'
1024
1025@@ -2004,6 +2056,91 @@
1026 FLExit("Lump the mass matrix (of the velocity) if you want to make use of the low Reynolds number fix")
1027 end if
1028 end if
1029+
1030+ ! Check options for case with CG pressure and
1031+ ! testing continuity with CV dual mesh.
1032+ ! Will not work with compressible, free surface or
1033+ ! wetting and drying and implicit solids two way coupling.
1034+ ! Also will not work if the pressure is on a mesh that has
1035+ ! bubble or trace shape functions.
1036+ if (have_option("/material_phase["//int2str(i)//&
1037+ &"]/scalar_field::Pressure/prognostic&
1038+ &/spatial_discretisation/continuous_galerkin&
1039+ &/test_continuity_with_cv_dual")) then
1040+
1041+ ! Check that the incompressible projection is being used
1042+ if(.not.have_option("/material_phase["//int2str(i)//&
1043+ &"]/scalar_field::Pressure/prognostic&
1044+ &/scheme/use_projection_method")) then
1045+
1046+ ewrite(-1,*) "Error: For a CG Pressure the continuity"
1047+ ewrite(-1,*) "can only be tested with the cv dual mesh"
1048+ ewrite(-1,*) "if the pressure scheme is the incompressible"
1049+ ewrite(-1,*) "projection method, which is given by the option"
1050+ ewrite(-1,*) "path material_phase/Pressure/spatial_discretisation/"
1051+ ewrite(-1,*) "continuous_galerkin/scheme/use_projection_method"
1052+ FLExit("Use incompressible projection method if wanting to test continuity with cv dual with CG pressure")
1053+ end if
1054+
1055+ ! Check that there are no free_surface boundary conditions for Velocity
1056+ nbc = option_count("/material_phase["//int2str(i)//"]/vector_field::Velocity&
1057+ &/prognostic/boundary_conditions")
1058+
1059+ bc_loop: do bc = 0, nbc - 1
1060+
1061+ if(have_option("/material_phase["//int2str(i)//"]/vector_field::Velocity/prognostic&
1062+ &/boundary_conditions["//int2str(bc)//"]/type::free_surface")) then
1063+ ewrite(-1,*) "Cannot have free_surface BC for Velocity of phase ",i+1
1064+ ewrite(-1,*) "when using a CG pressure with a CV tested continuity equation"
1065+ FLExit("For CG Pressure cannot test the continuity equation with CV when Velocity has a free_surface BC")
1066+ end if
1067+
1068+ end do bc_loop
1069+
1070+ ! Check that the wetting_and_drying model is not being used
1071+ if(have_option("/mesh_adaptivity/mesh_movement/free_surface/wetting_and_drying")) then
1072+ FLExit("For CG Pressure cannot test the continuity equation with CV when using the wetting and drying model")
1073+ end if
1074+
1075+ ! Check that implicit solids two way coupling is not being used
1076+ if (have_option("/implicit_solids/two_way_coupling")) then
1077+ FLExit("For CG Pressure cannot test the continuity equation with CV when using implicit solids two way coupling model")
1078+ end if
1079+
1080+ ! get the pressure mesh name
1081+ call get_option("/material_phase["//int2str(i)//"]/scalar_field::Pressure/prognostic/mesh/name", &
1082+ pressure_mesh)
1083+
1084+ ! check that the pressure mesh options
1085+ ! do NOT say bubble or trace
1086+ call get_option("/geometry/mesh::"//trim(pressure_mesh)//"/from_mesh/mesh_shape/element_type", &
1087+ pressure_mesh_element_type, &
1088+ default = "lagranian")
1089+
1090+ if (trim(pressure_mesh_element_type) == "bubble") then
1091+ FLExit("For CG Pressure cannot test the continuity equation with CV if the pressure mesh has element type bubble")
1092+ end if
1093+
1094+ if (trim(pressure_mesh_element_type) == "trace") then
1095+ FLExit("For CG Pressure cannot test the continuity equation with CV if the pressure mesh has element type trace")
1096+ end if
1097+
1098+ end if
1099+
1100+ ! Check that is using implicit solids two way coupling that
1101+ ! the pressure is NOT CV. CV pressure implies CV tested continuity
1102+ ! which is not possible yet for the two way coupling terms.
1103+ ! Note the check of CG pressure with CV tested continuity
1104+ ! and implicit solids two way coupling has been done above.
1105+ if (have_option("/implicit_solids/two_way_coupling")) then
1106+
1107+ if (have_option("/material_phase["//int2str(i)//&
1108+ &"]/scalar_field::Pressure/prognostic&
1109+ &/spatial_discretisation/control_volumes")) then
1110+ FLExit("Cannot use implicit solids two way coupling if the pressure is control volume discretised")
1111+ end if
1112+
1113+ end if
1114
1115 end do
1116
1117
1118=== modified file 'assemble/State_Matrices.F90'
1119--- assemble/State_Matrices.F90 2011-07-18 16:53:16 +0000
1120+++ assemble/State_Matrices.F90 2011-11-30 17:31:28 +0000
1121@@ -248,17 +248,19 @@
1122
1123 end function get_pressure_stabilisation_matrix_multiple_states
1124
1125- function get_velocity_divergence_matrix_single_state(state, get_ct) result(ct_m)
1126+ function get_velocity_divergence_matrix_single_state(state, get_ct, ct_m_name) result(ct_m)
1127 !!< extracts the ct matrix from state,
1128 !!< if it fails to find it it returns get_ct=.true. to indicate that it needs assembling
1129+ !!< if ct_m_name is present then that name is used else a default is used.
1130 type(block_csr_matrix), pointer :: ct_m
1131 type(state_type), intent(inout) :: state
1132 logical, intent(inout), optional :: get_ct
1133-
1134+ character(len=*), intent(in), optional :: ct_m_name
1135+
1136 type(state_type), dimension(1) :: states
1137
1138 states = (/state/)
1139- ct_m => get_velocity_divergence_matrix(states, get_ct=get_ct)
1140+ ct_m => get_velocity_divergence_matrix(states, get_ct=get_ct, ct_m_name = ct_m_name)
1141 state = states(1)
1142
1143 ! In multi-phase simulations, C^T depends on the phase volume fraction,
1144@@ -269,24 +271,33 @@
1145
1146 end function get_velocity_divergence_matrix_single_state
1147
1148- function get_velocity_divergence_matrix_multiple_states(states, get_ct) result(ct_m)
1149+ function get_velocity_divergence_matrix_multiple_states(states, get_ct, ct_m_name) result(ct_m)
1150 !!< extracts the ct matrix from states,
1151 !!< if it fails to find it it returns get_ct=.true. to indicate that it needs assembling
1152+ !!< if ct_m_name is present then that name is used else a default is used.
1153 type(block_csr_matrix), pointer :: ct_m
1154 type(state_type), dimension(:), intent(inout) :: states
1155 logical, intent(inout), optional :: get_ct
1156-
1157+ character(len=*), intent(in), optional :: ct_m_name
1158+
1159 integer :: stat, i
1160 type(mesh_type), pointer :: p_mesh, u_mesh
1161 type(vector_field), pointer :: velocity
1162 type(csr_sparsity), pointer :: ct_sparsity
1163 type(block_csr_matrix) :: temp_ct_m
1164-
1165+ character(len=FIELD_NAME_LEN) :: l_ct_m_name
1166+
1167 integer, save :: last_mesh_movement = -1
1168
1169+ ! Form the ct_m_name dependent on interface argument
1170+ if (present(ct_m_name)) then
1171+ l_ct_m_name = trim(ct_m_name)
1172+ else
1173+ l_ct_m_name = "VelocityDivergenceMatrix"
1174+ end if
1175
1176 if(present(get_ct)) get_ct = .false.
1177- ct_m => extract_block_csr_matrix(states, "VelocityDivergenceMatrix", stat)
1178+ ct_m => extract_block_csr_matrix(states, trim(l_ct_m_name), stat)
1179
1180 if(stat/=0) then
1181 if(present(get_ct)) get_ct = .true.
1182@@ -300,11 +311,11 @@
1183
1184 ct_sparsity => get_csr_sparsity_firstorder(states, p_mesh, u_mesh)
1185
1186- call allocate(temp_ct_m, ct_sparsity, blocks=(/1,velocity%dim/), name="VelocityDivergenceMatrix")
1187- call insert(states, temp_ct_m, name="VelocityDivergenceMatrix")
1188+ call allocate(temp_ct_m, ct_sparsity, blocks=(/1,velocity%dim/), name=trim(l_ct_m_name))
1189+ call insert(states, temp_ct_m, name=trim(l_ct_m_name))
1190 call deallocate(temp_ct_m)
1191
1192- ct_m => extract_block_csr_matrix(states, "VelocityDivergenceMatrix")
1193+ ct_m => extract_block_csr_matrix(states, trim(l_ct_m_name))
1194 else
1195 ! just check if we need to reassemble the matrix anyway
1196 if(present(get_ct)) get_ct = (eventcount(EVENT_MESH_MOVEMENT)/=last_mesh_movement)
1197
1198=== modified file 'assemble/Zoltan_callbacks.F90'
1199--- assemble/Zoltan_callbacks.F90 2011-09-26 17:04:31 +0000
1200+++ assemble/Zoltan_callbacks.F90 2011-11-30 17:31:28 +0000
1201@@ -173,7 +173,7 @@
1202 real :: quality, min_quality, my_min_quality
1203
1204 ! variables for recording the local maximum/minimum edge weights and local 90th percentile edge weight
1205- real(zoltan_float) :: min_weight, max_weight, ninety_weight, my_max_weight
1206+ real(zoltan_float) :: min_weight, max_weight, ninety_weight, my_max_weight, my_min_weight
1207
1208 integer, dimension(:), pointer :: my_nelist, nbor_nelist
1209
1210@@ -295,7 +295,6 @@
1211 end if
1212 end do
1213
1214- value = maxval(ewgts(head:head+size(neighbours)-1))
1215 head = head + size(neighbours)
1216 end do
1217
1218@@ -307,8 +306,14 @@
1219 my_max_weight = maxval(ewgts(1:head-1))
1220
1221 ! calculate the local minimum edge weight
1222- min_weight = minval(ewgts(1:head-1))
1223- call MPI_ALLREDUCE(my_max_weight,max_weight,1,MPI_INTEGER,MPI_MAX, MPI_COMM_FEMTOOLS,err)
1224+ my_min_weight = minval(ewgts(1:head-1))
1225+
1226+ ! calculate global maximum edge weight
1227+ call MPI_ALLREDUCE(my_max_weight,max_weight,1,MPI_REAL,MPI_MAX, MPI_COMM_FEMTOOLS,err)
1228+
1229+ ! calculate global minimum edge weight
1230+ call MPI_ALLREDUCE(my_min_weight,min_weight,1,MPI_REAL,MPI_MIN, MPI_COMM_FEMTOOLS,err)
1231+
1232 ! calculate the local 90th percentile edge weight
1233 ninety_weight = max_weight * 0.90
1234
1235
1236=== modified file 'configure'
1237--- configure 2011-10-21 10:05:25 +0000
1238+++ configure 2011-11-30 17:31:28 +0000
1239@@ -1,6 +1,6 @@
1240 #! /bin/sh
1241 # Guess values for system-dependent variables and create Makefiles.
1242-# Generated by GNU Autoconf 2.68 for fluidity trunk.3665.
1243+# Generated by GNU Autoconf 2.67 for fluidity None.
1244 #
1245 #
1246 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1247@@ -89,7 +89,6 @@
1248 IFS=" "" $as_nl"
1249
1250 # Find who we are. Look in the path if we contain no directory separator.
1251-as_myself=
1252 case $0 in #((
1253 *[\\/]* ) as_myself=$0 ;;
1254 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1255@@ -215,18 +214,11 @@
1256 # We cannot yet assume a decent shell, so we have to provide a
1257 # neutralization value for shells without unset; and this also
1258 # works around shells that cannot unset nonexistent variables.
1259- # Preserve -v and -x to the replacement shell.
1260 BASH_ENV=/dev/null
1261 ENV=/dev/null
1262 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
1263 export CONFIG_SHELL
1264- case $- in # ((((
1265- *v*x* | *x*v* ) as_opts=-vx ;;
1266- *v* ) as_opts=-v ;;
1267- *x* ) as_opts=-x ;;
1268- * ) as_opts= ;;
1269- esac
1270- exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
1271+ exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
1272 fi
1273
1274 if test x$as_have_required = xno; then :
1275@@ -557,8 +549,8 @@
1276 # Identity of this package.
1277 PACKAGE_NAME='fluidity'
1278 PACKAGE_TARNAME='fluidity'
1279-PACKAGE_VERSION='trunk.3665'
1280-PACKAGE_STRING='fluidity trunk.3665'
1281+PACKAGE_VERSION='None'
1282+PACKAGE_STRING='fluidity None'
1283 PACKAGE_BUGREPORT=''
1284 PACKAGE_URL=''
1285
1286@@ -615,6 +607,7 @@
1287 BUILD_LIBADAPT
1288 DEFINE_MPI
1289 USE_CPP
1290+FLLINKER
1291 LINKER
1292 OPTIMIZATION_FFLAGS
1293 FORTRAN_REAL_8
1294@@ -686,6 +679,7 @@
1295 build_vendor
1296 build_cpu
1297 build
1298+FLUIDITY_VERSION
1299 target_alias
1300 host_alias
1301 build_alias
1302@@ -1185,7 +1179,7 @@
1303 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1304 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1305 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1306- : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1307+ : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1308 ;;
1309
1310 esac
1311@@ -1323,7 +1317,7 @@
1312 # Omit some internal or obsolete options to make the list less imposing.
1313 # This message is too long to be a string in the A/UX 3.1 sh.
1314 cat <<_ACEOF
1315-\`configure' configures fluidity trunk.3665 to adapt to many kinds of systems.
1316+\`configure' configures fluidity None to adapt to many kinds of systems.
1317
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320@@ -1392,7 +1386,7 @@
1321
1322 if test -n "$ac_init_help"; then
1323 case $ac_init_help in
1324- short | recursive ) echo "Configuration of fluidity trunk.3665:";;
1325+ short | recursive ) echo "Configuration of fluidity None:";;
1326 esac
1327 cat <<\_ACEOF
1328
1329@@ -1540,8 +1534,8 @@
1330 test -n "$ac_init_help" && exit $ac_status
1331 if $ac_init_version; then
1332 cat <<\_ACEOF
1333-fluidity configure trunk.3665
1334-generated by GNU Autoconf 2.68
1335+fluidity configure None
1336+generated by GNU Autoconf 2.67
1337
1338 Copyright (C) 2010 Free Software Foundation, Inc.
1339 This configure script is free software; the Free Software Foundation
1340@@ -1587,7 +1581,7 @@
1341
1342 ac_retval=1
1343 fi
1344- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1345+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1346 as_fn_set_status $ac_retval
1347
1348 } # ac_fn_f77_try_compile
1349@@ -1625,7 +1619,7 @@
1350
1351 ac_retval=1
1352 fi
1353- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1354+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1355 as_fn_set_status $ac_retval
1356
1357 } # ac_fn_fc_try_compile
1358@@ -1663,7 +1657,7 @@
1359
1360 ac_retval=1
1361 fi
1362- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1363+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1364 as_fn_set_status $ac_retval
1365
1366 } # ac_fn_c_try_compile
1367@@ -1701,7 +1695,7 @@
1368
1369 ac_retval=1
1370 fi
1371- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1372+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1373 as_fn_set_status $ac_retval
1374
1375 } # ac_fn_cxx_try_compile
1376@@ -1738,7 +1732,7 @@
1377
1378 ac_retval=1
1379 fi
1380- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1381+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1382 as_fn_set_status $ac_retval
1383
1384 } # ac_fn_c_try_cpp
1385@@ -1780,7 +1774,7 @@
1386 ac_retval=$ac_status
1387 fi
1388 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1389- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1390+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1391 as_fn_set_status $ac_retval
1392
1393 } # ac_fn_c_try_run
1394@@ -1958,7 +1952,7 @@
1395 rm -f conftest.val
1396
1397 fi
1398- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1399+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1400 as_fn_set_status $ac_retval
1401
1402 } # ac_fn_c_compute_int
1403@@ -1972,7 +1966,7 @@
1404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1406 $as_echo_n "checking for $2... " >&6; }
1407-if eval \${$3+:} false; then :
1408+if eval "test \"\${$3+set}\"" = set; then :
1409 $as_echo_n "(cached) " >&6
1410 else
1411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1412@@ -1990,7 +1984,7 @@
1413 eval ac_res=\$$3
1414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1415 $as_echo "$ac_res" >&6; }
1416- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1417+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1418
1419 } # ac_fn_c_check_header_compile
1420
1421@@ -2035,7 +2029,7 @@
1422 # interfere with the next link command; also delete a directory that is
1423 # left behind by Apple's compiler. We do this before executing the actions.
1424 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1425- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1426+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1427 as_fn_set_status $ac_retval
1428
1429 } # ac_fn_c_try_link
1430@@ -2081,7 +2075,7 @@
1431 # interfere with the next link command; also delete a directory that is
1432 # left behind by Apple's compiler. We do this before executing the actions.
1433 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1434- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1435+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1436 as_fn_set_status $ac_retval
1437
1438 } # ac_fn_cxx_try_link
1439@@ -2127,7 +2121,7 @@
1440 # interfere with the next link command; also delete a directory that is
1441 # left behind by Apple's compiler. We do this before executing the actions.
1442 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1443- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1444+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1445 as_fn_set_status $ac_retval
1446
1447 } # ac_fn_f77_try_link
1448@@ -2140,7 +2134,7 @@
1449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1451 $as_echo_n "checking for $2... " >&6; }
1452-if eval \${$3+:} false; then :
1453+if eval "test \"\${$3+set}\"" = set; then :
1454 $as_echo_n "(cached) " >&6
1455 else
1456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1457@@ -2211,7 +2205,7 @@
1458 eval ac_res=\$$3
1459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1460 $as_echo "$ac_res" >&6; }
1461- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1462+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1463
1464 } # ac_fn_c_check_func
1465
1466@@ -2256,7 +2250,7 @@
1467 # interfere with the next link command; also delete a directory that is
1468 # left behind by Apple's compiler. We do this before executing the actions.
1469 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1470- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1471+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1472 as_fn_set_status $ac_retval
1473
1474 } # ac_fn_fc_try_link
1475@@ -2298,7 +2292,7 @@
1476 ac_retval=$ac_status
1477 fi
1478 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1479- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1480+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1481 as_fn_set_status $ac_retval
1482
1483 } # ac_fn_fc_try_run
1484@@ -2335,7 +2329,7 @@
1485
1486 ac_retval=1
1487 fi
1488- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1489+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1490 as_fn_set_status $ac_retval
1491
1492 } # ac_fn_cxx_try_cpp
1493@@ -2348,10 +2342,10 @@
1494 ac_fn_cxx_check_header_mongrel ()
1495 {
1496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497- if eval \${$3+:} false; then :
1498+ if eval "test \"\${$3+set}\"" = set; then :
1499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1500 $as_echo_n "checking for $2... " >&6; }
1501-if eval \${$3+:} false; then :
1502+if eval "test \"\${$3+set}\"" = set; then :
1503 $as_echo_n "(cached) " >&6
1504 fi
1505 eval ac_res=\$$3
1506@@ -2414,7 +2408,7 @@
1507 esac
1508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1509 $as_echo_n "checking for $2... " >&6; }
1510-if eval \${$3+:} false; then :
1511+if eval "test \"\${$3+set}\"" = set; then :
1512 $as_echo_n "(cached) " >&6
1513 else
1514 eval "$3=\$ac_header_compiler"
1515@@ -2423,15 +2417,15 @@
1516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1517 $as_echo "$ac_res" >&6; }
1518 fi
1519- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1520+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1521
1522 } # ac_fn_cxx_check_header_mongrel
1523 cat >config.log <<_ACEOF
1524 This file contains any messages produced by compilers while
1525 running configure, to aid debugging if configure makes a mistake.
1526
1527-It was created by fluidity $as_me trunk.3665, which was
1528-generated by GNU Autoconf 2.68. Invocation command line was
1529+It was created by fluidity $as_me None, which was
1530+generated by GNU Autoconf 2.67. Invocation command line was
1531
1532 $ $0 $@
1533
1534@@ -2689,7 +2683,7 @@
1535 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1537 as_fn_error $? "failed to load site script $ac_site_file
1538-See \`config.log' for more details" "$LINENO" 5; }
1539+See \`config.log' for more details" "$LINENO" 5 ; }
1540 fi
1541 done
1542
1543@@ -2782,6 +2776,10 @@
1544 ac_config_headers="$ac_config_headers include/config.h"
1545
1546
1547+# we ignore PACKAGE_VERSION as it is useless
1548+# instead we pass on FLUIDITY_VERSION from the env. if it is set
1549+
1550+
1551 echo "Hostname: `hostname`"
1552
1553 # Store enviroment variables
1554@@ -2876,7 +2874,7 @@
1555
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1557 $as_echo_n "checking build system type... " >&6; }
1558-if ${ac_cv_build+:} false; then :
1559+if test "${ac_cv_build+set}" = set; then :
1560 $as_echo_n "(cached) " >&6
1561 else
1562 ac_build_alias=$build_alias
1563@@ -2892,7 +2890,7 @@
1564 $as_echo "$ac_cv_build" >&6; }
1565 case $ac_cv_build in
1566 *-*-*) ;;
1567-*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1568+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
1569 esac
1570 build=$ac_cv_build
1571 ac_save_IFS=$IFS; IFS='-'
1572@@ -2910,7 +2908,7 @@
1573
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1575 $as_echo_n "checking host system type... " >&6; }
1576-if ${ac_cv_host+:} false; then :
1577+if test "${ac_cv_host+set}" = set; then :
1578 $as_echo_n "(cached) " >&6
1579 else
1580 if test "x$host_alias" = x; then
1581@@ -2925,7 +2923,7 @@
1582 $as_echo "$ac_cv_host" >&6; }
1583 case $ac_cv_host in
1584 *-*-*) ;;
1585-*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1586+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
1587 esac
1588 host=$ac_cv_host
1589 ac_save_IFS=$IFS; IFS='-'
1590@@ -2956,7 +2954,7 @@
1591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1593 $as_echo_n "checking for $ac_word... " >&6; }
1594-if ${ac_cv_prog_F77+:} false; then :
1595+if test "${ac_cv_prog_F77+set}" = set; then :
1596 $as_echo_n "(cached) " >&6
1597 else
1598 if test -n "$F77"; then
1599@@ -3000,7 +2998,7 @@
1600 set dummy $ac_prog; ac_word=$2
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1602 $as_echo_n "checking for $ac_word... " >&6; }
1603-if ${ac_cv_prog_ac_ct_F77+:} false; then :
1604+if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
1605 $as_echo_n "(cached) " >&6
1606 else
1607 if test -n "$ac_ct_F77"; then
1608@@ -3158,7 +3156,7 @@
1609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1611 as_fn_error 77 "Fortran 77 compiler cannot create executables
1612-See \`config.log' for more details" "$LINENO" 5; }
1613+See \`config.log' for more details" "$LINENO" 5 ; }
1614 else
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1616 $as_echo "yes" >&6; }
1617@@ -3201,7 +3199,7 @@
1618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1620 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1621-See \`config.log' for more details" "$LINENO" 5; }
1622+See \`config.log' for more details" "$LINENO" 5 ; }
1623 fi
1624 rm -f conftest conftest$ac_cv_exeext
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
1626@@ -3254,7 +3252,7 @@
1627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1628 as_fn_error $? "cannot run Fortran 77 compiled programs.
1629 If you meant to cross compile, use \`--host'.
1630-See \`config.log' for more details" "$LINENO" 5; }
1631+See \`config.log' for more details" "$LINENO" 5 ; }
1632 fi
1633 fi
1634 fi
1635@@ -3265,7 +3263,7 @@
1636 ac_clean_files=$ac_clean_files_save
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
1638 $as_echo_n "checking for suffix of object files... " >&6; }
1639-if ${ac_cv_objext+:} false; then :
1640+if test "${ac_cv_objext+set}" = set; then :
1641 $as_echo_n "(cached) " >&6
1642 else
1643 cat > conftest.$ac_ext <<_ACEOF
1644@@ -3300,7 +3298,7 @@
1645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1647 as_fn_error $? "cannot compute suffix of object files: cannot compile
1648-See \`config.log' for more details" "$LINENO" 5; }
1649+See \`config.log' for more details" "$LINENO" 5 ; }
1650 fi
1651 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1652 fi
1653@@ -3314,7 +3312,7 @@
1654 ac_ext=F
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
1656 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
1657-if ${ac_cv_f77_compiler_gnu+:} false; then :
1658+if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
1659 $as_echo_n "(cached) " >&6
1660 else
1661 cat > conftest.$ac_ext <<_ACEOF
1662@@ -3342,7 +3340,7 @@
1663 FFLAGS=
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
1665 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
1666-if ${ac_cv_prog_f77_g+:} false; then :
1667+if test "${ac_cv_prog_f77_g+set}" = set; then :
1668 $as_echo_n "(cached) " >&6
1669 else
1670 FFLAGS=-g
1671@@ -3395,7 +3393,7 @@
1672 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
1674 $as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
1675-if ${ac_cv_prog_f77_v+:} false; then :
1676+if test "${ac_cv_prog_f77_v+set}" = set; then :
1677 $as_echo_n "(cached) " >&6
1678 else
1679 cat > conftest.$ac_ext <<_ACEOF
1680@@ -3425,8 +3423,7 @@
1681 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
1682 # LIBRARY_PATH; skip all such settings.
1683 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
1684- sed '/^Driving:/d; /^Configured with:/d;
1685- '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
1686+ grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
1687 $as_echo "$ac_f77_v_output" >&5
1688 FFLAGS=$ac_save_FFLAGS
1689
1690@@ -3491,7 +3488,7 @@
1691 $as_echo "$ac_cv_prog_f77_v" >&6; }
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
1693 $as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
1694-if ${ac_cv_f77_libs+:} false; then :
1695+if test "${ac_cv_f77_libs+set}" = set; then :
1696 $as_echo_n "(cached) " >&6
1697 else
1698 if test "x$FLIBS" != "x"; then
1699@@ -3516,8 +3513,7 @@
1700 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
1701 # LIBRARY_PATH; skip all such settings.
1702 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
1703- sed '/^Driving:/d; /^Configured with:/d;
1704- '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
1705+ grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
1706 $as_echo "$ac_f77_v_output" >&5
1707 FFLAGS=$ac_save_FFLAGS
1708
1709@@ -3713,7 +3709,7 @@
1710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1712 $as_echo_n "checking for $ac_word... " >&6; }
1713-if ${ac_cv_prog_FC+:} false; then :
1714+if test "${ac_cv_prog_FC+set}" = set; then :
1715 $as_echo_n "(cached) " >&6
1716 else
1717 if test -n "$FC"; then
1718@@ -3757,7 +3753,7 @@
1719 set dummy $ac_prog; ac_word=$2
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1721 $as_echo_n "checking for $ac_word... " >&6; }
1722-if ${ac_cv_prog_ac_ct_FC+:} false; then :
1723+if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
1724 $as_echo_n "(cached) " >&6
1725 else
1726 if test -n "$ac_ct_FC"; then
1727@@ -3839,7 +3835,7 @@
1728 ac_ext=F
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
1730 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
1731-if ${ac_cv_fc_compiler_gnu+:} false; then :
1732+if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
1733 $as_echo_n "(cached) " >&6
1734 else
1735 cat > conftest.$ac_ext <<_ACEOF
1736@@ -3867,7 +3863,7 @@
1737 FCFLAGS=
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
1739 $as_echo_n "checking whether $FC accepts -g... " >&6; }
1740-if ${ac_cv_prog_fc_g+:} false; then :
1741+if test "${ac_cv_prog_fc_g+set}" = set; then :
1742 $as_echo_n "(cached) " >&6
1743 else
1744 FCFLAGS=-g
1745@@ -3915,7 +3911,7 @@
1746 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
1748 $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
1749-if ${ac_cv_prog_fc_v+:} false; then :
1750+if test "${ac_cv_prog_fc_v+set}" = set; then :
1751 $as_echo_n "(cached) " >&6
1752 else
1753 cat > conftest.$ac_ext <<_ACEOF
1754@@ -3945,8 +3941,7 @@
1755 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
1756 # LIBRARY_PATH; skip all such settings.
1757 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
1758- sed '/^Driving:/d; /^Configured with:/d;
1759- '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
1760+ grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
1761 $as_echo "$ac_fc_v_output" >&5
1762 FCFLAGS=$ac_save_FCFLAGS
1763
1764@@ -4011,7 +4006,7 @@
1765 $as_echo "$ac_cv_prog_fc_v" >&6; }
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
1767 $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
1768-if ${ac_cv_fc_libs+:} false; then :
1769+if test "${ac_cv_fc_libs+set}" = set; then :
1770 $as_echo_n "(cached) " >&6
1771 else
1772 if test "x$FCLIBS" != "x"; then
1773@@ -4036,8 +4031,7 @@
1774 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
1775 # LIBRARY_PATH; skip all such settings.
1776 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
1777- sed '/^Driving:/d; /^Configured with:/d;
1778- '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
1779+ grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
1780 $as_echo "$ac_fc_v_output" >&5
1781 FCFLAGS=$ac_save_FCFLAGS
1782
1783@@ -4289,7 +4283,7 @@
1784 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1786 $as_echo_n "checking for $ac_word... " >&6; }
1787-if ${ac_cv_prog_CC+:} false; then :
1788+if test "${ac_cv_prog_CC+set}" = set; then :
1789 $as_echo_n "(cached) " >&6
1790 else
1791 if test -n "$CC"; then
1792@@ -4333,7 +4327,7 @@
1793 set dummy $ac_prog; ac_word=$2
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1795 $as_echo_n "checking for $ac_word... " >&6; }
1796-if ${ac_cv_prog_ac_ct_CC+:} false; then :
1797+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
1798 $as_echo_n "(cached) " >&6
1799 else
1800 if test -n "$ac_ct_CC"; then
1801@@ -4386,7 +4380,7 @@
1802 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1804 as_fn_error $? "no acceptable C compiler found in \$PATH
1805-See \`config.log' for more details" "$LINENO" 5; }
1806+See \`config.log' for more details" "$LINENO" 5 ; }
1807
1808 # Provide some information about the compiler.
1809 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1810@@ -4415,7 +4409,7 @@
1811
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
1813 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1814-if ${ac_cv_c_compiler_gnu+:} false; then :
1815+if test "${ac_cv_c_compiler_gnu+set}" = set; then :
1816 $as_echo_n "(cached) " >&6
1817 else
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819@@ -4452,7 +4446,7 @@
1820 ac_save_CFLAGS=$CFLAGS
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
1822 $as_echo_n "checking whether $CC accepts -g... " >&6; }
1823-if ${ac_cv_prog_cc_g+:} false; then :
1824+if test "${ac_cv_prog_cc_g+set}" = set; then :
1825 $as_echo_n "(cached) " >&6
1826 else
1827 ac_save_c_werror_flag=$ac_c_werror_flag
1828@@ -4530,7 +4524,7 @@
1829 fi
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
1831 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1832-if ${ac_cv_prog_cc_c89+:} false; then :
1833+if test "${ac_cv_prog_cc_c89+set}" = set; then :
1834 $as_echo_n "(cached) " >&6
1835 else
1836 ac_cv_prog_cc_c89=no
1837@@ -4641,7 +4635,7 @@
1838 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1840 $as_echo_n "checking for $ac_word... " >&6; }
1841-if ${ac_cv_prog_CXX+:} false; then :
1842+if test "${ac_cv_prog_CXX+set}" = set; then :
1843 $as_echo_n "(cached) " >&6
1844 else
1845 if test -n "$CXX"; then
1846@@ -4685,7 +4679,7 @@
1847 set dummy $ac_prog; ac_word=$2
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1849 $as_echo_n "checking for $ac_word... " >&6; }
1850-if ${ac_cv_prog_ac_ct_CXX+:} false; then :
1851+if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
1852 $as_echo_n "(cached) " >&6
1853 else
1854 if test -n "$ac_ct_CXX"; then
1855@@ -4763,7 +4757,7 @@
1856
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
1858 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
1859-if ${ac_cv_cxx_compiler_gnu+:} false; then :
1860+if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
1861 $as_echo_n "(cached) " >&6
1862 else
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864@@ -4800,7 +4794,7 @@
1865 ac_save_CXXFLAGS=$CXXFLAGS
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
1867 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
1868-if ${ac_cv_prog_cxx_g+:} false; then :
1869+if test "${ac_cv_prog_cxx_g+set}" = set; then :
1870 $as_echo_n "(cached) " >&6
1871 else
1872 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
1873@@ -4894,7 +4888,7 @@
1874 CPP=
1875 fi
1876 if test -z "$CPP"; then
1877- if ${ac_cv_prog_CPP+:} false; then :
1878+ if test "${ac_cv_prog_CPP+set}" = set; then :
1879 $as_echo_n "(cached) " >&6
1880 else
1881 # Double quotes because CPP needs to be expanded
1882@@ -5010,7 +5004,7 @@
1883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1885 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
1886-See \`config.log' for more details" "$LINENO" 5; }
1887+See \`config.log' for more details" "$LINENO" 5 ; }
1888 fi
1889
1890 ac_ext=c
1891@@ -5025,7 +5019,7 @@
1892
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
1894 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1895-if ${ac_cv_path_GREP+:} false; then :
1896+if test "${ac_cv_path_GREP+set}" = set; then :
1897 $as_echo_n "(cached) " >&6
1898 else
1899 if test -z "$GREP"; then
1900@@ -5088,7 +5082,7 @@
1901
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
1903 $as_echo_n "checking for egrep... " >&6; }
1904-if ${ac_cv_path_EGREP+:} false; then :
1905+if test "${ac_cv_path_EGREP+set}" = set; then :
1906 $as_echo_n "(cached) " >&6
1907 else
1908 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1909@@ -5155,7 +5149,7 @@
1910
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
1912 $as_echo_n "checking for ANSI C header files... " >&6; }
1913-if ${ac_cv_header_stdc+:} false; then :
1914+if test "${ac_cv_header_stdc+set}" = set; then :
1915 $as_echo_n "(cached) " >&6
1916 else
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918@@ -5288,7 +5282,7 @@
1919 # This bug is HP SR number 8606223364.
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
1921 $as_echo_n "checking size of long int... " >&6; }
1922-if ${ac_cv_sizeof_long_int+:} false; then :
1923+if test "${ac_cv_sizeof_long_int+set}" = set; then :
1924 $as_echo_n "(cached) " >&6
1925 else
1926 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
1927@@ -5298,7 +5292,7 @@
1928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1930 as_fn_error 77 "cannot compute sizeof (long int)
1931-See \`config.log' for more details" "$LINENO" 5; }
1932+See \`config.log' for more details" "$LINENO" 5 ; }
1933 else
1934 ac_cv_sizeof_long_int=0
1935 fi
1936@@ -5329,7 +5323,7 @@
1937 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
1939 $as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
1940-if ${ac_cv_prog_f77_v+:} false; then :
1941+if test "${ac_cv_prog_f77_v+set}" = set; then :
1942 $as_echo_n "(cached) " >&6
1943 else
1944 cat > conftest.$ac_ext <<_ACEOF
1945@@ -5359,8 +5353,7 @@
1946 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
1947 # LIBRARY_PATH; skip all such settings.
1948 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
1949- sed '/^Driving:/d; /^Configured with:/d;
1950- '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
1951+ grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
1952 $as_echo "$ac_f77_v_output" >&5
1953 FFLAGS=$ac_save_FFLAGS
1954
1955@@ -5425,7 +5418,7 @@
1956 $as_echo "$ac_cv_prog_f77_v" >&6; }
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
1958 $as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
1959-if ${ac_cv_f77_libs+:} false; then :
1960+if test "${ac_cv_f77_libs+set}" = set; then :
1961 $as_echo_n "(cached) " >&6
1962 else
1963 if test "x$FLIBS" != "x"; then
1964@@ -5450,8 +5443,7 @@
1965 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
1966 # LIBRARY_PATH; skip all such settings.
1967 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
1968- sed '/^Driving:/d; /^Configured with:/d;
1969- '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
1970+ grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
1971 $as_echo "$ac_f77_v_output" >&5
1972 FFLAGS=$ac_save_FFLAGS
1973
1974@@ -5638,7 +5630,7 @@
1975 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
1977 $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
1978-if ${ac_cv_prog_fc_v+:} false; then :
1979+if test "${ac_cv_prog_fc_v+set}" = set; then :
1980 $as_echo_n "(cached) " >&6
1981 else
1982 cat > conftest.$ac_ext <<_ACEOF
1983@@ -5668,8 +5660,7 @@
1984 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
1985 # LIBRARY_PATH; skip all such settings.
1986 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
1987- sed '/^Driving:/d; /^Configured with:/d;
1988- '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
1989+ grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
1990 $as_echo "$ac_fc_v_output" >&5
1991 FCFLAGS=$ac_save_FCFLAGS
1992
1993@@ -5734,7 +5725,7 @@
1994 $as_echo "$ac_cv_prog_fc_v" >&6; }
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
1996 $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
1997-if ${ac_cv_fc_libs+:} false; then :
1998+if test "${ac_cv_fc_libs+set}" = set; then :
1999 $as_echo_n "(cached) " >&6
2000 else
2001 if test "x$FCLIBS" != "x"; then
2002@@ -5759,8 +5750,7 @@
2003 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
2004 # LIBRARY_PATH; skip all such settings.
2005 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
2006- sed '/^Driving:/d; /^Configured with:/d;
2007- '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
2008+ grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
2009 $as_echo "$ac_fc_v_output" >&5
2010 FCFLAGS=$ac_save_FCFLAGS
2011
2012@@ -5949,7 +5939,7 @@
2013
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5
2015 $as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; }
2016-if ${ac_cv_f77_dummy_main+:} false; then :
2017+if test "${ac_cv_f77_dummy_main+set}" = set; then :
2018 $as_echo_n "(cached) " >&6
2019 else
2020 ac_f77_dm_save_LIBS=$LIBS
2021@@ -6046,7 +6036,7 @@
2022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2024 as_fn_error $? "linking to Fortran libraries from C fails
2025-See \`config.log' for more details" "$LINENO" 5; }
2026+See \`config.log' for more details" "$LINENO" 5 ; }
2027 fi
2028
2029 ac_ext=c
2030@@ -6061,7 +6051,7 @@
2031 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5
2033 $as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; }
2034-if ${ac_cv_f77_mangling+:} false; then :
2035+if test "${ac_cv_f77_mangling+set}" = set; then :
2036 $as_echo_n "(cached) " >&6
2037 else
2038 cat > conftest.$ac_ext <<_ACEOF
2039@@ -6208,7 +6198,7 @@
2040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2042 as_fn_error $? "cannot compile a simple Fortran program
2043-See \`config.log' for more details" "$LINENO" 5; }
2044+See \`config.log' for more details" "$LINENO" 5 ; }
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047
2048@@ -6357,7 +6347,7 @@
2049 set dummy python$PYTHON_VERSION; ac_word=$2
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2051 $as_echo_n "checking for $ac_word... " >&6; }
2052-if ${ac_cv_path_PYTHON+:} false; then :
2053+if test "${ac_cv_path_PYTHON+set}" = set; then :
2054 $as_echo_n "(cached) " >&6
2055 else
2056 case $PYTHON in
2057@@ -6421,7 +6411,7 @@
2058 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
2059 to something else than an empty string.
2060
2061-See \`config.log' for more details" "$LINENO" 5; }
2062+See \`config.log' for more details" "$LINENO" 5 ; }
2063 else
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
2065 $as_echo "skip at user request" >&6; }
2066@@ -6692,7 +6682,7 @@
2067 for your distribution. The exact name of this package varies among them.
2068 ============================================================================
2069
2070-See \`config.log' for more details" "$LINENO" 5; }
2071+See \`config.log' for more details" "$LINENO" 5 ; }
2072 PYTHON_VERSION=""
2073 fi
2074
2075@@ -6741,7 +6731,7 @@
2076 if test "$enable_cgal" = "yes" ; then
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lCGAL" >&5
2078 $as_echo_n "checking for cos in -lCGAL... " >&6; }
2079-if ${ac_cv_lib_CGAL_cos+:} false; then :
2080+if test "${ac_cv_lib_CGAL_cos+set}" = set; then :
2081 $as_echo_n "(cached) " >&6
2082 else
2083 ac_check_lib_save_LIBS=$LIBS
2084@@ -6783,7 +6773,7 @@
2085 fi
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_CGAL_cos" >&5
2087 $as_echo "$ac_cv_lib_CGAL_cos" >&6; }
2088-if test "x$ac_cv_lib_CGAL_cos" = xyes; then :
2089+if test "x$ac_cv_lib_CGAL_cos" = x""yes; then :
2090 HAVE_CGAL=yes
2091 else
2092 HAVE_CGAL=no
2093@@ -6831,7 +6821,7 @@
2094
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
2096 $as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; }
2097-if ${ac_cv_fc_dummy_main+:} false; then :
2098+if test "${ac_cv_fc_dummy_main+set}" = set; then :
2099 $as_echo_n "(cached) " >&6
2100 else
2101 ac_fc_dm_save_LIBS=$LIBS
2102@@ -6944,7 +6934,7 @@
2103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2105 as_fn_error $? "linking to Fortran libraries from C fails
2106-See \`config.log' for more details" "$LINENO" 5; }
2107+See \`config.log' for more details" "$LINENO" 5 ; }
2108 fi
2109
2110 ac_ext=c
2111@@ -6959,7 +6949,7 @@
2112 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5
2114 $as_echo_n "checking for Fortran name-mangling scheme... " >&6; }
2115-if ${ac_cv_fc_mangling+:} false; then :
2116+if test "${ac_cv_fc_mangling+set}" = set; then :
2117 $as_echo_n "(cached) " >&6
2118 else
2119 cat > conftest.$ac_ext <<_ACEOF
2120@@ -7122,7 +7112,7 @@
2121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2123 as_fn_error $? "cannot compile a simple Fortran program
2124-See \`config.log' for more details" "$LINENO" 5; }
2125+See \`config.log' for more details" "$LINENO" 5 ; }
2126 fi
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128
2129@@ -7360,7 +7350,7 @@
2130 as_ac_Lib=`$as_echo "ac_cv_lib_mkl_def_$sgemm" | $as_tr_sh`
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lmkl_def" >&5
2132 $as_echo_n "checking for $sgemm in -lmkl_def... " >&6; }
2133-if eval \${$as_ac_Lib+:} false; then :
2134+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2135 $as_echo_n "(cached) " >&6
2136 else
2137 ac_check_lib_save_LIBS=$LIBS
2138@@ -7420,7 +7410,7 @@
2139 as_ac_Lib=`$as_echo "ac_cv_lib_mkl_ipf_$sgemm" | $as_tr_sh`
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lmkl_ipf" >&5
2141 $as_echo_n "checking for $sgemm in -lmkl_ipf... " >&6; }
2142-if eval \${$as_ac_Lib+:} false; then :
2143+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2144 $as_echo_n "(cached) " >&6
2145 else
2146 ac_check_lib_save_LIBS=$LIBS
2147@@ -7480,7 +7470,7 @@
2148 as_ac_Lib=`$as_echo "ac_cv_lib_mkl_em64t_$sgemm" | $as_tr_sh`
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lmkl_em64t" >&5
2150 $as_echo_n "checking for $sgemm in -lmkl_em64t... " >&6; }
2151-if eval \${$as_ac_Lib+:} false; then :
2152+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2153 $as_echo_n "(cached) " >&6
2154 else
2155 ac_check_lib_save_LIBS=$LIBS
2156@@ -7543,7 +7533,7 @@
2157 unset ac_cv_lib_mkl_def_sgemm
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsame in -lmkl_lapack" >&5
2159 $as_echo_n "checking for lsame in -lmkl_lapack... " >&6; }
2160-if ${ac_cv_lib_mkl_lapack_lsame+:} false; then :
2161+if test "${ac_cv_lib_mkl_lapack_lsame+set}" = set; then :
2162 $as_echo_n "(cached) " >&6
2163 else
2164 ac_check_lib_save_LIBS=$LIBS
2165@@ -7593,13 +7583,13 @@
2166 fi
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mkl_lapack_lsame" >&5
2168 $as_echo "$ac_cv_lib_mkl_lapack_lsame" >&6; }
2169-if test "x$ac_cv_lib_mkl_lapack_lsame" = xyes; then :
2170+if test "x$ac_cv_lib_mkl_lapack_lsame" = x""yes; then :
2171
2172 acx_lapack_ok=yes;
2173 as_ac_Lib=`$as_echo "ac_cv_lib_mkl_def_$sgemm" | $as_tr_sh`
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lmkl_def" >&5
2175 $as_echo_n "checking for $sgemm in -lmkl_def... " >&6; }
2176-if eval \${$as_ac_Lib+:} false; then :
2177+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2178 $as_echo_n "(cached) " >&6
2179 else
2180 ac_check_lib_save_LIBS=$LIBS
2181@@ -7668,7 +7658,7 @@
2182 as_ac_Lib=`$as_echo "ac_cv_lib_acml_$sgemm" | $as_tr_sh`
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lacml" >&5
2184 $as_echo_n "checking for $sgemm in -lacml... " >&6; }
2185-if eval \${$as_ac_Lib+:} false; then :
2186+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2187 $as_echo_n "(cached) " >&6
2188 else
2189 ac_check_lib_save_LIBS=$LIBS
2190@@ -7730,7 +7720,7 @@
2191 as_ac_Lib=`$as_echo "ac_cv_lib_f77blas_$sgemm" | $as_tr_sh`
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lf77blas" >&5
2193 $as_echo_n "checking for $sgemm in -lf77blas... " >&6; }
2194-if eval \${$as_ac_Lib+:} false; then :
2195+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2196 $as_echo_n "(cached) " >&6
2197 else
2198 ac_check_lib_save_LIBS=$LIBS
2199@@ -7792,7 +7782,7 @@
2200 as_ac_Lib=`$as_echo "ac_cv_lib_veclib_$sgemm" | $as_tr_sh`
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lveclib" >&5
2202 $as_echo_n "checking for $sgemm in -lveclib... " >&6; }
2203-if eval \${$as_ac_Lib+:} false; then :
2204+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2205 $as_echo_n "(cached) " >&6
2206 else
2207 ac_check_lib_save_LIBS=$LIBS
2208@@ -7856,7 +7846,7 @@
2209 as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5
2211 $as_echo_n "checking for $sgemm in -lblas... " >&6; }
2212-if eval \${$as_ac_Lib+:} false; then :
2213+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2214 $as_echo_n "(cached) " >&6
2215 else
2216 ac_check_lib_save_LIBS=$LIBS
2217@@ -7910,7 +7900,7 @@
2218 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgemm in -ldgemm" >&5
2220 $as_echo_n "checking for dgemm in -ldgemm... " >&6; }
2221-if ${ac_cv_lib_dgemm_dgemm+:} false; then :
2222+if test "${ac_cv_lib_dgemm_dgemm+set}" = set; then :
2223 $as_echo_n "(cached) " >&6
2224 else
2225 ac_check_lib_save_LIBS=$LIBS
2226@@ -7960,11 +7950,11 @@
2227 fi
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgemm_dgemm" >&5
2229 $as_echo "$ac_cv_lib_dgemm_dgemm" >&6; }
2230-if test "x$ac_cv_lib_dgemm_dgemm" = xyes; then :
2231+if test "x$ac_cv_lib_dgemm_dgemm" = x""yes; then :
2232 as_ac_Lib=`$as_echo "ac_cv_lib_sgemm_$sgemm" | $as_tr_sh`
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lsgemm" >&5
2234 $as_echo_n "checking for $sgemm in -lsgemm... " >&6; }
2235-if eval \${$as_ac_Lib+:} false; then :
2236+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2237 $as_echo_n "(cached) " >&6
2238 else
2239 ac_check_lib_save_LIBS=$LIBS
2240@@ -8033,7 +8023,7 @@
2241 as_ac_Lib=`$as_echo "ac_cv_lib_cxml_$sgemm" | $as_tr_sh`
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lcxml" >&5
2243 $as_echo_n "checking for $sgemm in -lcxml... " >&6; }
2244-if eval \${$as_ac_Lib+:} false; then :
2245+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2246 $as_echo_n "(cached) " >&6
2247 else
2248 ac_check_lib_save_LIBS=$LIBS
2249@@ -8095,7 +8085,7 @@
2250 as_ac_Lib=`$as_echo "ac_cv_lib_dxml_$sgemm" | $as_tr_sh`
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -ldxml" >&5
2252 $as_echo_n "checking for $sgemm in -ldxml... " >&6; }
2253-if eval \${$as_ac_Lib+:} false; then :
2254+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2255 $as_echo_n "(cached) " >&6
2256 else
2257 ac_check_lib_save_LIBS=$LIBS
2258@@ -8157,7 +8147,7 @@
2259 if test "x$GCC" != xyes; then # only works with Sun CC
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosp in -lsunmath" >&5
2261 $as_echo_n "checking for acosp in -lsunmath... " >&6; }
2262-if ${ac_cv_lib_sunmath_acosp+:} false; then :
2263+if test "${ac_cv_lib_sunmath_acosp+set}" = set; then :
2264 $as_echo_n "(cached) " >&6
2265 else
2266 ac_check_lib_save_LIBS=$LIBS
2267@@ -8207,11 +8197,11 @@
2268 fi
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_acosp" >&5
2270 $as_echo "$ac_cv_lib_sunmath_acosp" >&6; }
2271-if test "x$ac_cv_lib_sunmath_acosp" = xyes; then :
2272+if test "x$ac_cv_lib_sunmath_acosp" = x""yes; then :
2273 as_ac_Lib=`$as_echo "ac_cv_lib_sunperf_$sgemm" | $as_tr_sh`
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lsunperf" >&5
2275 $as_echo_n "checking for $sgemm in -lsunperf... " >&6; }
2276-if eval \${$as_ac_Lib+:} false; then :
2277+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2278 $as_echo_n "(cached) " >&6
2279 else
2280 ac_check_lib_save_LIBS=$LIBS
2281@@ -8278,7 +8268,7 @@
2282 as_ac_Lib=`$as_echo "ac_cv_lib_scs_$sgemm" | $as_tr_sh`
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lscs" >&5
2284 $as_echo_n "checking for $sgemm in -lscs... " >&6; }
2285-if eval \${$as_ac_Lib+:} false; then :
2286+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2287 $as_echo_n "(cached) " >&6
2288 else
2289 ac_check_lib_save_LIBS=$LIBS
2290@@ -8340,7 +8330,7 @@
2291 as_ac_Lib=`$as_echo "ac_cv_lib_complib.sgimath_$sgemm" | $as_tr_sh`
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lcomplib.sgimath" >&5
2293 $as_echo_n "checking for $sgemm in -lcomplib.sgimath... " >&6; }
2294-if eval \${$as_ac_Lib+:} false; then :
2295+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2296 $as_echo_n "(cached) " >&6
2297 else
2298 ac_check_lib_save_LIBS=$LIBS
2299@@ -8405,7 +8395,7 @@
2300 as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5
2302 $as_echo_n "checking for $sgemm in -lblas... " >&6; }
2303-if eval \${$as_ac_Lib+:} false; then :
2304+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2305 $as_echo_n "(cached) " >&6
2306 else
2307 ac_check_lib_save_LIBS=$LIBS
2308@@ -8460,7 +8450,7 @@
2309 as_ac_Lib=`$as_echo "ac_cv_lib_essl_$sgemm" | $as_tr_sh`
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lessl" >&5
2311 $as_echo_n "checking for $sgemm in -lessl... " >&6; }
2312-if eval \${$as_ac_Lib+:} false; then :
2313+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2314 $as_echo_n "(cached) " >&6
2315 else
2316 ac_check_lib_save_LIBS=$LIBS
2317@@ -8528,7 +8518,7 @@
2318 as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5
2320 $as_echo_n "checking for $sgemm in -lblas... " >&6; }
2321-if eval \${$as_ac_Lib+:} false; then :
2322+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2323 $as_echo_n "(cached) " >&6
2324 else
2325 ac_check_lib_save_LIBS=$LIBS
2326@@ -8591,7 +8581,7 @@
2327 as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5
2329 $as_echo_n "checking for $sgemm in -lblas... " >&6; }
2330-if eval \${$as_ac_Lib+:} false; then :
2331+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2332 $as_echo_n "(cached) " >&6
2333 else
2334 ac_check_lib_save_LIBS=$LIBS
2335@@ -8719,7 +8709,7 @@
2336 $as_echo "$as_me: Appear to be using Portland Group compiler suite. Check if ACML is also available." >&6;}
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgesv in -lacml" >&5
2338 $as_echo_n "checking for dgesv in -lacml... " >&6; }
2339-if ${ac_cv_lib_acml_dgesv+:} false; then :
2340+if test "${ac_cv_lib_acml_dgesv+set}" = set; then :
2341 $as_echo_n "(cached) " >&6
2342 else
2343 ac_check_lib_save_LIBS=$LIBS
2344@@ -8769,7 +8759,7 @@
2345 fi
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acml_dgesv" >&5
2347 $as_echo "$ac_cv_lib_acml_dgesv" >&6; }
2348-if test "x$ac_cv_lib_acml_dgesv" = xyes; then :
2349+if test "x$ac_cv_lib_acml_dgesv" = x""yes; then :
2350 found_blas=yes
2351 else
2352 found_blas=no
2353@@ -8783,7 +8773,7 @@
2354 $as_echo "$as_me: Appear to be using Sun Studio compiler suite. Check if Sun Performance Library is also available." >&6;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgesv in -lsunperf" >&5
2356 $as_echo_n "checking for dgesv in -lsunperf... " >&6; }
2357-if ${ac_cv_lib_sunperf_dgesv+:} false; then :
2358+if test "${ac_cv_lib_sunperf_dgesv+set}" = set; then :
2359 $as_echo_n "(cached) " >&6
2360 else
2361 ac_check_lib_save_LIBS=$LIBS
2362@@ -8833,7 +8823,7 @@
2363 fi
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunperf_dgesv" >&5
2365 $as_echo "$ac_cv_lib_sunperf_dgesv" >&6; }
2366-if test "x$ac_cv_lib_sunperf_dgesv" = xyes; then :
2367+if test "x$ac_cv_lib_sunperf_dgesv" = x""yes; then :
2368 found_blas=yes ; acx_blas_ok=yes
2369 else
2370 found_blas=no
2371@@ -8992,7 +8982,7 @@
2372 as_ac_Lib=`$as_echo "ac_cv_lib_mkl_def_$sgemm" | $as_tr_sh`
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lmkl_def" >&5
2374 $as_echo_n "checking for $sgemm in -lmkl_def... " >&6; }
2375-if eval \${$as_ac_Lib+:} false; then :
2376+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2377 $as_echo_n "(cached) " >&6
2378 else
2379 ac_check_lib_save_LIBS=$LIBS
2380@@ -9023,7 +9013,7 @@
2381 as_ac_Lib=`$as_echo "ac_cv_lib_mkl_ipf_$sgemm" | $as_tr_sh`
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lmkl_ipf" >&5
2383 $as_echo_n "checking for $sgemm in -lmkl_ipf... " >&6; }
2384-if eval \${$as_ac_Lib+:} false; then :
2385+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2386 $as_echo_n "(cached) " >&6
2387 else
2388 ac_check_lib_save_LIBS=$LIBS
2389@@ -9054,7 +9044,7 @@
2390 as_ac_Lib=`$as_echo "ac_cv_lib_mkl_em64t_$sgemm" | $as_tr_sh`
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lmkl_em64t" >&5
2392 $as_echo_n "checking for $sgemm in -lmkl_em64t... " >&6; }
2393-if eval \${$as_ac_Lib+:} false; then :
2394+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2395 $as_echo_n "(cached) " >&6
2396 else
2397 ac_check_lib_save_LIBS=$LIBS
2398@@ -9088,7 +9078,7 @@
2399 unset ac_cv_lib_mkl_def_sgemm
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsame in -lmkl_lapack" >&5
2401 $as_echo_n "checking for lsame in -lmkl_lapack... " >&6; }
2402-if ${ac_cv_lib_mkl_lapack_lsame+:} false; then :
2403+if test "${ac_cv_lib_mkl_lapack_lsame+set}" = set; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 ac_check_lib_save_LIBS=$LIBS
2407@@ -9109,13 +9099,13 @@
2408 fi
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mkl_lapack_lsame" >&5
2410 $as_echo "$ac_cv_lib_mkl_lapack_lsame" >&6; }
2411-if test "x$ac_cv_lib_mkl_lapack_lsame" = xyes; then :
2412+if test "x$ac_cv_lib_mkl_lapack_lsame" = x""yes; then :
2413
2414 acx_lapack_ok=yes;
2415 as_ac_Lib=`$as_echo "ac_cv_lib_mkl_def_$sgemm" | $as_tr_sh`
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lmkl_def" >&5
2417 $as_echo_n "checking for $sgemm in -lmkl_def... " >&6; }
2418-if eval \${$as_ac_Lib+:} false; then :
2419+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2420 $as_echo_n "(cached) " >&6
2421 else
2422 ac_check_lib_save_LIBS=$LIBS
2423@@ -9155,7 +9145,7 @@
2424 as_ac_Lib=`$as_echo "ac_cv_lib_acml_$sgemm" | $as_tr_sh`
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lacml" >&5
2426 $as_echo_n "checking for $sgemm in -lacml... " >&6; }
2427-if eval \${$as_ac_Lib+:} false; then :
2428+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2429 $as_echo_n "(cached) " >&6
2430 else
2431 ac_check_lib_save_LIBS=$LIBS
2432@@ -9188,7 +9178,7 @@
2433 as_ac_Lib=`$as_echo "ac_cv_lib_f77blas_$sgemm" | $as_tr_sh`
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lf77blas" >&5
2435 $as_echo_n "checking for $sgemm in -lf77blas... " >&6; }
2436-if eval \${$as_ac_Lib+:} false; then :
2437+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2438 $as_echo_n "(cached) " >&6
2439 else
2440 ac_check_lib_save_LIBS=$LIBS
2441@@ -9221,7 +9211,7 @@
2442 as_ac_Lib=`$as_echo "ac_cv_lib_veclib_$sgemm" | $as_tr_sh`
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lveclib" >&5
2444 $as_echo_n "checking for $sgemm in -lveclib... " >&6; }
2445-if eval \${$as_ac_Lib+:} false; then :
2446+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 ac_check_lib_save_LIBS=$LIBS
2450@@ -9256,7 +9246,7 @@
2451 as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5
2453 $as_echo_n "checking for $sgemm in -lblas... " >&6; }
2454-if eval \${$as_ac_Lib+:} false; then :
2455+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 ac_check_lib_save_LIBS=$LIBS
2459@@ -9281,7 +9271,7 @@
2460 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgemm in -ldgemm" >&5
2462 $as_echo_n "checking for dgemm in -ldgemm... " >&6; }
2463-if ${ac_cv_lib_dgemm_dgemm+:} false; then :
2464+if test "${ac_cv_lib_dgemm_dgemm+set}" = set; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 ac_check_lib_save_LIBS=$LIBS
2468@@ -9302,11 +9292,11 @@
2469 fi
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgemm_dgemm" >&5
2471 $as_echo "$ac_cv_lib_dgemm_dgemm" >&6; }
2472-if test "x$ac_cv_lib_dgemm_dgemm" = xyes; then :
2473+if test "x$ac_cv_lib_dgemm_dgemm" = x""yes; then :
2474 as_ac_Lib=`$as_echo "ac_cv_lib_sgemm_$sgemm" | $as_tr_sh`
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lsgemm" >&5
2476 $as_echo_n "checking for $sgemm in -lsgemm... " >&6; }
2477-if eval \${$as_ac_Lib+:} false; then :
2478+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2479 $as_echo_n "(cached) " >&6
2480 else
2481 ac_check_lib_save_LIBS=$LIBS
2482@@ -9346,7 +9336,7 @@
2483 as_ac_Lib=`$as_echo "ac_cv_lib_cxml_$sgemm" | $as_tr_sh`
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lcxml" >&5
2485 $as_echo_n "checking for $sgemm in -lcxml... " >&6; }
2486-if eval \${$as_ac_Lib+:} false; then :
2487+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2488 $as_echo_n "(cached) " >&6
2489 else
2490 ac_check_lib_save_LIBS=$LIBS
2491@@ -9379,7 +9369,7 @@
2492 as_ac_Lib=`$as_echo "ac_cv_lib_dxml_$sgemm" | $as_tr_sh`
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -ldxml" >&5
2494 $as_echo_n "checking for $sgemm in -ldxml... " >&6; }
2495-if eval \${$as_ac_Lib+:} false; then :
2496+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2497 $as_echo_n "(cached) " >&6
2498 else
2499 ac_check_lib_save_LIBS=$LIBS
2500@@ -9412,7 +9402,7 @@
2501 if test "x$GCC" != xyes; then # only works with Sun CC
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosp in -lsunmath" >&5
2503 $as_echo_n "checking for acosp in -lsunmath... " >&6; }
2504-if ${ac_cv_lib_sunmath_acosp+:} false; then :
2505+if test "${ac_cv_lib_sunmath_acosp+set}" = set; then :
2506 $as_echo_n "(cached) " >&6
2507 else
2508 ac_check_lib_save_LIBS=$LIBS
2509@@ -9433,11 +9423,11 @@
2510 fi
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_acosp" >&5
2512 $as_echo "$ac_cv_lib_sunmath_acosp" >&6; }
2513-if test "x$ac_cv_lib_sunmath_acosp" = xyes; then :
2514+if test "x$ac_cv_lib_sunmath_acosp" = x""yes; then :
2515 as_ac_Lib=`$as_echo "ac_cv_lib_sunperf_$sgemm" | $as_tr_sh`
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lsunperf" >&5
2517 $as_echo_n "checking for $sgemm in -lsunperf... " >&6; }
2518-if eval \${$as_ac_Lib+:} false; then :
2519+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2520 $as_echo_n "(cached) " >&6
2521 else
2522 ac_check_lib_save_LIBS=$LIBS
2523@@ -9475,7 +9465,7 @@
2524 as_ac_Lib=`$as_echo "ac_cv_lib_scs_$sgemm" | $as_tr_sh`
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lscs" >&5
2526 $as_echo_n "checking for $sgemm in -lscs... " >&6; }
2527-if eval \${$as_ac_Lib+:} false; then :
2528+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2529 $as_echo_n "(cached) " >&6
2530 else
2531 ac_check_lib_save_LIBS=$LIBS
2532@@ -9508,7 +9498,7 @@
2533 as_ac_Lib=`$as_echo "ac_cv_lib_complib.sgimath_$sgemm" | $as_tr_sh`
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lcomplib.sgimath" >&5
2535 $as_echo_n "checking for $sgemm in -lcomplib.sgimath... " >&6; }
2536-if eval \${$as_ac_Lib+:} false; then :
2537+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2538 $as_echo_n "(cached) " >&6
2539 else
2540 ac_check_lib_save_LIBS=$LIBS
2541@@ -9544,7 +9534,7 @@
2542 as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5
2544 $as_echo_n "checking for $sgemm in -lblas... " >&6; }
2545-if eval \${$as_ac_Lib+:} false; then :
2546+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2547 $as_echo_n "(cached) " >&6
2548 else
2549 ac_check_lib_save_LIBS=$LIBS
2550@@ -9570,7 +9560,7 @@
2551 as_ac_Lib=`$as_echo "ac_cv_lib_essl_$sgemm" | $as_tr_sh`
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lessl" >&5
2553 $as_echo_n "checking for $sgemm in -lessl... " >&6; }
2554-if eval \${$as_ac_Lib+:} false; then :
2555+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 ac_check_lib_save_LIBS=$LIBS
2559@@ -9609,7 +9599,7 @@
2560 as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5
2562 $as_echo_n "checking for $sgemm in -lblas... " >&6; }
2563-if eval \${$as_ac_Lib+:} false; then :
2564+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 ac_check_lib_save_LIBS=$LIBS
2568@@ -9643,7 +9633,7 @@
2569 as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5
2571 $as_echo_n "checking for $sgemm in -lblas... " >&6; }
2572-if eval \${$as_ac_Lib+:} false; then :
2573+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 ac_check_lib_save_LIBS=$LIBS
2577@@ -9835,7 +9825,7 @@
2578 as_ac_Lib=`$as_echo "ac_cv_lib_mkl_lapack_$dsyev" | $as_tr_sh`
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dsyev in -lmkl_lapack" >&5
2580 $as_echo_n "checking for $dsyev in -lmkl_lapack... " >&6; }
2581-if eval \${$as_ac_Lib+:} false; then :
2582+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 ac_check_lib_save_LIBS=$LIBS
2586@@ -9868,7 +9858,7 @@
2587 as_ac_Lib=`$as_echo "ac_cv_lib_sunperf_$dsyev" | $as_tr_sh`
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dsyev in -lsunperf" >&5
2589 $as_echo_n "checking for $dsyev in -lsunperf... " >&6; }
2590-if eval \${$as_ac_Lib+:} false; then :
2591+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 ac_check_lib_save_LIBS=$LIBS
2595@@ -9919,7 +9909,7 @@
2596 as_ac_Lib=`$as_echo "ac_cv_lib_lapack_$dsyev" | $as_tr_sh`
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dsyev in -llapack" >&5
2598 $as_echo_n "checking for $dsyev in -llapack... " >&6; }
2599-if eval \${$as_ac_Lib+:} false; then :
2600+if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 ac_check_lib_save_LIBS=$LIBS
2604@@ -9980,7 +9970,7 @@
2605
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
2607 $as_echo_n "checking for main in -lstdc++... " >&6; }
2608-if ${ac_cv_lib_stdcpp_main+:} false; then :
2609+if test "${ac_cv_lib_stdcpp_main+set}" = set; then :
2610 $as_echo_n "(cached) " >&6
2611 else
2612 ac_check_lib_save_LIBS=$LIBS
2613@@ -10024,7 +10014,7 @@
2614 fi
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5
2616 $as_echo "$ac_cv_lib_stdcpp_main" >&6; }
2617-if test "x$ac_cv_lib_stdcpp_main" = xyes; then :
2618+if test "x$ac_cv_lib_stdcpp_main" = x""yes; then :
2619 cat >>confdefs.h <<_ACEOF
2620 #define HAVE_LIBSTDC__ 1
2621 _ACEOF
2622@@ -10035,7 +10025,7 @@
2623
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
2625 $as_echo_n "checking for main in -lm... " >&6; }
2626-if ${ac_cv_lib_m_main+:} false; then :
2627+if test "${ac_cv_lib_m_main+set}" = set; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 ac_check_lib_save_LIBS=$LIBS
2631@@ -10079,7 +10069,7 @@
2632 fi
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
2634 $as_echo "$ac_cv_lib_m_main" >&6; }
2635-if test "x$ac_cv_lib_m_main" = xyes; then :
2636+if test "x$ac_cv_lib_m_main" = x""yes; then :
2637 cat >>confdefs.h <<_ACEOF
2638 #define HAVE_LIBM 1
2639 _ACEOF
2640@@ -10090,7 +10080,7 @@
2641
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
2643 $as_echo_n "checking for main in -lpthread... " >&6; }
2644-if ${ac_cv_lib_pthread_main+:} false; then :
2645+if test "${ac_cv_lib_pthread_main+set}" = set; then :
2646 $as_echo_n "(cached) " >&6
2647 else
2648 ac_check_lib_save_LIBS=$LIBS
2649@@ -10134,7 +10124,7 @@
2650 fi
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
2652 $as_echo "$ac_cv_lib_pthread_main" >&6; }
2653-if test "x$ac_cv_lib_pthread_main" = xyes; then :
2654+if test "x$ac_cv_lib_pthread_main" = x""yes; then :
2655 cat >>confdefs.h <<_ACEOF
2656 #define HAVE_LIBPTHREAD 1
2657 _ACEOF
2658@@ -10145,7 +10135,7 @@
2659
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing utInit" >&5
2661 $as_echo_n "checking for library containing utInit... " >&6; }
2662-if ${ac_cv_search_utInit+:} false; then :
2663+if test "${ac_cv_search_utInit+set}" = set; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 ac_func_search_save_LIBS=$LIBS
2667@@ -10195,11 +10185,11 @@
2668 fi
2669 rm -f core conftest.err conftest.$ac_objext \
2670 conftest$ac_exeext
2671- if ${ac_cv_search_utInit+:} false; then :
2672+ if test "${ac_cv_search_utInit+set}" = set; then :
2673 break
2674 fi
2675 done
2676-if ${ac_cv_search_utInit+:} false; then :
2677+if test "${ac_cv_search_utInit+set}" = set; then :
2678
2679 else
2680 ac_cv_search_utInit=no
2681@@ -10243,7 +10233,7 @@
2682 if test "$enable_openmp" != no; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
2684 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
2685-if ${ac_cv_prog_cxx_openmp+:} false; then :
2686+if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
2687 $as_echo_n "(cached) " >&6
2688 else
2689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2690@@ -10643,7 +10633,7 @@
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2692 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2693 if test -z "$INSTALL"; then
2694-if ${ac_cv_path_install+:} false; then :
2695+if test "${ac_cv_path_install+set}" = set; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699@@ -10723,7 +10713,7 @@
2700 set dummy gmake; ac_word=$2
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703-if ${ac_cv_prog_MAKE+:} false; then :
2704+if test "${ac_cv_prog_MAKE+set}" = set; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if test -n "$MAKE"; then
2708@@ -10765,7 +10755,7 @@
2709 set dummy ar; ac_word=$2
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711 $as_echo_n "checking for $ac_word... " >&6; }
2712-if ${ac_cv_prog_AR+:} false; then :
2713+if test "${ac_cv_prog_AR+set}" = set; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 if test -n "$AR"; then
2717@@ -10805,7 +10795,7 @@
2718 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721-if ${ac_cv_prog_RANLIB+:} false; then :
2722+if test "${ac_cv_prog_RANLIB+set}" = set; then :
2723 $as_echo_n "(cached) " >&6
2724 else
2725 if test -n "$RANLIB"; then
2726@@ -10845,7 +10835,7 @@
2727 set dummy ranlib; ac_word=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730-if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2731+if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
2732 $as_echo_n "(cached) " >&6
2733 else
2734 if test -n "$ac_ct_RANLIB"; then
2735@@ -11068,7 +11058,7 @@
2736 set dummy $ac_prog; ac_word=$2
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739-if ${ac_cv_prog_MPIF90+:} false; then :
2740+if test "${ac_cv_prog_MPIF90+set}" = set; then :
2741 $as_echo_n "(cached) " >&6
2742 else
2743 if test -n "$MPIF90"; then
2744@@ -11114,7 +11104,7 @@
2745 set dummy $ac_prog; ac_word=$2
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747 $as_echo_n "checking for $ac_word... " >&6; }
2748-if ${ac_cv_prog_MPIF77+:} false; then :
2749+if test "${ac_cv_prog_MPIF77+set}" = set; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 if test -n "$MPIF77"; then
2753@@ -11158,7 +11148,7 @@
2754 set dummy $ac_prog; ac_word=$2
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757-if ${ac_cv_prog_MPICC+:} false; then :
2758+if test "${ac_cv_prog_MPICC+set}" = set; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 if test -n "$MPICC"; then
2762@@ -11201,7 +11191,7 @@
2763 set dummy $ac_prog; ac_word=$2
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766-if ${ac_cv_prog_MPICXX+:} false; then :
2767+if test "${ac_cv_prog_MPICXX+set}" = set; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 if test -n "$MPICXX"; then
2771@@ -11467,7 +11457,7 @@
2772 fi
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nc_create in -lnetcdf" >&5
2774 $as_echo_n "checking for nc_create in -lnetcdf... " >&6; }
2775-if ${ac_cv_lib_netcdf_nc_create+:} false; then :
2776+if test "${ac_cv_lib_netcdf_nc_create+set}" = set; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 ac_check_lib_save_LIBS=$LIBS
2780@@ -11517,7 +11507,7 @@
2781 fi
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netcdf_nc_create" >&5
2783 $as_echo "$ac_cv_lib_netcdf_nc_create" >&6; }
2784-if test "x$ac_cv_lib_netcdf_nc_create" = xyes; then :
2785+if test "x$ac_cv_lib_netcdf_nc_create" = x""yes; then :
2786 cat >>confdefs.h <<_ACEOF
2787 #define HAVE_LIBNETCDF 1
2788 _ACEOF
2789@@ -11535,7 +11525,7 @@
2790 # Check for separate fortran lib.
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncopn_ in -lnetcdff" >&5
2792 $as_echo_n "checking for ncopn_ in -lnetcdff... " >&6; }
2793-if ${ac_cv_lib_netcdff_ncopn_+:} false; then :
2794+if test "${ac_cv_lib_netcdff_ncopn_+set}" = set; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 ac_check_lib_save_LIBS=$LIBS
2798@@ -11585,7 +11575,7 @@
2799 fi
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netcdff_ncopn_" >&5
2801 $as_echo "$ac_cv_lib_netcdff_ncopn_" >&6; }
2802-if test "x$ac_cv_lib_netcdff_ncopn_" = xyes; then :
2803+if test "x$ac_cv_lib_netcdff_ncopn_" = x""yes; then :
2804 cat >>confdefs.h <<_ACEOF
2805 #define HAVE_LIBNETCDFF 1
2806 _ACEOF
2807@@ -11628,7 +11618,7 @@
2808 LIBS="$tmpLIBS -L$ParMetis_LIBS_PATH -lparmetis -lmetis -lm"
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ParMETIS_V3_AdaptiveRepart in -lparmetis" >&5
2810 $as_echo_n "checking for ParMETIS_V3_AdaptiveRepart in -lparmetis... " >&6; }
2811-if ${ac_cv_lib_parmetis_ParMETIS_V3_AdaptiveRepart+:} false; then :
2812+if test "${ac_cv_lib_parmetis_ParMETIS_V3_AdaptiveRepart+set}" = set; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 ac_check_lib_save_LIBS=$LIBS
2816@@ -11678,7 +11668,7 @@
2817 fi
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_parmetis_ParMETIS_V3_AdaptiveRepart" >&5
2819 $as_echo "$ac_cv_lib_parmetis_ParMETIS_V3_AdaptiveRepart" >&6; }
2820-if test "x$ac_cv_lib_parmetis_ParMETIS_V3_AdaptiveRepart" = xyes; then :
2821+if test "x$ac_cv_lib_parmetis_ParMETIS_V3_AdaptiveRepart" = x""yes; then :
2822
2823 $as_echo "#define HAVE_PARMETIS 1" >>confdefs.h
2824
2825@@ -11756,7 +11746,7 @@
2826
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zoltan_Initialize in -lzoltan" >&5
2828 $as_echo_n "checking for Zoltan_Initialize in -lzoltan... " >&6; }
2829-if ${ac_cv_lib_zoltan_Zoltan_Initialize+:} false; then :
2830+if test "${ac_cv_lib_zoltan_Zoltan_Initialize+set}" = set; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 ac_check_lib_save_LIBS=$LIBS
2834@@ -11806,7 +11796,7 @@
2835 fi
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zoltan_Zoltan_Initialize" >&5
2837 $as_echo "$ac_cv_lib_zoltan_Zoltan_Initialize" >&6; }
2838-if test "x$ac_cv_lib_zoltan_Zoltan_Initialize" = xyes; then :
2839+if test "x$ac_cv_lib_zoltan_Zoltan_Initialize" = x""yes; then :
2840
2841 $as_echo "#define HAVE_ZOLTAN 1" >>confdefs.h
2842
2843@@ -11888,7 +11878,7 @@
2844
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for adj_register_equation in -ladjoint" >&5
2846 $as_echo_n "checking for adj_register_equation in -ladjoint... " >&6; }
2847-if ${ac_cv_lib_adjoint_adj_register_equation+:} false; then :
2848+if test "${ac_cv_lib_adjoint_adj_register_equation+set}" = set; then :
2849 $as_echo_n "(cached) " >&6
2850 else
2851 ac_check_lib_save_LIBS=$LIBS
2852@@ -11938,7 +11928,7 @@
2853 fi
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_adjoint_adj_register_equation" >&5
2855 $as_echo "$ac_cv_lib_adjoint_adj_register_equation" >&6; }
2856-if test "x$ac_cv_lib_adjoint_adj_register_equation" = xyes; then :
2857+if test "x$ac_cv_lib_adjoint_adj_register_equation" = x""yes; then :
2858
2859 $as_echo "#define HAVE_ADJOINT 1" >>confdefs.h
2860 HAVE_ADJOINT=yes
2861@@ -11984,8 +11974,8 @@
2862 have_x=disabled
2863 else
2864 case $x_includes,$x_libraries in #(
2865- *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
2866- *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
2867+ *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
2868+ *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 # One or both of the vars are not set, and there is no cached value.
2872@@ -12332,7 +12322,7 @@
2873 else
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
2875 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
2876-if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
2877+if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
2878 $as_echo_n "(cached) " >&6
2879 else
2880 ac_check_lib_save_LIBS=$LIBS
2881@@ -12382,14 +12372,14 @@
2882 fi
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2884 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
2885-if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
2886+if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
2887 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2888 fi
2889
2890 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
2892 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
2893-if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
2894+if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
2895 $as_echo_n "(cached) " >&6
2896 else
2897 ac_check_lib_save_LIBS=$LIBS
2898@@ -12439,7 +12429,7 @@
2899 fi
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2901 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
2902-if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
2903+if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
2904 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2905 fi
2906
2907@@ -12458,14 +12448,14 @@
2908 # The functions gethostbyname, getservbyname, and inet_addr are
2909 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2910 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
2911-if test "x$ac_cv_func_gethostbyname" = xyes; then :
2912+if test "x$ac_cv_func_gethostbyname" = x""yes; then :
2913
2914 fi
2915
2916 if test $ac_cv_func_gethostbyname = no; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
2918 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
2919-if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
2920+if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
2921 $as_echo_n "(cached) " >&6
2922 else
2923 ac_check_lib_save_LIBS=$LIBS
2924@@ -12515,14 +12505,14 @@
2925 fi
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
2927 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
2928-if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
2929+if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
2930 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2931 fi
2932
2933 if test $ac_cv_lib_nsl_gethostbyname = no; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
2935 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
2936-if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
2937+if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
2938 $as_echo_n "(cached) " >&6
2939 else
2940 ac_check_lib_save_LIBS=$LIBS
2941@@ -12572,7 +12562,7 @@
2942 fi
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
2944 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
2945-if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
2946+if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
2947 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
2948 fi
2949
2950@@ -12587,14 +12577,14 @@
2951 # must be given before -lnsl if both are needed. We assume that
2952 # if connect needs -lnsl, so does gethostbyname.
2953 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
2954-if test "x$ac_cv_func_connect" = xyes; then :
2955+if test "x$ac_cv_func_connect" = x""yes; then :
2956
2957 fi
2958
2959 if test $ac_cv_func_connect = no; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
2961 $as_echo_n "checking for connect in -lsocket... " >&6; }
2962-if ${ac_cv_lib_socket_connect+:} false; then :
2963+if test "${ac_cv_lib_socket_connect+set}" = set; then :
2964 $as_echo_n "(cached) " >&6
2965 else
2966 ac_check_lib_save_LIBS=$LIBS
2967@@ -12644,7 +12634,7 @@
2968 fi
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
2970 $as_echo "$ac_cv_lib_socket_connect" >&6; }
2971-if test "x$ac_cv_lib_socket_connect" = xyes; then :
2972+if test "x$ac_cv_lib_socket_connect" = x""yes; then :
2973 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2974 fi
2975
2976@@ -12652,14 +12642,14 @@
2977
2978 # Guillermo Gomez says -lposix is necessary on A/UX.
2979 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
2980-if test "x$ac_cv_func_remove" = xyes; then :
2981+if test "x$ac_cv_func_remove" = x""yes; then :
2982
2983 fi
2984
2985 if test $ac_cv_func_remove = no; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
2987 $as_echo_n "checking for remove in -lposix... " >&6; }
2988-if ${ac_cv_lib_posix_remove+:} false; then :
2989+if test "${ac_cv_lib_posix_remove+set}" = set; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 ac_check_lib_save_LIBS=$LIBS
2993@@ -12709,7 +12699,7 @@
2994 fi
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
2996 $as_echo "$ac_cv_lib_posix_remove" >&6; }
2997-if test "x$ac_cv_lib_posix_remove" = xyes; then :
2998+if test "x$ac_cv_lib_posix_remove" = x""yes; then :
2999 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3000 fi
3001
3002@@ -12717,14 +12707,14 @@
3003
3004 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3005 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
3006-if test "x$ac_cv_func_shmat" = xyes; then :
3007+if test "x$ac_cv_func_shmat" = x""yes; then :
3008
3009 fi
3010
3011 if test $ac_cv_func_shmat = no; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
3013 $as_echo_n "checking for shmat in -lipc... " >&6; }
3014-if ${ac_cv_lib_ipc_shmat+:} false; then :
3015+if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 ac_check_lib_save_LIBS=$LIBS
3019@@ -12774,7 +12764,7 @@
3020 fi
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
3022 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
3023-if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
3024+if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
3025 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3026 fi
3027
3028@@ -12792,7 +12782,7 @@
3029 # John Interrante, Karl Berry
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
3031 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
3032-if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
3033+if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
3034 $as_echo_n "(cached) " >&6
3035 else
3036 ac_check_lib_save_LIBS=$LIBS
3037@@ -12842,7 +12832,7 @@
3038 fi
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3040 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
3041-if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
3042+if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
3043 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3044 fi
3045
3046@@ -12958,7 +12948,11 @@
3047 PetscInt i,j,II,JJ,m,n,its
3048 PetscInt Istart,Iend,ione
3049 PetscErrorCode ierr
3050+#if PETSC_VERSION_MINOR==2
3051+ PetscBool flg
3052+#else
3053 PetscTruth flg
3054+#endif
3055 PetscScalar v,one,neg_one
3056 Vec x,b,u
3057 Mat A
3058@@ -13045,7 +13039,7 @@
3059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3061 as_fn_error $? "Failed to compile and link PETSc program.
3062-See \`config.log' for more details" "$LINENO" 5; }
3063+See \`config.log' for more details" "$LINENO" 5 ; }
3064 fi
3065 rm -f core conftest.err conftest.$ac_objext \
3066 conftest$ac_exeext conftest.$ac_ext
3067@@ -13092,7 +13086,7 @@
3068
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing PCHYPRESetType" >&5
3070 $as_echo_n "checking for library containing PCHYPRESetType... " >&6; }
3071-if ${ac_cv_search_PCHYPRESetType+:} false; then :
3072+if test "${ac_cv_search_PCHYPRESetType+set}" = set; then :
3073 $as_echo_n "(cached) " >&6
3074 else
3075 ac_func_search_save_LIBS=$LIBS
3076@@ -13113,11 +13107,11 @@
3077 fi
3078 rm -f core conftest.err conftest.$ac_objext \
3079 conftest$ac_exeext
3080- if ${ac_cv_search_PCHYPRESetType+:} false; then :
3081+ if test "${ac_cv_search_PCHYPRESetType+set}" = set; then :
3082 break
3083 fi
3084 done
3085-if ${ac_cv_search_PCHYPRESetType+:} false; then :
3086+if test "${ac_cv_search_PCHYPRESetType+set}" = set; then :
3087
3088 else
3089 ac_cv_search_PCHYPRESetType=no
3090@@ -13171,7 +13165,7 @@
3091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3093 as_fn_error $? "cannot run test program while cross compiling
3094-See \`config.log' for more details" "$LINENO" 5; }
3095+See \`config.log' for more details" "$LINENO" 5 ; }
3096 else
3097 cat > conftest.$ac_ext <<_ACEOF
3098 program main
3099@@ -13206,7 +13200,7 @@
3100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102 as_fn_error $? "cannot run test program while cross compiling
3103-See \`config.log' for more details" "$LINENO" 5; }
3104+See \`config.log' for more details" "$LINENO" 5 ; }
3105 else
3106 cat > conftest.$ac_ext <<_ACEOF
3107 program main
3108@@ -13241,7 +13235,7 @@
3109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3111 as_fn_error $? "cannot run test program while cross compiling
3112-See \`config.log' for more details" "$LINENO" 5; }
3113+See \`config.log' for more details" "$LINENO" 5 ; }
3114 else
3115 cat > conftest.$ac_ext <<_ACEOF
3116 program main
3117@@ -13278,7 +13272,7 @@
3118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3120 as_fn_error $? "cannot run test program while cross compiling
3121-See \`config.log' for more details" "$LINENO" 5; }
3122+See \`config.log' for more details" "$LINENO" 5 ; }
3123 else
3124 cat > conftest.$ac_ext <<_ACEOF
3125 program main
3126@@ -13545,6 +13539,7 @@
3127
3128
3129
3130+
3131 if test "$smart_fortran" = "yes" ; then
3132 F77=$MPIF90
3133 else
3134@@ -13620,7 +13615,7 @@
3135 # This bug is HP SR number 8606223364.
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
3137 $as_echo_n "checking size of void *... " >&6; }
3138-if ${ac_cv_sizeof_void_p+:} false; then :
3139+if test "${ac_cv_sizeof_void_p+set}" = set; then :
3140 $as_echo_n "(cached) " >&6
3141 else
3142 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
3143@@ -13630,7 +13625,7 @@
3144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 as_fn_error 77 "cannot compute sizeof (void *)
3147-See \`config.log' for more details" "$LINENO" 5; }
3148+See \`config.log' for more details" "$LINENO" 5 ; }
3149 else
3150 ac_cv_sizeof_void_p=0
3151 fi
3152@@ -13677,7 +13672,9 @@
3153 $as_echo "$as_me: Building on hector xe6; disabling shared libraries" >&6;}
3154 SHFLAG=--disable-shared
3155 SPUD_ONLY="yes"
3156+ FLLINKER=$CXX
3157 else
3158+ FLLINKER=$FC
3159 SHFLAG=--enable-shared
3160 fi
3161
3162@@ -13763,7 +13760,7 @@
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsaupd in -larpack" >&5
3165 $as_echo_n "checking for dsaupd in -larpack... " >&6; }
3166-if ${ac_cv_lib_arpack_dsaupd+:} false; then :
3167+if test "${ac_cv_lib_arpack_dsaupd+set}" = set; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 ac_check_lib_save_LIBS=$LIBS
3171@@ -13784,7 +13781,7 @@
3172 fi
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_arpack_dsaupd" >&5
3174 $as_echo "$ac_cv_lib_arpack_dsaupd" >&6; }
3175-if test "x$ac_cv_lib_arpack_dsaupd" = xyes; then :
3176+if test "x$ac_cv_lib_arpack_dsaupd" = x""yes; then :
3177 cat >>confdefs.h <<_ACEOF
3178 #define HAVE_LIBARPACK 1
3179 _ACEOF
3180@@ -13871,7 +13868,7 @@
3181 # header files are another matter.
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
3183 $as_echo_n "checking for main in -ldl... " >&6; }
3184-if ${ac_cv_lib_dl_main+:} false; then :
3185+if test "${ac_cv_lib_dl_main+set}" = set; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 ac_check_lib_save_LIBS=$LIBS
3189@@ -13915,7 +13912,7 @@
3190 fi
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
3192 $as_echo "$ac_cv_lib_dl_main" >&6; }
3193-if test "x$ac_cv_lib_dl_main" = xyes; then :
3194+if test "x$ac_cv_lib_dl_main" = x""yes; then :
3195 cat >>confdefs.h <<_ACEOF
3196 #define HAVE_LIBDL 1
3197 _ACEOF
3198@@ -13926,7 +13923,7 @@
3199
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lvtksys" >&5
3201 $as_echo_n "checking for main in -lvtksys... " >&6; }
3202-if ${ac_cv_lib_vtksys_main+:} false; then :
3203+if test "${ac_cv_lib_vtksys_main+set}" = set; then :
3204 $as_echo_n "(cached) " >&6
3205 else
3206 ac_check_lib_save_LIBS=$LIBS
3207@@ -13970,7 +13967,7 @@
3208 fi
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vtksys_main" >&5
3210 $as_echo "$ac_cv_lib_vtksys_main" >&6; }
3211-if test "x$ac_cv_lib_vtksys_main" = xyes; then :
3212+if test "x$ac_cv_lib_vtksys_main" = x""yes; then :
3213 cat >>confdefs.h <<_ACEOF
3214 #define HAVE_LIBVTKSYS 1
3215 _ACEOF
3216@@ -13981,7 +13978,7 @@
3217
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lvtkCommon" >&5
3219 $as_echo_n "checking for main in -lvtkCommon... " >&6; }
3220-if ${ac_cv_lib_vtkCommon_main+:} false; then :
3221+if test "${ac_cv_lib_vtkCommon_main+set}" = set; then :
3222 $as_echo_n "(cached) " >&6
3223 else
3224 ac_check_lib_save_LIBS=$LIBS
3225@@ -14025,7 +14022,7 @@
3226 fi
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vtkCommon_main" >&5
3228 $as_echo "$ac_cv_lib_vtkCommon_main" >&6; }
3229-if test "x$ac_cv_lib_vtkCommon_main" = xyes; then :
3230+if test "x$ac_cv_lib_vtkCommon_main" = x""yes; then :
3231 cat >>confdefs.h <<_ACEOF
3232 #define HAVE_LIBVTKCOMMON 1
3233 _ACEOF
3234@@ -14038,7 +14035,7 @@
3235 unset ac_cv_lib_vtkCommon_main
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lvtkCommon" >&5
3237 $as_echo_n "checking for main in -lvtkCommon... " >&6; }
3238-if ${ac_cv_lib_vtkCommon_main+:} false; then :
3239+if test "${ac_cv_lib_vtkCommon_main+set}" = set; then :
3240 $as_echo_n "(cached) " >&6
3241 else
3242 ac_check_lib_save_LIBS=$LIBS
3243@@ -14082,7 +14079,7 @@
3244 fi
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vtkCommon_main" >&5
3246 $as_echo "$ac_cv_lib_vtkCommon_main" >&6; }
3247-if test "x$ac_cv_lib_vtkCommon_main" = xyes; then :
3248+if test "x$ac_cv_lib_vtkCommon_main" = x""yes; then :
3249 cat >>confdefs.h <<_ACEOF
3250 #define HAVE_LIBVTKCOMMON 1
3251 _ACEOF
3252@@ -14105,7 +14102,7 @@
3253
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lvtkzlib" >&5
3255 $as_echo_n "checking for main in -lvtkzlib... " >&6; }
3256-if ${ac_cv_lib_vtkzlib_main+:} false; then :
3257+if test "${ac_cv_lib_vtkzlib_main+set}" = set; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 ac_check_lib_save_LIBS=$LIBS
3261@@ -14149,7 +14146,7 @@
3262 fi
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vtkzlib_main" >&5
3264 $as_echo "$ac_cv_lib_vtkzlib_main" >&6; }
3265-if test "x$ac_cv_lib_vtkzlib_main" = xyes; then :
3266+if test "x$ac_cv_lib_vtkzlib_main" = x""yes; then :
3267 cat >>confdefs.h <<_ACEOF
3268 #define HAVE_LIBVTKZLIB 1
3269 _ACEOF
3270@@ -14160,7 +14157,7 @@
3271
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lvtkexpat" >&5
3273 $as_echo_n "checking for main in -lvtkexpat... " >&6; }
3274-if ${ac_cv_lib_vtkexpat_main+:} false; then :
3275+if test "${ac_cv_lib_vtkexpat_main+set}" = set; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 ac_check_lib_save_LIBS=$LIBS
3279@@ -14204,7 +14201,7 @@
3280 fi
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vtkexpat_main" >&5
3282 $as_echo "$ac_cv_lib_vtkexpat_main" >&6; }
3283-if test "x$ac_cv_lib_vtkexpat_main" = xyes; then :
3284+if test "x$ac_cv_lib_vtkexpat_main" = x""yes; then :
3285 cat >>confdefs.h <<_ACEOF
3286 #define HAVE_LIBVTKEXPAT 1
3287 _ACEOF
3288@@ -14215,7 +14212,7 @@
3289
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lvtkFiltering" >&5
3291 $as_echo_n "checking for main in -lvtkFiltering... " >&6; }
3292-if ${ac_cv_lib_vtkFiltering_main+:} false; then :
3293+if test "${ac_cv_lib_vtkFiltering_main+set}" = set; then :
3294 $as_echo_n "(cached) " >&6
3295 else
3296 ac_check_lib_save_LIBS=$LIBS
3297@@ -14259,7 +14256,7 @@
3298 fi
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vtkFiltering_main" >&5
3300 $as_echo "$ac_cv_lib_vtkFiltering_main" >&6; }
3301-if test "x$ac_cv_lib_vtkFiltering_main" = xyes; then :
3302+if test "x$ac_cv_lib_vtkFiltering_main" = x""yes; then :
3303 cat >>confdefs.h <<_ACEOF
3304 #define HAVE_LIBVTKFILTERING 1
3305 _ACEOF
3306@@ -14270,7 +14267,7 @@
3307
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lvtkGraphics" >&5
3309 $as_echo_n "checking for main in -lvtkGraphics... " >&6; }
3310-if ${ac_cv_lib_vtkGraphics_main+:} false; then :
3311+if test "${ac_cv_lib_vtkGraphics_main+set}" = set; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 ac_check_lib_save_LIBS=$LIBS
3315@@ -14314,7 +14311,7 @@
3316 fi
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vtkGraphics_main" >&5
3318 $as_echo "$ac_cv_lib_vtkGraphics_main" >&6; }
3319-if test "x$ac_cv_lib_vtkGraphics_main" = xyes; then :
3320+if test "x$ac_cv_lib_vtkGraphics_main" = x""yes; then :
3321 cat >>confdefs.h <<_ACEOF
3322 #define HAVE_LIBVTKGRAPHICS 1
3323 _ACEOF
3324@@ -14325,7 +14322,7 @@
3325
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lvtkIO" >&5
3327 $as_echo_n "checking for main in -lvtkIO... " >&6; }
3328-if ${ac_cv_lib_vtkIO_main+:} false; then :
3329+if test "${ac_cv_lib_vtkIO_main+set}" = set; then :
3330 $as_echo_n "(cached) " >&6
3331 else
3332 ac_check_lib_save_LIBS=$LIBS
3333@@ -14369,7 +14366,7 @@
3334 fi
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vtkIO_main" >&5
3336 $as_echo "$ac_cv_lib_vtkIO_main" >&6; }
3337-if test "x$ac_cv_lib_vtkIO_main" = xyes; then :
3338+if test "x$ac_cv_lib_vtkIO_main" = x""yes; then :
3339 cat >>confdefs.h <<_ACEOF
3340 #define HAVE_LIBVTKIO 1
3341 _ACEOF
3342@@ -14393,7 +14390,7 @@
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3344 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3345 if test -z "$CXXCPP"; then
3346- if ${ac_cv_prog_CXXCPP+:} false; then :
3347+ if test "${ac_cv_prog_CXXCPP+set}" = set; then :
3348 $as_echo_n "(cached) " >&6
3349 else
3350 # Double quotes because CXXCPP needs to be expanded
3351@@ -14509,7 +14506,7 @@
3352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3355-See \`config.log' for more details" "$LINENO" 5; }
3356+See \`config.log' for more details" "$LINENO" 5 ; }
3357 fi
3358
3359 ac_ext=cpp
3360@@ -14520,13 +14517,13 @@
3361
3362
3363 ac_fn_cxx_check_header_mongrel "$LINENO" "vtkCellData.h" "ac_cv_header_vtkCellData_h" "$ac_includes_default"
3364-if test "x$ac_cv_header_vtkCellData_h" = xyes; then :
3365+if test "x$ac_cv_header_vtkCellData_h" = x""yes; then :
3366 CPPFLAGS="$CPPFLAGS -DHAVE_VTK=1"
3367 VTK=yes
3368
3369 else
3370 ac_fn_cxx_check_header_mongrel "$LINENO" "vtk-5.0/vtkCellData.h" "ac_cv_header_vtk_5_0_vtkCellData_h" "$ac_includes_default"
3371-if test "x$ac_cv_header_vtk_5_0_vtkCellData_h" = xyes; then :
3372+if test "x$ac_cv_header_vtk_5_0_vtkCellData_h" = x""yes; then :
3373 CPPFLAGS="$CPPFLAGS -DHAVE_VTK=1"
3374 VTK=yes
3375 vtk_header_relative_path="vtk-5.0/"
3376@@ -14683,7 +14680,7 @@
3377 if test "$enable_hyperlight" = "yes"; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hyperlight/Hyperlight.h" >&5
3379 $as_echo_n "checking for hyperlight/Hyperlight.h... " >&6; }
3380-if ${ac_cv_file_hyperlight_Hyperlight_h+:} false; then :
3381+if test "${ac_cv_file_hyperlight_Hyperlight_h+set}" = set; then :
3382 $as_echo_n "(cached) " >&6
3383 else
3384 test "$cross_compiling" = yes &&
3385@@ -14696,7 +14693,7 @@
3386 fi
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_hyperlight_Hyperlight_h" >&5
3388 $as_echo "$ac_cv_file_hyperlight_Hyperlight_h" >&6; }
3389-if test "x$ac_cv_file_hyperlight_Hyperlight_h" = xyes; then :
3390+if test "x$ac_cv_file_hyperlight_Hyperlight_h" = x""yes; then :
3391
3392 cat >>confdefs.h <<_ACEOF
3393 #define HAVE_HYPERLIGHT_HYPERLIGHT_H 1
3394@@ -14714,7 +14711,7 @@
3395 fi
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hyperlight/Hyperlight.cpp" >&5
3397 $as_echo_n "checking for hyperlight/Hyperlight.cpp... " >&6; }
3398-if ${ac_cv_file_hyperlight_Hyperlight_cpp+:} false; then :
3399+if test "${ac_cv_file_hyperlight_Hyperlight_cpp+set}" = set; then :
3400 $as_echo_n "(cached) " >&6
3401 else
3402 test "$cross_compiling" = yes &&
3403@@ -14727,7 +14724,7 @@
3404 fi
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_hyperlight_Hyperlight_cpp" >&5
3406 $as_echo "$ac_cv_file_hyperlight_Hyperlight_cpp" >&6; }
3407-if test "x$ac_cv_file_hyperlight_Hyperlight_cpp" = xyes; then :
3408+if test "x$ac_cv_file_hyperlight_Hyperlight_cpp" = x""yes; then :
3409
3410 cat >>confdefs.h <<_ACEOF
3411 #define HAVE_HYPERLIGHT_HYPERLIGHT_CPP 1
3412@@ -14745,7 +14742,7 @@
3413 fi
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hyperlight/Sky.h" >&5
3415 $as_echo_n "checking for hyperlight/Sky.h... " >&6; }
3416-if ${ac_cv_file_hyperlight_Sky_h+:} false; then :
3417+if test "${ac_cv_file_hyperlight_Sky_h+set}" = set; then :
3418 $as_echo_n "(cached) " >&6
3419 else
3420 test "$cross_compiling" = yes &&
3421@@ -14758,7 +14755,7 @@
3422 fi
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_hyperlight_Sky_h" >&5
3424 $as_echo "$ac_cv_file_hyperlight_Sky_h" >&6; }
3425-if test "x$ac_cv_file_hyperlight_Sky_h" = xyes; then :
3426+if test "x$ac_cv_file_hyperlight_Sky_h" = x""yes; then :
3427
3428 cat >>confdefs.h <<_ACEOF
3429 #define HAVE_HYPERLIGHT_SKY_H 1
3430@@ -14776,7 +14773,7 @@
3431 fi
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hyperlight/Sky.cpp" >&5
3433 $as_echo_n "checking for hyperlight/Sky.cpp... " >&6; }
3434-if ${ac_cv_file_hyperlight_Sky_cpp+:} false; then :
3435+if test "${ac_cv_file_hyperlight_Sky_cpp+set}" = set; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 test "$cross_compiling" = yes &&
3439@@ -14789,7 +14786,7 @@
3440 fi
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_hyperlight_Sky_cpp" >&5
3442 $as_echo "$ac_cv_file_hyperlight_Sky_cpp" >&6; }
3443-if test "x$ac_cv_file_hyperlight_Sky_cpp" = xyes; then :
3444+if test "x$ac_cv_file_hyperlight_Sky_cpp" = x""yes; then :
3445
3446 cat >>confdefs.h <<_ACEOF
3447 #define HAVE_HYPERLIGHT_SKY_CPP 1
3448@@ -14807,7 +14804,7 @@
3449 fi
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hyperlight/Iop.h" >&5
3451 $as_echo_n "checking for hyperlight/Iop.h... " >&6; }
3452-if ${ac_cv_file_hyperlight_Iop_h+:} false; then :
3453+if test "${ac_cv_file_hyperlight_Iop_h+set}" = set; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 test "$cross_compiling" = yes &&
3457@@ -14820,7 +14817,7 @@
3458 fi
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_hyperlight_Iop_h" >&5
3460 $as_echo "$ac_cv_file_hyperlight_Iop_h" >&6; }
3461-if test "x$ac_cv_file_hyperlight_Iop_h" = xyes; then :
3462+if test "x$ac_cv_file_hyperlight_Iop_h" = x""yes; then :
3463
3464 cat >>confdefs.h <<_ACEOF
3465 #define HAVE_HYPERLIGHT_IOP_H 1
3466@@ -14838,7 +14835,7 @@
3467 fi
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hyperlight/Iop.cpp" >&5
3469 $as_echo_n "checking for hyperlight/Iop.cpp... " >&6; }
3470-if ${ac_cv_file_hyperlight_Iop_cpp+:} false; then :
3471+if test "${ac_cv_file_hyperlight_Iop_cpp+set}" = set; then :
3472 $as_echo_n "(cached) " >&6
3473 else
3474 test "$cross_compiling" = yes &&
3475@@ -14851,7 +14848,7 @@
3476 fi
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_hyperlight_Iop_cpp" >&5
3478 $as_echo "$ac_cv_file_hyperlight_Iop_cpp" >&6; }
3479-if test "x$ac_cv_file_hyperlight_Iop_cpp" = xyes; then :
3480+if test "x$ac_cv_file_hyperlight_Iop_cpp" = x""yes; then :
3481
3482 cat >>confdefs.h <<_ACEOF
3483 #define HAVE_HYPERLIGHT_IOP_CPP 1
3484@@ -14870,7 +14867,7 @@
3485
3486 fi
3487
3488-ac_config_files="$ac_config_files Makefile debug/Makefile bathymetry/Makefile ocean_forcing/Makefile ocean_forcing/tests/Makefile sediments/Makefile hyperlight/Makefile femtools/Makefile femtools/tests/Makefile forward_interfaces/Makefile horizontal_adaptivity/Makefile horizontal_adaptivity/tests/Makefile preprocessor/Makefile error_measures/Makefile error_measures/tests/Makefile parameterisation/Makefile parameterisation/tests/Makefile fldecomp/Makefile assemble/Makefile assemble/tests/Makefile diagnostics/Makefile main/Makefile tools/Makefile python/setup.py adjoint/Makefile adjoint/tests/Makefile climatology/Makefile libmba2d/Makefile libmba3d/Makefile libjudy/Makefile libjudy/src/Makefile libjudy/src/JudyCommon/Makefile libjudy/src/Judy1/Makefile libjudy/src/JudyL/Makefile libjudy/src/JudySL/Makefile libjudy/src/JudyHS/Makefile libalgencan/Makefile libwm/Makefile libvtkfortran/Makefile reduced_modelling/Makefile"
3489+ac_config_files="$ac_config_files Makefile debug/Makefile bathymetry/Makefile ocean_forcing/Makefile ocean_forcing/tests/Makefile sediments/Makefile hyperlight/Makefile femtools/Makefile femtools/tests/Makefile forward_interfaces/Makefile horizontal_adaptivity/Makefile horizontal_adaptivity/tests/Makefile preprocessor/Makefile error_measures/Makefile error_measures/tests/Makefile parameterisation/Makefile parameterisation/tests/Makefile fldecomp/Makefile assemble/Makefile assemble/tests/Makefile diagnostics/Makefile main/Makefile tools/Makefile python/setup.py adjoint/Makefile adjoint/tests/Makefile climatology/Makefile libmba2d/Makefile libmba3d/Makefile libjudy/Makefile libjudy/src/Makefile libjudy/src/JudyCommon/Makefile libjudy/src/Judy1/Makefile libjudy/src/JudyL/Makefile libjudy/src/JudySL/Makefile libjudy/src/JudyHS/Makefile libalgencan/Makefile libwm/Makefile libvtkfortran/Makefile schemas/flml reduced_modelling/Makefile"
3490
3491 cat >confcache <<\_ACEOF
3492 # This file is a shell script that caches the results of configure
3493@@ -14936,21 +14933,10 @@
3494 :end' >>confcache
3495 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3496 if test -w "$cache_file"; then
3497- if test "x$cache_file" != "x/dev/null"; then
3498+ test "x$cache_file" != "x/dev/null" &&
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3500 $as_echo "$as_me: updating cache $cache_file" >&6;}
3501- if test ! -f "$cache_file" || test -h "$cache_file"; then
3502- cat confcache >"$cache_file"
3503- else
3504- case $cache_file in #(
3505- */* | ?:*)
3506- mv -f confcache "$cache_file"$$ &&
3507- mv -f "$cache_file"$$ "$cache_file" ;; #(
3508- *)
3509- mv -f confcache "$cache_file" ;;
3510- esac
3511- fi
3512- fi
3513+ cat confcache >$cache_file
3514 else
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3516 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3517@@ -14982,7 +14968,7 @@
3518
3519
3520
3521-: "${CONFIG_STATUS=./config.status}"
3522+: ${CONFIG_STATUS=./config.status}
3523 ac_write_fail=0
3524 ac_clean_files_save=$ac_clean_files
3525 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3526@@ -15083,7 +15069,6 @@
3527 IFS=" "" $as_nl"
3528
3529 # Find who we are. Look in the path if we contain no directory separator.
3530-as_myself=
3531 case $0 in #((
3532 *[\\/]* ) as_myself=$0 ;;
3533 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534@@ -15390,8 +15375,8 @@
3535 # report actual input values of CONFIG_FILES etc. instead of their
3536 # values after options handling.
3537 ac_log="
3538-This file was extended by fluidity $as_me trunk.3665, which was
3539-generated by GNU Autoconf 2.68. Invocation command line was
3540+This file was extended by fluidity $as_me None, which was
3541+generated by GNU Autoconf 2.67. Invocation command line was
3542
3543 CONFIG_FILES = $CONFIG_FILES
3544 CONFIG_HEADERS = $CONFIG_HEADERS
3545@@ -15452,8 +15437,8 @@
3546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3547 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3548 ac_cs_version="\\
3549-fluidity config.status trunk.3665
3550-configured by $0, generated by GNU Autoconf 2.68,
3551+fluidity config.status None
3552+configured by $0, generated by GNU Autoconf 2.67,
3553 with options \\"\$ac_cs_config\\"
3554
3555 Copyright (C) 2010 Free Software Foundation, Inc.
3556@@ -15614,9 +15599,10 @@
3557 "libalgencan/Makefile") CONFIG_FILES="$CONFIG_FILES libalgencan/Makefile" ;;
3558 "libwm/Makefile") CONFIG_FILES="$CONFIG_FILES libwm/Makefile" ;;
3559 "libvtkfortran/Makefile") CONFIG_FILES="$CONFIG_FILES libvtkfortran/Makefile" ;;
3560+ "schemas/flml") CONFIG_FILES="$CONFIG_FILES schemas/flml" ;;
3561 "reduced_modelling/Makefile") CONFIG_FILES="$CONFIG_FILES reduced_modelling/Makefile" ;;
3562
3563- *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3564+ *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
3565 esac
3566 done
3567
3568@@ -15638,10 +15624,9 @@
3569 # after its creation but before its name has been assigned to `$tmp'.
3570 $debug ||
3571 {
3572- tmp= ac_tmp=
3573+ tmp=
3574 trap 'exit_status=$?
3575- : "${ac_tmp:=$tmp}"
3576- { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3577+ { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3578 ' 0
3579 trap 'as_fn_exit 1' 1 2 13 15
3580 }
3581@@ -15649,13 +15634,12 @@
3582
3583 {
3584 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3585- test -d "$tmp"
3586+ test -n "$tmp" && test -d "$tmp"
3587 } ||
3588 {
3589 tmp=./conf$$-$RANDOM
3590 (umask 077 && mkdir "$tmp")
3591 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3592-ac_tmp=$tmp
3593
3594 # Set up the scripts for CONFIG_FILES section.
3595 # No need to generate them if there are no CONFIG_FILES.
3596@@ -15677,7 +15661,7 @@
3597 ac_cs_awk_cr=$ac_cr
3598 fi
3599
3600-echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3601+echo 'BEGIN {' >"$tmp/subs1.awk" &&
3602 _ACEOF
3603
3604
3605@@ -15705,7 +15689,7 @@
3606 rm -f conf$$subs.sh
3607
3608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3609-cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3610+cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
3611 _ACEOF
3612 sed -n '
3613 h
3614@@ -15753,7 +15737,7 @@
3615 rm -f conf$$subs.awk
3616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3617 _ACAWK
3618-cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3619+cat >>"\$tmp/subs1.awk" <<_ACAWK &&
3620 for (key in S) S_is_set[key] = 1
3621 FS = ""
3622
3623@@ -15785,7 +15769,7 @@
3624 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3625 else
3626 cat
3627-fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3628+fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
3629 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3630 _ACEOF
3631
3632@@ -15819,7 +15803,7 @@
3633 # No need to generate them if there are no CONFIG_HEADERS.
3634 # This happens for instance with `./config.status Makefile'.
3635 if test -n "$CONFIG_HEADERS"; then
3636-cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
3637+cat >"$tmp/defines.awk" <<\_ACAWK ||
3638 BEGIN {
3639 _ACEOF
3640
3641@@ -15831,8 +15815,8 @@
3642 # handling of long lines.
3643 ac_delim='%!_!# '
3644 for ac_last_try in false false :; do
3645- ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
3646- if test -z "$ac_tt"; then
3647+ ac_t=`sed -n "/$ac_delim/p" confdefs.h`
3648+ if test -z "$ac_t"; then
3649 break
3650 elif $ac_last_try; then
3651 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
3652@@ -15933,7 +15917,7 @@
3653 esac
3654 case $ac_mode$ac_tag in
3655 :[FHL]*:*);;
3656- :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3657+ :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
3658 :[FH]-) ac_tag=-:-;;
3659 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3660 esac
3661@@ -15952,7 +15936,7 @@
3662 for ac_f
3663 do
3664 case $ac_f in
3665- -) ac_f="$ac_tmp/stdin";;
3666+ -) ac_f="$tmp/stdin";;
3667 *) # Look for the file first in the build tree, then in the source tree
3668 # (if the path is not absolute). The absolute path cannot be DOS-style,
3669 # because $ac_f cannot contain `:'.
3670@@ -15961,7 +15945,7 @@
3671 [\\/$]*) false;;
3672 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3673 esac ||
3674- as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3675+ as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
3676 esac
3677 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3678 as_fn_append ac_file_inputs " '$ac_f'"
3679@@ -15987,8 +15971,8 @@
3680 esac
3681
3682 case $ac_tag in
3683- *:-:* | *:-) cat >"$ac_tmp/stdin" \
3684- || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3685+ *:-:* | *:-) cat >"$tmp/stdin" \
3686+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3687 esac
3688 ;;
3689 esac
3690@@ -16118,22 +16102,21 @@
3691 s&@INSTALL@&$ac_INSTALL&;t t
3692 $ac_datarootdir_hack
3693 "
3694-eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3695- >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3696+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
3697+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3698
3699 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3700- { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3701- { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
3702- "$ac_tmp/out"`; test -z "$ac_out"; } &&
3703+ { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
3704+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3706 which seems to be undefined. Please make sure it is defined" >&5
3707 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3708 which seems to be undefined. Please make sure it is defined" >&2;}
3709
3710- rm -f "$ac_tmp/stdin"
3711+ rm -f "$tmp/stdin"
3712 case $ac_file in
3713- -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3714- *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3715+ -) cat "$tmp/out" && rm -f "$tmp/out";;
3716+ *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
3717 esac \
3718 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3719 ;;
3720@@ -16144,20 +16127,20 @@
3721 if test x"$ac_file" != x-; then
3722 {
3723 $as_echo "/* $configure_input */" \
3724- && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
3725- } >"$ac_tmp/config.h" \
3726+ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
3727+ } >"$tmp/config.h" \
3728 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3729- if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
3730+ if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
3732 $as_echo "$as_me: $ac_file is unchanged" >&6;}
3733 else
3734 rm -f "$ac_file"
3735- mv "$ac_tmp/config.h" "$ac_file" \
3736+ mv "$tmp/config.h" "$ac_file" \
3737 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3738 fi
3739 else
3740 $as_echo "/* $configure_input */" \
3741- && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
3742+ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
3743 || as_fn_error $? "could not create -" "$LINENO" 5
3744 fi
3745 ;;
3746
3747=== modified file 'configure.in'
3748--- configure.in 2011-10-21 10:05:25 +0000
3749+++ configure.in 2011-11-30 17:31:28 +0000
3750@@ -26,11 +26,15 @@
3751 # USA
3752
3753 dnl Process this file with autoconf to produce a configure script.
3754-# Version is comprised of the branch name and the repository revision number.
3755-AC_INIT(fluidity, m4_esyscmd([echo -n `bzr info | egrep 'parent branch|checkout of' | awk -F/ '{print $(NF-1)}'`.`bzr revision-info | awk '{print $1}'`]))
3756+
3757+AC_INIT(fluidity, None)
3758
3759 AC_CONFIG_HEADERS(include/config.h)
3760
3761+# we ignore PACKAGE_VERSION as it is useless
3762+# instead we pass on FLUIDITY_VERSION from the env. if it is set
3763+AC_SUBST(FLUIDITY_VERSION)
3764+
3765 echo "Hostname: `hostname`"
3766
3767 # Store enviroment variables
3768@@ -1114,6 +1118,7 @@
3769 AC_SUBST(FORTRAN_REAL_8)
3770 AC_SUBST(OPTIMIZATION_FFLAGS)
3771 AC_SUBST(LINKER)
3772+AC_SUBST(FLLINKER)
3773
3774 dnl Specific f90 options
3775 AC_SUBST(USE_CPP)
3776@@ -1212,7 +1217,9 @@
3777 AC_MSG_NOTICE([Building on hector xe6; disabling shared libraries])
3778 SHFLAG=--disable-shared
3779 SPUD_ONLY="yes"
3780+ FLLINKER=$CXX
3781 else
3782+ FLLINKER=$FC
3783 SHFLAG=--enable-shared
3784 fi
3785 AC_SUBST(SPUD_ONLY)
3786@@ -1532,4 +1539,5 @@
3787 libalgencan/Makefile
3788 libwm/Makefile
3789 libvtkfortran/Makefile
3790+ schemas/flml
3791 reduced_modelling/Makefile)
3792
3793=== removed file 'debian/README.Debian'
3794--- debian/README.Debian 2009-12-16 14:11:47 +0000
3795+++ debian/README.Debian 1970-01-01 00:00:00 +0000
3796@@ -1,6 +0,0 @@
3797-fluidity for Debian
3798--------------------
3799-
3800-<possible notes regarding this package - if none, delete this file>
3801-
3802- -- David Ham <david.ham@imperial.ac.uk> Mon, 05 Nov 2007 15:35:54 +0000
3803
3804=== modified file 'debian/changelog'
3805--- debian/changelog 2009-12-16 14:11:47 +0000
3806+++ debian/changelog 2011-11-30 17:31:28 +0000
3807@@ -1,3 +1,29 @@
3808+fluidity (4.1maverick1) maverick; urgency=low
3809+
3810+ * Fluidity release 4.1
3811+
3812+ -- Tim Bond <timothy.bond@imperial.ac.uk> Mon, 07 Nov 2011 12:49:49 +0000
3813+
3814+fluidity (4.0.999prerelease1maverick5) maverick; urgency=low
3815+
3816+ * Additional trunk changes brought in prior to release
3817+ * Adding in an examples tarball to the package for release
3818+
3819+ -- Tim Bond <timothy.bond@imperial.ac.uk> Sun, 06 Nov 2011 20:49:11 +0000
3820+
3821+fluidity (4.0.999prerelease1maverick4) maverick; urgency=low
3822+
3823+ * Removing fluidity-dev dependency; replacing with best guess at what is
3824+ needed for everyday running and to run the examples.
3825+
3826+ -- Tim Bond <timothy.bond@imperial.ac.uk> Thu, 03 Nov 2011 21:03:59 +0000
3827+
3828+fluidity (4.0.999prerelease1maverick1) maverick; urgency=low
3829+
3830+ * Fix the Debian packaging for release 4.1.
3831+
3832+ -- Patrick Farrell <patrick.farrell06@imperial.ac.uk> Wed, 02 Nov 2011 14:19:12 +0000
3833+
3834 fluidity (3.4.svn6573) unstable; urgency=low
3835
3836 * Another general update. In particular, several tools were out of date.
3837
3838=== modified file 'debian/compat'
3839--- debian/compat 2009-12-16 14:11:47 +0000
3840+++ debian/compat 2011-11-30 17:31:28 +0000
3841@@ -1,1 +1,1 @@
3842-5
3843+7
3844
3845=== modified file 'debian/control'
3846--- debian/control 2009-12-16 14:11:47 +0000
3847+++ debian/control 2011-11-30 17:31:28 +0000
3848@@ -1,14 +1,16 @@
3849 Source: fluidity
3850-Section: unknown
3851+Section: science
3852 Priority: extra
3853-Maintainer: David Ham <david.ham@imperial.ac.uk>
3854-Build-Depends: debhelper (>= 5), autotools-dev
3855-Standards-Version: 3.7.2
3856+Maintainer: Patrick Farrell <patrick.farrell06@imperial.ac.uk>
3857+Build-Depends: debhelper (>= 7.0.50~), fluidity-dev
3858+Standards-Version: 3.9.1
3859+XS-Python-Version: >= 2.5
3860+Homepage: http://amcg.ese.ic.ac.uk/fluidity
3861
3862 Package: fluidity
3863 Architecture: any
3864-Depends: ${shlibs:Depends}, ${misc:Depends}, fluidity-dev
3865-Description: 3D adaptive CFD from Imperial College London
3866+Depends: ${shlibs:Depends}, ${misc:Depends}, diamond, triangle | triangle-bin, python, gmsh, python-lxml, python-scipy, python-numpy, python-vtk, python-matplotlib, python-sympy, python-fluidity
3867+Description: 3D adaptive CFD model from Imperial College London
3868 Fluidity is a general purpose multi-phase CFD code capable of solving
3869 numerically the Navier-Stokes and accompanying field equations on
3870 arbitrary unstructured finite element meshes. It uses a moving finite
3871@@ -16,3 +18,18 @@
3872 the mesh with time dependent problems. It has a wide range of Finite
3873 element/spectral elements and full spectral methods which include
3874 many elements for mixed formulations.
3875+
3876+Package: python-fluidity
3877+Architecture: any
3878+Section: python
3879+XB-Python-Version: ${python:Versions}
3880+Depends: ${python:Depends}, ${misc:Depends}
3881+Description: 3D adaptive CFD model from Imperial College London
3882+ Fluidity is a general purpose multi-phase CFD code capable of solving
3883+ numerically the Navier-Stokes and accompanying field equations on
3884+ arbitrary unstructured finite element meshes. It uses a moving finite
3885+ element/spectral element method which allows arbitrary movement of
3886+ the mesh with time dependent problems. It has a wide range of Finite
3887+ element/spectral elements and full spectral methods which include
3888+ many elements for mixed formulations. This package contains the
3889+ Python scripts used by Fluidity.
3890
3891=== modified file 'debian/copyright'
3892--- debian/copyright 2009-12-16 14:11:47 +0000
3893+++ debian/copyright 2011-11-30 17:31:28 +0000
3894@@ -1,24 +1,20 @@
3895 This package was debianized by David Ham <david.ham@imperial.ac.uk> on
3896 Mon, 05 Nov 2007 15:35:54 +0000.
3897
3898-It was downloaded from <url://example.com>
3899+It was downloaded from http://amcg.ese.ic.ac.uk/fluidity
3900
3901 Upstream Author(s):
3902
3903- <put author's name and email here>
3904- <likewise for another author>
3905+ See AUTHORS
3906
3907 Copyright:
3908
3909- <Copyright (C) YYYY Name OfAuthor>
3910- <likewise for another author>
3911+ See AUTHORS
3912+ Copyright (C) 2002-2012 Imperial College London
3913
3914 License:
3915
3916- <Put the license of the package here indented by 4 spaces>
3917+ LGPL v2.1
3918
3919 The Debian packaging is (C) 2007, David Ham <david.ham@imperial.ac.uk> and
3920 is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
3921-
3922-# Please also look if there are files or directories which have a
3923-# different copyright/license attached and list them here.
3924
3925=== removed file 'debian/dirs'
3926--- debian/dirs 2009-12-16 14:11:47 +0000
3927+++ debian/dirs 1970-01-01 00:00:00 +0000
3928@@ -1,2 +0,0 @@
3929-usr/bin
3930-usr/sbin
3931
3932=== modified file 'debian/docs'
3933--- debian/docs 2009-12-16 14:11:47 +0000
3934+++ debian/docs 2011-11-30 17:31:28 +0000
3935@@ -1,3 +1,2 @@
3936 AUTHORS
3937 README
3938-LICENSE
3939
3940=== added file 'debian/fluidity.dirs'
3941--- debian/fluidity.dirs 1970-01-01 00:00:00 +0000
3942+++ debian/fluidity.dirs 2011-11-30 17:31:28 +0000
3943@@ -0,0 +1,2 @@
3944+usr/bin
3945+usr/share/doc
3946
3947=== added file 'debian/fluidity.install'
3948--- debian/fluidity.install 1970-01-01 00:00:00 +0000
3949+++ debian/fluidity.install 2011-11-30 17:31:28 +0000
3950@@ -0,0 +1,4 @@
3951+usr/bin/*
3952+usr/share/doc/*
3953+usr/share/diamond/schemata/*
3954+usr/share/fluidity/*
3955
3956=== added file 'debian/python-fluidity.install'
3957--- debian/python-fluidity.install 1970-01-01 00:00:00 +0000
3958+++ debian/python-fluidity.install 2011-11-30 17:31:28 +0000
3959@@ -0,0 +1,2 @@
3960+usr/lib/python*/dist-packages/fluidity/*
3961+usr/lib/python*/dist-packages/*.py
3962
3963=== modified file 'debian/rules'
3964--- debian/rules 2009-12-16 14:11:47 +0000
3965+++ debian/rules 2011-11-30 17:31:28 +0000
3966@@ -7,104 +7,25 @@
3967 # This special exception was added by Craig Small in version 0.37 of dh-make.
3968
3969 # Uncomment this to turn on verbose mode.
3970-#export DH_VERBOSE=1
3971-
3972-
3973-# These are used for cross-compiling and for saving the configure script
3974-# from having to guess our platform (since we know it already)
3975-DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
3976-DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
3977-
3978-
3979-export PATH:=/usr/lib/mpich-amcg-gcc4/bin:$(PATH)
3980-export FC=gfortran
3981-export F77=gfortran
3982-export F90=gfortran
3983-export CC=gcc
3984-export CXX=g++
3985-export PETSC_DIR=/usr/lib/petscdir/2.3.3-amcg
3986-export PETSC_ARCH=amcg-gcc4-opt
3987-export LIBS=-lX11
3988-
3989-
3990-config.status: configure
3991- dh_testdir
3992- # Add here commands to configure the package.
3993-
3994-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
3995- cp -f /usr/share/misc/config.sub config.sub
3996-endif
3997-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
3998- cp -f /usr/share/misc/config.guess config.guess
3999-endif
4000- ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
4001-
4002-
4003-build: build-stamp
4004-
4005-build-stamp: config.status
4006- dh_testdir
4007-
4008- # Add here commands to compile the package.
4009- $(MAKE)
4010- #docbook-to-man debian/fluidity.sgml > fluidity.1
4011-
4012- touch $@
4013-
4014-clean:
4015- dh_testdir
4016- dh_testroot
4017- rm -f build-stamp
4018-
4019- # Add here commands to clean up after the build process.
4020- $(MAKE) clean
4021- rm -f config.sub config.guess
4022-
4023- dh_clean
4024-
4025-install: build
4026- dh_testdir
4027- dh_testroot
4028- dh_clean -k
4029- dh_installdirs
4030- # Add here commands to install the package into debian/fluidity.
4031- $(MAKE) DESTDIR=$(CURDIR)/debian/fluidity install
4032-
4033-
4034-# Build architecture-independent files here.
4035-binary-indep: build install
4036-# We have nothing to do by default.
4037-
4038-# Build architecture-dependent files here.
4039-binary-arch: build install
4040- dh_testdir
4041- dh_testroot
4042- dh_installchangelogs
4043- dh_installdocs
4044- dh_installexamples
4045-# dh_install
4046-# dh_installmenu
4047-# dh_installdebconf
4048-# dh_installlogrotate
4049-# dh_installemacsen
4050-# dh_installpam
4051-# dh_installmime
4052-# dh_python
4053-# dh_installinit
4054-# dh_installcron
4055-# dh_installinfo
4056- dh_installman
4057- dh_link
4058- dh_strip
4059- dh_compress
4060- dh_fixperms
4061-# dh_perl
4062-# dh_makeshlibs
4063- dh_installdeb
4064- dh_shlibdeps
4065- dh_gencontrol
4066- dh_md5sums
4067- dh_builddeb
4068-
4069-binary: binary-indep binary-arch
4070-.PHONY: build clean binary-indep binary-arch binary install
4071+export DH_VERBOSE=1
4072+export PETSC_DIR=/usr/lib/petscdir/3.1
4073+export PETSC_ARCH=linux-gnu-c-opt
4074+export prefix=/usr
4075+export DEB_BUILD_OPTIONS=nostrip
4076+export PYTHONPATH=
4077+export FLUIDITY_PYTHON_INSTALL_ARGS=--install-layout=deb
4078+# setting this sets the version number reported by ./fluidity --version
4079+# it also stops the build system trying to use bzr to get a version number
4080+export FLUIDITY_VERSION=fluidity/4.1
4081+
4082+%:
4083+ dh --with=python2 $@
4084+
4085+override_dh_auto_build:
4086+ make -j8
4087+ make manual
4088+
4089+override_dh_auto_configure:
4090+ ./configure --prefix=/usr --enable-2d-adaptivity --datadir=/usr/share --datarootdir=/usr/share --docdir=/usr/share/doc
4091+
4092+override_dh_auto_test:
4093
4094=== modified file 'diagnostics/Differential_Operators.F90'
4095--- diagnostics/Differential_Operators.F90 2011-04-22 17:28:48 +0000
4096+++ diagnostics/Differential_Operators.F90 2011-11-30 17:31:28 +0000
4097@@ -55,6 +55,7 @@
4098 private
4099
4100 public :: calculate_grad, calculate_div, calculate_curl, calculate_perp, &
4101+ & calculate_hessian, calculate_grad_vector, &
4102 & calculate_curl_2d, calculate_finite_element_divergence, &
4103 & calculate_finite_element_divergence_transpose, &
4104 & calculate_scalar_advection, calculate_scalar_laplacian, &
4105@@ -79,6 +80,39 @@
4106
4107 end subroutine calculate_grad
4108
4109+ subroutine calculate_grad_vector(state, t_field)
4110+ type(state_type), intent(inout) :: state
4111+ type(tensor_field), intent(inout) :: t_field
4112+
4113+ type(vector_field), pointer :: source_field
4114+ type(vector_field), pointer :: positions
4115+
4116+ positions => extract_vector_field(state, "Coordinate")
4117+ source_field => vector_source_field(state, t_field)
4118+
4119+ call check_source_mesh_derivative(source_field, "grad_vector")
4120+
4121+ call grad(source_field, positions, t_field)
4122+
4123+ end subroutine calculate_grad_vector
4124+
4125+ subroutine calculate_hessian(state, t_field)
4126+ ! Compute Hessian of a scalar field
4127+ type(state_type), intent(inout) :: state
4128+ type(tensor_field), intent(inout) :: t_field
4129+
4130+ type(scalar_field), pointer :: source_field
4131+ type(vector_field), pointer :: positions
4132+
4133+ positions => extract_vector_field(state, "Coordinate")
4134+ source_field => scalar_source_field(state, t_field)
4135+
4136+ call check_source_mesh_derivative(source_field, "hessian")
4137+
4138+ call compute_hessian(source_field, positions, t_field)
4139+
4140+ end subroutine calculate_hessian
4141+
4142 subroutine calculate_div(state, s_field)
4143 type(state_type), intent(in) :: state
4144 type(scalar_field), intent(inout) :: s_field
4145
4146=== modified file 'diagnostics/Field_Copies.F90'
4147--- diagnostics/Field_Copies.F90 2011-04-22 17:28:48 +0000
4148+++ diagnostics/Field_Copies.F90 2011-11-30 17:31:28 +0000
4149@@ -448,18 +448,19 @@
4150 ! NOT a tensor here. Alpha is a scaling constant for the mesh size tensor.
4151 real :: alpha
4152 type(scalar_field), pointer :: source_field
4153- type(vector_field), pointer :: positions
4154+ type(vector_field), pointer :: positions, velocity
4155
4156 ewrite(1, *) "In calculate_helmholtz_anisotropic_smoothed_scalar"
4157
4158- positions => extract_vector_field(state, "Coordinate")
4159+ positions => extract_vector_field(state, "Coordinate")
4160+ velocity => extract_vector_field(state, "Velocity")
4161 source_field => scalar_source_field(state, s_field, allocated = allocated)
4162
4163 path = trim(complete_field_path(s_field%option_path)) // "/algorithm"
4164 call get_option(trim(path) // "/smoothing_length_scale", alpha)
4165- call anisotropic_smooth_scalar(source_field, positions, s_field, alpha, path)
4166-
4167 ewrite(2, *) "alpha = ", alpha
4168+ call anisotropic_smooth_scalar(source_field, positions, velocity, s_field, alpha, path)
4169+
4170 ewrite_minmax(source_field)
4171 ewrite_minmax(s_field)
4172
4173@@ -485,9 +486,9 @@
4174
4175 path = trim(complete_field_path(v_field%option_path)) // "/algorithm"
4176 call get_option(trim(path) // "/smoothing_length_scale", alpha)
4177+ ewrite(2, *) "alpha = ", alpha
4178 call anisotropic_smooth_vector(source_field, positions, v_field, alpha, path)
4179
4180- ewrite(2, *) "alpha = ", alpha
4181 ewrite_minmax(source_field)
4182 ewrite_minmax(v_field)
4183
4184@@ -512,9 +513,9 @@
4185
4186 path = trim(complete_field_path(t_field%option_path)) // "/algorithm"
4187 call get_option(trim(path) // "/smoothing_length_scale", alpha)
4188+ ewrite(2, *) "alpha = ", alpha
4189 call anisotropic_smooth_tensor(source_field, positions, t_field, alpha, path)
4190
4191- ewrite(2, *) "alpha = ", alpha
4192 ewrite_minmax(source_field)
4193 ewrite_minmax(t_field)
4194
4195
4196=== modified file 'diagnostics/Momentum_Diagnostics.F90'
4197--- diagnostics/Momentum_Diagnostics.F90 2011-10-03 12:48:49 +0000
4198+++ diagnostics/Momentum_Diagnostics.F90 2011-11-30 17:31:28 +0000
4199@@ -44,7 +44,7 @@
4200 use spud
4201 use state_fields_module
4202 use state_module
4203- use sediment
4204+ use sediment, only : get_n_sediment_fields, get_sediment_item
4205
4206 implicit none
4207
4208@@ -54,7 +54,7 @@
4209 calculate_buoyancy, calculate_coriolis, calculate_tensor_second_invariant, &
4210 calculate_imposed_material_velocity_source, calculate_imposed_material_velocity_absorption, &
4211 calculate_scalar_potential, calculate_projection_scalar_potential, &
4212- calculate_geostrophic_velocity, calculate_hessian
4213+ calculate_geostrophic_velocity, calculate_k_epsilon_diffusivity
4214
4215
4216 contains
4217@@ -74,23 +74,78 @@
4218 call strain_rate(source_field, positions, t_field)
4219
4220 end subroutine calculate_strain_rate
4221-
4222- subroutine calculate_hessian(state, t_field)
4223- ! Compute Hessian of a scalar field
4224- type(state_type), intent(inout) :: state
4225+
4226+ subroutine calculate_k_epsilon_diffusivity(state, t_field)
4227+ ! calculates scalar field diffusivity based upon eddy viscosity and background
4228+ ! diffusivity
4229+ type(state_type), intent(inout) :: state
4230 type(tensor_field), intent(inout) :: t_field
4231-
4232- type(scalar_field), pointer :: source_field
4233- type(vector_field), pointer :: positions
4234-
4235- positions => extract_vector_field(state, "Coordinate")
4236- source_field => scalar_source_field(state, t_field)
4237-
4238- call check_source_mesh_derivative(source_field, "hessian")
4239-
4240- call compute_hessian(source_field, positions, t_field)
4241-
4242- end subroutine calculate_hessian
4243+ character(len = OPTION_PATH_LEN) :: parent_path
4244+ integer :: slash_location, i, stat
4245+ real :: prandtl_schmidt, local_background_diffusivity
4246+ type(scalar_field) :: local_background_diffusivity_field
4247+ type(tensor_field), pointer :: global_background_diffusivity, eddy_viscosity
4248+ type(tensor_field) :: background_diffusivity
4249+
4250+ ewrite(1,*) 'In calculate_k_epsilon_diffusivity'
4251+
4252+ ! get parent scalar field path
4253+ slash_location = scan(t_field%option_path, '/', .true.)
4254+ parent_path = t_field%option_path(1:slash_location-1)
4255+
4256+ ! check options
4257+ if (.not.(have_option(trim(parent_path)//'/subgridscale_parameterisation::k-epsilon')))&
4258+ & then
4259+ FLExit('you must have /subgridscale_parameterisation(k-epsilon) to be able to calculate&
4260+ & diffusivity based upon the k-epsilon model')
4261+ end if
4262+
4263+ ! get prandtl_schmidt number
4264+ call get_option(trim(parent_path)//'/subgridscale_parameterisation::k-epsilon/Prandtl_&
4265+ &Schmidt_Number', prandtl_schmidt, stat=stat)
4266+ if (stat /= 0) then
4267+ prandtl_schmidt = 1.0
4268+ end if
4269+
4270+ ! allocate and zero required fields
4271+ call allocate(background_diffusivity, t_field%mesh, name="background_diff&
4272+ &usivity")
4273+ call zero(background_diffusivity)
4274+ call allocate(local_background_diffusivity_field, t_field%mesh, name="local_backgro&
4275+ &und_diffusivity_field")
4276+ call zero(local_background_diffusivity_field)
4277+
4278+ ! set background_diffusivity (local takes precendence over global)
4279+ call get_option(trim(parent_path)//'/subgridscale_parameterisation::k-epsilon/Backg&
4280+ &roundDiffusivity', local_background_diffusivity, stat=stat)
4281+ if (stat == 0) then
4282+ ! set local isotropic background diffusivity
4283+ call addto(local_background_diffusivity_field, local_background_diffusivity)
4284+ do i = 1, background_diffusivity%dim(1)
4285+ call set(background_diffusivity, i, i, local_background_diffusivity_field)
4286+ end do
4287+ else
4288+ global_background_diffusivity => extract_tensor_field(state, 'BackgroundDiffusivity', stat=stat)
4289+ if (stat == 0) then
4290+ call set(background_diffusivity, global_background_diffusivity)
4291+ end if
4292+ end if
4293+
4294+ ! get eddy viscosity
4295+ eddy_viscosity => extract_tensor_field(state, 'EddyViscosity', stat)
4296+ if (stat /= 0) then
4297+ FLExit("No EddyViscosity field was found. Check the k-epsilon model is turned on an&
4298+ &d you have a valid flml input file.")
4299+ end if
4300+
4301+ call zero(t_field)
4302+ call addto(t_field, background_diffusivity)
4303+ call addto(t_field, eddy_viscosity, 1.0/prandtl_schmidt)
4304+
4305+ call deallocate(background_diffusivity)
4306+ call deallocate(local_background_diffusivity_field)
4307+
4308+ end subroutine calculate_k_epsilon_diffusivity
4309
4310 subroutine calculate_sediment_concentration_dependent_viscosity(state, t_field)
4311 ! calculates viscosity based upon total sediment concentration
4312@@ -101,25 +156,23 @@
4313 type(tensor_field), pointer :: zero_conc_viscosity
4314 type(scalar_field) :: rhs
4315 integer :: sediment_classes, i
4316- character(len = OPTION_PATH_LEN) :: class_name
4317+ character(len = FIELD_NAME_LEN) :: field_name
4318
4319- ewrite(1,*) 'In calculate sediment concentration dependent viscosity'
4320+ ewrite(1,*) 'In calculate_sediment_concentration_dependent_viscosity'
4321
4322- sediment_classes = get_nSediments()
4323+ sediment_classes = get_n_sediment_fields()
4324
4325 if (sediment_classes > 0) then
4326 allocate(sediment_concs(sediment_classes))
4327
4328- class_name=get_sediment_name(1)
4329- sediment_concs(1)%ptr => extract_scalar_field(state,trim(class_name))
4330+ call get_sediment_item(state, 1, sediment_concs(1)%ptr)
4331
4332 call allocate(rhs, sediment_concs(1)%ptr%mesh, name="Rhs")
4333 call set(rhs, 1.0)
4334
4335 ! get sediment concentrations and remove c/0.65 from rhs
4336 do i=1, sediment_classes
4337- class_name=get_sediment_name(i)
4338- sediment_concs(i)%ptr => extract_scalar_field(state,trim(class_name))
4339+ call get_sediment_item(state, i, sediment_concs(i)%ptr)
4340 call addto(rhs, sediment_concs(i)%ptr, scale=-(1.0/0.65))
4341 end do
4342
4343@@ -128,17 +181,22 @@
4344 call set(rhs, i, node_val(rhs, i)**(-1.625))
4345 end do
4346
4347+ ! check for presence of ZeroSedimentConcentrationViscosity field
4348+ if (.not. has_tensor_field(state, "ZeroSedimentConcentrationViscosity")) then
4349+ FLExit("You must specify an zero sediment concentration viscosity to be able &
4350+ &to calculate sediment concentration dependent viscosity field values")
4351+ endif
4352 zero_conc_viscosity => extract_tensor_field(state, 'ZeroSedimentConcentrationViscosity')
4353
4354 call set(t_field, zero_conc_viscosity)
4355 call scale(t_field, rhs)
4356 ewrite_minmax(t_field)
4357
4358+ deallocate(sediment_concs)
4359 call deallocate(rhs)
4360 else
4361 ewrite(1,*) 'No sediment in problem definition'
4362 end if
4363-
4364 end subroutine calculate_sediment_concentration_dependent_viscosity
4365
4366 subroutine calculate_tensor_second_invariant(state, s_field)
4367
4368=== modified file 'diagnostics/Simple_Diagnostics.F90'
4369--- diagnostics/Simple_Diagnostics.F90 2011-09-27 20:36:00 +0000
4370+++ diagnostics/Simple_Diagnostics.F90 2011-11-30 17:31:28 +0000
4371@@ -157,6 +157,7 @@
4372 type(scalar_field), pointer :: source_field
4373 real :: a, b, spin_up_time, current_time, dt, averaging_period
4374 integer :: stat
4375+ logical :: absolute_vals=.false.
4376
4377 if (timestep==0) then
4378 last_output_time = 0.0
4379@@ -167,10 +168,12 @@
4380 call get_option("/timestepping/current_time", current_time)
4381 call get_option("/timestepping/timestep", dt)
4382
4383+ absolute_vals=have_option(trim(s_field%option_path)//"/diagnostic/algorithm/absolute_values")
4384 call get_option(trim(s_field%option_path)//"/diagnostic/algorithm/spin_up_time", spin_up_time, stat)
4385 if (stat /=0) spin_up_time=0.
4386
4387 source_field => scalar_source_field(state, s_field)
4388+ if(absolute_vals) source_field%val = abs(source_field%val)
4389
4390 if (current_time>spin_up_time) then
4391 a = (current_time-spin_up_time-dt)/(current_time-spin_up_time)
4392@@ -230,6 +233,7 @@
4393 type(vector_field), pointer :: source_field
4394 real :: a, b, spin_up_time, current_time, dt
4395 integer :: stat
4396+ logical :: absolute_vals
4397
4398 if (timestep==0) then
4399 call initialise_diagnostic_from_checkpoint(v_field)
4400@@ -239,9 +243,11 @@
4401 call get_option("/timestepping/current_time", current_time)
4402 call get_option("/timestepping/timestep", dt)
4403
4404+ absolute_vals=have_option(trim(v_field%option_path)//"/diagnostic/algorithm/absolute_values")
4405 call get_option(trim(v_field%option_path)//"/diagnostic/algorithm/spin_up_time", spin_up_time, stat)
4406 if (stat /=0) spin_up_time=0.
4407 source_field => vector_source_field(state, v_field)
4408+ if(absolute_vals) source_field%val = abs(source_field%val)
4409
4410 if (current_time>spin_up_time) then
4411 a = (current_time-spin_up_time-dt)/(current_time-spin_up_time); b = dt/(current_time-spin_up_time)
4412@@ -374,33 +380,54 @@
4413 type(scalar_field), intent(inout) :: s_field
4414
4415 type(scalar_field), pointer :: read_field
4416- character(len = OPTION_PATH_LEN) :: path, filename
4417+ character(len = OPTION_PATH_LEN) :: filename
4418 logical :: checkpoint_exists
4419-
4420- path = "/geometry/mesh::CoordinateMesh/from_file/file_name"
4421- call get_option(trim(path), filename)
4422+ integer :: i
4423+ integer :: stat
4424+
4425+ stat = 1
4426+
4427+ do i = 1, option_count("/geometry/mesh")
4428+ if(have_option("/geometry/mesh["//int2str(i)//"]/from_file/file_name")) then
4429+ call get_option("/geometry/mesh["//int2str(i)//"]/from_file/file_name", filename, stat)
4430+ ewrite(2,*) "mesh from file: ", filename
4431+ end if
4432+ end do
4433+ if (stat /= 0) return
4434+
4435 if(isparallel()) then
4436- filename = parallel_filename(trim_file_extension(filename), ".vtu")
4437+ filename = parallel_filename(trim_file_extension(filename), ".vtu")
4438 else
4439- filename = trim(filename) // ".vtu"
4440+ filename = trim(filename) // ".vtu"
4441 end if
4442 inquire(file=trim(filename), exist=checkpoint_exists)
4443
4444 if (checkpoint_exists) then
4445- read_field => vtk_cache_read_scalar_field(filename, trim(s_field%name))
4446- call set(s_field, read_field)
4447+ read_field => vtk_cache_read_scalar_field(filename, trim(s_field%name))
4448+ call set(s_field, read_field)
4449 end if
4450+
4451 end subroutine initialise_diagnostic_scalar_from_checkpoint
4452
4453 subroutine initialise_diagnostic_vector_from_checkpoint(v_field)
4454 type(vector_field), intent(inout) :: v_field
4455
4456 type(vector_field), pointer :: read_field
4457- character(len = OPTION_PATH_LEN) :: path, filename
4458+ character(len = OPTION_PATH_LEN) :: filename
4459 logical :: checkpoint_exists
4460-
4461- path = "/geometry/mesh::CoordinateMesh/from_file/file_name"
4462- call get_option(trim(path), filename)
4463+ integer :: i
4464+ integer :: stat
4465+
4466+ stat = 1
4467+
4468+ do i = 1, option_count("/geometry/mesh")
4469+ if(have_option("/geometry/mesh["//int2str(i)//"]/from_file/file_name")) then
4470+ call get_option("/geometry/mesh["//int2str(i)//"]/from_file/file_name", filename , stat)
4471+ ewrite(2,*) "mesh from file: ", filename
4472+ end if
4473+ end do
4474+ if (stat /= 0) return
4475+
4476 if(isparallel()) then
4477 filename = parallel_filename(trim_file_extension(filename), ".vtu")
4478 else
4479@@ -412,17 +439,28 @@
4480 read_field => vtk_cache_read_vector_field(filename, trim(v_field%name))
4481 call set(v_field, read_field)
4482 end if
4483+
4484 end subroutine initialise_diagnostic_vector_from_checkpoint
4485
4486 subroutine initialise_diagnostic_tensor_from_checkpoint(t_field)
4487 type(tensor_field), intent(inout) :: t_field
4488
4489 type(tensor_field), pointer :: read_field
4490- character(len = OPTION_PATH_LEN) :: path, filename
4491+ character(len = OPTION_PATH_LEN) :: filename
4492 logical :: checkpoint_exists
4493-
4494- path = "/geometry/mesh::CoordinateMesh/from_file/file_name"
4495- call get_option(trim(path), filename)
4496+ integer :: i
4497+ integer :: stat
4498+
4499+ stat = 1
4500+
4501+ do i = 1, option_count("/geometry/mesh")
4502+ if(have_option("/geometry/mesh["//int2str(i)//"]/from_file/file_name")) then
4503+ call get_option("/geometry/mesh["//int2str(i)//"]/from_file/file_name", filename, stat)
4504+ ewrite(2,*) "mesh from file: ", filename
4505+ end if
4506+ end do
4507+ if (stat /= 0) return
4508+
4509 if(isparallel()) then
4510 filename = parallel_filename(trim_file_extension(filename), ".vtu")
4511 else
4512@@ -434,6 +472,7 @@
4513 read_field => vtk_cache_read_tensor_field(filename, trim(t_field%name))
4514 call set(t_field, read_field)
4515 end if
4516+
4517 end subroutine initialise_diagnostic_tensor_from_checkpoint
4518
4519 end module simple_diagnostics
4520
4521=== modified file 'error_measures/Geometric_constraints_metric.F90'
4522--- error_measures/Geometric_constraints_metric.F90 2011-02-28 16:03:39 +0000
4523+++ error_measures/Geometric_constraints_metric.F90 2011-11-30 17:31:28 +0000
4524@@ -37,7 +37,6 @@
4525
4526 integer :: dim
4527 integer :: stat, stat2
4528- real :: gradation_parameter
4529
4530 real, dimension(error_metric%dim(1) * error_metric%dim(2) * node_count(error_metric)) :: geometric_edge_lengths_raw
4531 type(tensor_field) :: geometric_edge_lengths
4532@@ -73,8 +72,6 @@
4533 deallocate(lsenlist)
4534
4535 geometric_edge_lengths = wrap_tensor_field(error_metric%mesh, geometric_edge_lengths_raw, "GeometricEdgeLengths")
4536- call get_option("/mesh_adaptivity/hr_adaptivity/enable_gradation/gradation_parameter", gradation_parameter, stat=stat)
4537- call set_option("/mesh_adaptivity/hr_adaptivity/enable_gradation/gradation_parameter", 1.1, stat=stat2)
4538
4539 call bound_metric(geometric_edge_lengths, state)
4540 if (.not. isparallel()) then
4541@@ -93,12 +90,6 @@
4542 end do
4543 end if
4544
4545- if (stat == 0) then
4546- call set_option("/mesh_adaptivity/hr_adaptivity/enable_gradation/gradation_parameter", gradation_parameter)
4547- else
4548- call delete_option("/mesh_adaptivity/hr_adaptivity/enable_gradation/gradation_parameter")
4549- end if
4550-
4551 if (debug_metric) then
4552 call allocate(edgelen, error_metric%mesh, "Desired edge lengths")
4553 call allocate(geometric_edgelen, error_metric%mesh, "Geometric edge lengths")
4554
4555=== added directory 'examples/backward_facing_step_2d/Ilinca-data'
4556=== added file 'examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-expt-1.33.dat'
4557--- examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-expt-1.33.dat 1970-01-01 00:00:00 +0000
4558+++ examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-expt-1.33.dat 2011-11-30 17:31:28 +0000
4559@@ -0,0 +1,17 @@
4560+-0.07421875 -0.00109682881773
4561+-0.07421875 0.102351447044
4562+-0.09765625 0.161118380542
4563+-0.11328125 0.367784020936
4564+-0.125 0.485837438424
4565+-0.10546875 0.619131003695
4566+0.125 0.829433497537
4567+0.2734375 0.905518780788
4568+0.47265625 0.967576200739
4569+0.59765625 1.01375846675
4570+0.7265625 1.04522013547
4571+0.828125 1.09105603448
4572+0.87890625 1.12136314655
4573+0.95703125 1.19640932882
4574+0.984375 1.27070504926
4575+0.99609375 1.37432650862
4576+0.99609375 1.52210975985
4577
4578=== added file 'examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-expt-16.0.dat'
4579--- examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-expt-16.0.dat 1970-01-01 00:00:00 +0000
4580+++ examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-expt-16.0.dat 2011-11-30 17:31:28 +0000
4581@@ -0,0 +1,17 @@
4582+0.335234899329 0
4583+0.377516778523 0
4584+0.424496644295 0
4585+0.487919463087 0
4586+0.530201342282 0
4587+0.570145856868 0.0148514851485
4588+0.600706026979 0.0445544554455
4589+0.64538341418 0.10396039604
4590+0.680699714267 0.207920792079
4591+0.741982856004 0.475247524752
4592+0.800905375772 0.727722772277
4593+0.859839524221 0.99504950495
4594+0.899935211642 1.20297029703
4595+0.937681905774 1.41089108911
4596+0.958915874809 1.5297029703
4597+0.984905973819 1.72277227723
4598+1.00152335703 1.94554455446
4599
4600=== added file 'examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-expt-2.66.dat'
4601--- examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-expt-2.66.dat 1970-01-01 00:00:00 +0000
4602+++ examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-expt-2.66.dat 2011-11-30 17:31:28 +0000
4603@@ -0,0 +1,16 @@
4604+-0.101288826687 -0.00150397927851
4605+-0.143442023688 0.0275729534393
4606+-0.172769619619 0.175652246569
4607+-0.155787186932 0.250161886658
4608+-0.134501702421 0.384141374052
4609+-0.10057861425 0.50345706348
4610+0.0683892799699 0.639629853989
4611+0.14444467654 0.715016815324
4612+0.24157667161 0.7758653103
4613+0.338729555282 0.851565600652
4614+0.511854281119 0.943245670837
4615+0.646982641572 1.01950995342
4616+0.803208489127 1.09608756502
4617+0.942577235603 1.18726630878
4618+0.993440979258 1.35138804754
4619+1.00210974871 1.51488312828
4620
4621=== added file 'examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-expt-5.33.dat'
4622--- examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-expt-5.33.dat 1970-01-01 00:00:00 +0000
4623+++ examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-expt-5.33.dat 2011-11-30 17:31:28 +0000
4624@@ -0,0 +1,19 @@
4625+-0.208481081307 -0.00600725877101
4626+-0.251074214676 0.0221517667181
4627+-0.204392807976 0.111760043386
4628+-0.161924825831 0.171832631096
4629+-0.0939468524467 0.247361395019
4630+0.0590505193776 0.384214258896
4631+0.131304492929 0.445162905177
4632+0.207792749572 0.520941971549
4633+0.280046723124 0.58189061783
4634+0.365066121564 0.643214717784
4635+0.586041466772 0.855596345584
4636+0.734825414042 0.962913520504
4637+0.798569104334 1.02361186434
4638+0.875078219515 1.08468566184
4639+0.92180134329 1.14488340078
4640+0.964248466898 1.21966125735
4641+0.993909307079 1.30876892912
4642+1.01082558091 1.38279587835
4643+1.01024154186 1.79454340662
4644
4645=== added file 'examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-expt-8.0.dat'
4646--- examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-expt-8.0.dat 1970-01-01 00:00:00 +0000
4647+++ examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-expt-8.0.dat 2011-11-30 17:31:28 +0000
4648@@ -0,0 +1,16 @@
4649+0.144407894737 0.000732803543512
4650+0.168092105263 0.00112363210005
4651+0.191776315789 0.0163659458051
4652+0.206578947368 0.04631318395
4653+0.236184210526 0.150762115685
4654+0.304276315789 0.315252084419
4655+0.416776315789 0.435920401251
4656+0.514473684211 0.586047420532
4657+0.561842105263 0.646235018239
4658+0.6625 0.781559405941
4659+0.736513157895 0.842186685774
4660+0.825328947368 0.977315659197
4661+0.896381578947 1.1121515112
4662+0.949671052632 1.24669424179
4663+0.985197368421 1.44034979156
4664+0.997039473684 1.72272342366
4665
4666=== added file 'examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-num-1.33.dat'
4667--- examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-num-1.33.dat 1970-01-01 00:00:00 +0000
4668+++ examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-num-1.33.dat 2011-11-30 17:31:28 +0000
4669@@ -0,0 +1,18 @@
4670+-0.109375 0.0722752463054
4671+-0.09765625 0.249788331281
4672+-0.0703125 0.412754002463
4673+0.02734375 0.798433651478
4674+0.10546875 0.888258158867
4675+0.23046875 0.94921875
4676+0.3515625 0.995343288177
4677+0.44140625 1.01144935345
4678+0.5703125 1.05768934729
4679+0.7578125 1.10479525862
4680+0.87890625 1.1509197968
4681+0.9609375 1.24080203202
4682+0.99609375 1.43343980911
4683+0.9921875 2.17229833744
4684+0.984375 2.48252770936
4685+0.9765625 2.65975215517
4686+0.9140625 2.83616841133
4687+0.83984375 2.92374153325
4688
4689=== added file 'examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-num-16.0.dat'
4690--- examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-num-16.0.dat 1970-01-01 00:00:00 +0000
4691+++ examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-num-16.0.dat 2011-11-30 17:31:28 +0000
4692@@ -0,0 +1,15 @@
4693+0.516153897269 0.0594059405941
4694+0.542062595521 0.148514851485
4695+0.60097348661 0.386138613861
4696+0.650441889827 0.564356435644
4697+0.728156355904 0.816831683168
4698+0.791730347531 1.0099009901
4699+0.843536115357 1.17326732673
4700+0.930658183268 1.44059405941
4701+0.980173101203 1.67821782178
4702+1.00147684232 1.88613861386
4703+0.996918399894 2.06435643564
4704+0.959578709549 2.37623762376
4705+0.894004585022 2.62871287129
4706+0.795509668417 2.83663366337
4707+0.725109641837 2.92574257426
4708
4709=== added file 'examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-num-2.66.dat'
4710--- examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-num-2.66.dat 1970-01-01 00:00:00 +0000
4711+++ examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-num-2.66.dat 2011-11-30 17:31:28 +0000
4712@@ -0,0 +1,16 @@
4713+-0.223528920268 0.0857894846782
4714+-0.202285212959 0.190065381321
4715+-0.0583418628454 0.533787312264
4716+0.00929542748522 0.623900737368
4717+0.102270590939 0.729241952666
4718+0.233242119775 0.84999895557
4719+0.427506109916 0.971695945523
4720+0.659724688238 1.07910513233
4721+0.866605393437 1.17128652894
4722+0.968019551731 1.27675307585
4723+0.997764919683 1.42570969022
4724+0.986025525871 2.07900068932
4725+0.978254966265 2.55413280973
4726+0.948969147536 2.73191569361
4727+0.91531761118 2.80567334406
4728+0.814216781902 2.92298372778
4729
4730=== added file 'examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-num-5.33.dat'
4731--- examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-num-5.33.dat 1970-01-01 00:00:00 +0000
4732+++ examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-num-5.33.dat 2011-11-30 17:31:28 +0000
4733@@ -0,0 +1,16 @@
4734+-0.102206833257 0.0706478661716
4735+-0.0640982854282 0.20412164699
4736+0.0462433774144 0.413249342956
4737+0.237432731217 0.624754912186
4738+0.322452129657 0.68607901214
4739+0.44145008552 0.792520128489
4740+0.581702890993 0.914292269826
4741+0.794230528555 1.08230778858
4742+0.887739351717 1.15858745985
4743+0.981123023654 1.32309874432
4744+1.00212757081 1.5148929957
4745+1.00559008802 2.07381836386
4746+1.00519377581 2.35321847232
4747+0.9793083309 2.60245713571
4748+0.940845187935 2.71897292562
4749+0.881106336824 2.83486295941
4750
4751=== added file 'examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-num-8.0.dat'
4752--- examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-num-8.0.dat 1970-01-01 00:00:00 +0000
4753+++ examples/backward_facing_step_2d/Ilinca-data/Ilinca-U-num-8.0.dat 2011-11-30 17:31:28 +0000
4754@@ -0,0 +1,17 @@
4755+0.191776315789 0.0312174309536
4756+0.242105263158 0.254820218864
4757+0.336842105263 0.434601354872
4758+0.416776315789 0.569583767587
4759+0.502631578947 0.674960917144
4760+0.677302631579 0.915467040125
4761+0.846052631579 1.11132100052
4762+0.905263157895 1.2014069828
4763+0.958552631579 1.33594971339
4764+0.982236842105 1.45515242314
4765+0.994078947368 1.70782308494
4766+0.997039473684 1.87123827514
4767+0.988157894737 2.27208181344
4768+0.976315789474 2.4055497655
4769+0.925986842105 2.62749153205
4770+0.83125 2.81899752475
4771+0.748355263158 2.9067385357
4772
4773=== added file 'examples/backward_facing_step_2d/Makefile'
4774--- examples/backward_facing_step_2d/Makefile 1970-01-01 00:00:00 +0000
4775+++ examples/backward_facing_step_2d/Makefile 2011-11-30 17:31:28 +0000
4776@@ -0,0 +1,31 @@
4777+BIN=../../../bin
4778+preprocess:
4779+ @if [ "x" == "x${TYPE}" ]; then echo "**********ERROR: Commandline should be make preprocess TYPE=type, where type is reference or kepsilon"; false; fi;
4780+ echo **********Installing directory for $(TYPE) run:
4781+ install -d $(TYPE); \
4782+ cd $(TYPE); \
4783+ ln -s ../backward_facing_step_2d_kim_$(TYPE).flml .; \
4784+ echo **********Generating mesh for $(TYPE) simulation.; \
4785+ gmsh -2 -o step2d-kim-med.msh ../src/step2d-kim-med.geo; \
4786+ $(BIN)/gmsh2triangle -2 step2d-kim-med.msh; \
4787+ cd ..
4788+
4789+run:
4790+ @if [ "x" == "x${TYPE}" ]; then echo "**********ERROR: Commandline should be make run TYPE=type, where type is reference or kepsilon"; false; fi;
4791+ @echo **********Running the $(TYPE) simulation:
4792+ cd $(TYPE) && $(BIN)/fluidity -v2 -l backward_facing_step_2d_kim_$(TYPE).flml && cd ..
4793+
4794+postprocess:
4795+ @if [ "x" == "x${TYPE}" ]; then echo "**********ERROR: Commandline should be make postprocess TYPE=type, where type is reference or kepsilon"; false; fi;
4796+ @echo **********Calling the velocity data extraction and reattachment length calculation python script:
4797+ cd $(TYPE); \
4798+ ln -s ../postprocessor_2d.py .; \
4799+ ./postprocessor_2d.py $(TYPE); \
4800+ cd ..
4801+
4802+input: clean preprocess
4803+
4804+clean:
4805+ @echo **********Cleaning the output from previous fluidity runs
4806+ rm -r kepsilon reference *.pdf
4807+
4808
4809=== removed file 'examples/backward_facing_step_2d/Makefile'
4810--- examples/backward_facing_step_2d/Makefile 2011-10-21 14:11:04 +0000
4811+++ examples/backward_facing_step_2d/Makefile 1970-01-01 00:00:00 +0000
4812@@ -1,51 +0,0 @@
4813-BIN=../../../bin
4814-RE=4700
4815-JOB=high
4816-ROOT=$(PWD)
4817-
4818-preprocess:
4819- @echo **********Generating a 2D mesh:
4820- @$(foreach NN,coarse med fine, \
4821- echo **********Installing directory for $(NN) simulation.; \
4822- install -d $(RE)-$(JOB)-$(NN); \
4823- if [ -d "$(RE)-$(JOB)-$(NN)" ]; then \
4824- cd $(RE)-$(JOB)-$(NN); \
4825- ln -sf ../backward_facing_step_2d-$(RE)-$(JOB)-$(NN).flml .; \
4826- echo **********Generating mesh for $(NN) simulation.; \
4827- gmsh -2 -optimize -o step2d-$(NN).msh ../src/step2d-$(NN).geo; \
4828- $(BIN)/gmsh2triangle -2 step2d-$(NN).msh ; \
4829- cd $(ROOT); \
4830- fi; \
4831- )
4832-
4833-run:
4834- @echo **********Running the test on different meshes:
4835- @$(foreach NN,coarse med fine, \
4836- if [ -d "$(RE)-$(JOB)-$(NN)" ]; then \
4837- cd $(RE)-$(JOB)-$(NN); \
4838- echo **********Running simulation for $(NN) mesh.; \
4839- $(BIN)/fluidity -v2 -l backward_facing_step_2d-$(RE)-$(JOB)-$(NN).flml; \
4840- cd $(ROOT); \
4841- fi; \
4842- )
4843-
4844-postprocess:
4845- @echo **********Calling the velocity data extraction and reattachment length calculation python script:
4846- @$(foreach NN,coarse med fine, \
4847- if [ -d "$(RE)-$(JOB)-$(NN)" ]; then \
4848- cd $(RE)-$(JOB)-$(NN); \
4849- ln -s ../postprocessor_2d.py .; \
4850- ./postprocessor_2d.py $(RE) $(JOB) $(NN); \
4851- cd $(ROOT); \
4852- fi; \
4853- )
4854-
4855-input: clean preprocess
4856-
4857-clean:
4858- @echo **********Cleaning the output from previous fluidity runs
4859- @$(foreach NN,coarse med fine, \
4860- if [ -d "$(RE)-$(JOB)-$(NN)" ]; then \
4861- echo **********Cleaning folder $(RE)-$(JOB)-$(NN); \
4862- rm -r $(RE)-$(JOB)-$(NN); fi; \
4863- )
4864
4865=== removed file 'examples/backward_facing_step_2d/backward_facing_step_2d-4700-high-coarse.flml'
4866--- examples/backward_facing_step_2d/backward_facing_step_2d-4700-high-coarse.flml 2011-04-26 15:43:25 +0000
4867+++ examples/backward_facing_step_2d/backward_facing_step_2d-4700-high-coarse.flml 1970-01-01 00:00:00 +0000
4868@@ -1,591 +0,0 @@
4869-<?xml version='1.0' encoding='utf-8'?>
4870-<fluidity_options>
4871- <simulation_name>
4872- <string_value lines="1">backward_facing_step_2d-high-coarse</string_value>
4873- </simulation_name>
4874- <problem_type>
4875- <string_value lines="1">fluids</string_value>
4876- </problem_type>
4877- <geometry>
4878- <dimension>
4879- <integer_value rank="0">2</integer_value>
4880- </dimension>
4881- <mesh name="CoordinateMesh">
4882- <from_file file_name="step2d-coarse">
4883- <format name="triangle"/>
4884- <stat>
4885- <include_in_stat/>
4886- </stat>
4887- </from_file>
4888- </mesh>
4889- <mesh name="VelocityMesh">
4890- <from_mesh>
4891- <mesh name="CoordinateMesh"/>
4892- <stat>
4893- <exclude_from_stat/>
4894- </stat>
4895- </from_mesh>
4896- </mesh>
4897- <mesh name="PressureMesh">
4898- <from_mesh>
4899- <mesh name="CoordinateMesh"/>
4900- <stat>
4901- <exclude_from_stat/>
4902- </stat>
4903- </from_mesh>
4904- </mesh>
4905- <quadrature>
4906- <degree>
4907- <integer_value rank="0">3</integer_value>
4908- </degree>
4909- </quadrature>
4910- </geometry>
4911- <io>
4912- <dump_format>
4913- <string_value>vtk</string_value>
4914- </dump_format>
4915- <dump_period_in_timesteps>
4916- <constant>
4917- <integer_value rank="0">10</integer_value>
4918- </constant>
4919- </dump_period_in_timesteps>
4920- <output_mesh name="CoordinateMesh"/>
4921- <stat/>
4922- </io>
4923- <timestepping>
4924- <current_time>
4925- <real_value rank="0">0.0</real_value>
4926- </current_time>
4927- <timestep>
4928- <real_value rank="0">0.05</real_value>
4929- </timestep>
4930- <finish_time>
4931- <real_value rank="0">300.0</real_value>
4932- </finish_time>
4933- <nonlinear_iterations>
4934- <integer_value rank="0">2</integer_value>
4935- </nonlinear_iterations>
4936- <adaptive_timestep>
4937- <requested_cfl>
4938- <real_value rank="0">1.0</real_value>
4939- </requested_cfl>
4940- <courant_number name="CFLNumber">
4941- <mesh name="VelocityMesh"/>
4942- </courant_number>
4943- </adaptive_timestep>
4944- <steady_state>
4945- <tolerance>
4946- <real_value rank="0">1.e-5</real_value>
4947- <infinity_norm/>
4948- </tolerance>
4949- <steady_state_file>
4950- <plain_text_output/>
4951- </steady_state_file>
4952- </steady_state>
4953- </timestepping>
4954- <material_phase name="Fluid">
4955- <subgridscale_parameterisations>
4956- <k-epsilon>
4957- <scalar_field name="TurbulentKineticEnergy" rank="0">
4958- <prognostic>
4959- <mesh name="VelocityMesh"/>
4960- <equation name="AdvectionDiffusion"/>
4961- <spatial_discretisation>
4962- <control_volumes>
4963- <face_value name="FiniteElement">
4964- <limit_face_value>
4965- <limiter name="Sweby">
4966- <project_upwind_value_from_point>
4967- <store_upwind_elements>
4968- <store_upwind_quadrature/>
4969- </store_upwind_elements>
4970- </project_upwind_value_from_point>
4971- </limiter>
4972- </limit_face_value>
4973- </face_value>
4974- <diffusion_scheme name="ElementGradient"/>
4975- </control_volumes>
4976- <conservative_advection>
4977- <real_value rank="0">0</real_value>
4978- </conservative_advection>
4979- </spatial_discretisation>
4980- <temporal_discretisation>
4981- <theta>
4982- <real_value rank="0">0.5</real_value>
4983- </theta>
4984- <control_volumes>
4985- <number_advection_iterations>
4986- <integer_value rank="0">3</integer_value>
4987- </number_advection_iterations>
4988- <limit_theta/>
4989- </control_volumes>
4990- </temporal_discretisation>
4991- <solver>
4992- <iterative_method name="cg"/>
4993- <preconditioner name="hypre">
4994- <hypre_type name="boomeramg"/>
4995- </preconditioner>
4996- <relative_error>
4997- <real_value rank="0">1.e-7</real_value>
4998- </relative_error>
4999- <max_iterations>
5000- <integer_value rank="0">1000</integer_value>
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches