~fluidity-core/fluidity/doodson

  • Committer: Stephan Kramer
  • Date: 2012-05-17 16:56:41 UTC
  • mfrom: (3949.1.9 gmsh-on-sphere)
  • Revision ID: s.kramer@imperial.ac.uk-20120517165641-avol2tzfq1q49dsy
Fixing gmsh reader to read meshes on the sphere (i.e. meshes with topological dimension 2, and coordinate dimension 3).

Also adding a parallel spherical_patch test case that tests this reading, writing out to a checkpoint, and flredecomping to a different number of processes.

Some optimisation and cleaning up of Read_GMSH.F90:
- prevent reading of the gmsh file twice. This was because read_gmsh_simple() called identify_gmsh_file() to establish
various dimensions, which it can only do by reading the entire file. Then an appropriate shape functon was allocated 
and read_gmsh_to_field was called which read the file again.
- the only version of read_gmsh_files to remain is the _simple version (as this was the only one in use). It 
first reads in all the data, then establishes the necessary dimensions and then allocates the appropriate femtools
objects.
- the dimension of the read gmsh mesh is now established from the topology of the mesh, basically looking at the 
highest dimension elements present, i.e. if there's tets or hexes it's 3d, otherwise 2d (1d gmsh reading is untested)
Previously this was done by looking at the z coordinate and seeing if it was small using some arbitray, hard-coded definition
of small. This is obviously not a good idea.
- the dimension of the coordinate field that is returned (X%dim) is in most cases chosen to be the same as 
the topological dimension. Only with the /geometry/spherical_earth option this is always 3 so that a 2d spherical
horizontal mesh (to be extruded inside fluidity) can be read. This was broken before. The other codes that use
embedded meshes (shallow water) use a specific option that only works for triangle, so that functionality should
remain unchanged.
- remove identify_gmsh_files()
- because of this remove identify_mesh_files() from the mesh_files module
- in all subroutines of the mesh_files module make format a required argument. Before, if the argument was not present
a "guess" would be made. In some tools where no option tree is present (e.g. test_laplacian) this would always default 
to "triangle". These therefore now directly call read_triangle_files. In all other cases the format should be worked 
out. For output this can be a bit tricky. For checkpointing the same logic is followed as before (look at the option 
under the external mesh). For adaptivity debugging meshes it now always uses gmsh.
- identify_mesh_files() was only used in populate_state, in the case of inactive process (flredecomp from less 
to more processes), where inactive processed needed to know the dimensions of the mesh. This is now communicated
via a MPI_Scatter()
Filename Latest Rev Last Changed Committer Comment Size
..
adjoint 2889 13 years ago cjc1 merged in from shallow_water_sphere_linear_branch Diff
assemble 1539 13 years ago sf1409 revert accidentily commited changes. Diff
bathymetry 1073 14 years ago rbn00 Added the following functionalities: 1) Added a -s Diff
bin 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
climatology 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
debian 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
debug 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
diagnostics 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
error_measures 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
examples 1597 13 years ago cwilson Setting up an examples directory with the beginnin Diff
femtools 1539 13 years ago sf1409 revert accidentily commited changes. Diff
fldecomp 1559 13 years ago acreech Added GMSH support to fldecomp (EXPERIMENTAL) Diff
forward_interfaces 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
horizontal_adaptivity 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
hyperlight 2290 13 years ago ml805 Adding Hyperlight to configure. This is non-free t Diff
include 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
libadaptivity 3393 13 years ago Timothy Bond Following the move from svn to bzr we change the n Diff
libalgencan 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
libjudy 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
libmba2d 3393 13 years ago Timothy Bond Following the move from svn to bzr we change the n Diff
libmba3d 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
libspud 3393 13 years ago Timothy Bond Following the move from svn to bzr we change the n Diff
libvtkfortran 3393 13 years ago Timothy Bond Following the move from svn to bzr we change the n Diff
libwm 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
main 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
manual 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
mayavi 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
ocean_forcing 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
parameterisation 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
preprocessor 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
python 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
reduced_modelling 238 14 years ago fangf add a new folder reduced_modelling Diff
schemas 2249 13 years ago tmb1 Adding a new schemas/ directory following discussi Diff
sediments 1984 13 years ago jhill1 Changes needed to add in sediment re-entrainment: Diff
spatialindex-1.5 1539 13 years ago sf1409 revert accidentily commited changes. Diff
tests 1 14 years ago hhiester deleting initialisation as none of tools are used Diff
tools 1539 13 years ago sf1409 revert accidentily commited changes. Diff
.bzrignore 3463.1.34 12 years ago Jonathan Bull Adding another Helmholtz mms test, this time with 120 bytes Diff Download File
aclocal.m4 3957 12 years ago Jon Hill Minor chnage to configure to get the HECToR build 32.3 KB Diff Download File
acx_blas.m4 1 14 years ago hhiester deleting initialisation as none of tools are used 7 KB Diff Download File
acx_lapack.m4 1 14 years ago hhiester deleting initialisation as none of tools are used 4.1 KB Diff Download File
AUTHORS 3520.2.92 12 years ago Lawrence Mitchell Add AUTHOR credits for UoE Additionally, list UoE 1.5 KB Diff Download File
File config.guess 1 14 years ago hhiester deleting initialisation as none of tools are used 43.5 KB Diff Download File
File config.sub 1 14 years ago hhiester deleting initialisation as none of tools are used 31.9 KB Diff Download File
File configure 3520.2.84 12 years ago Gerard Gorman Merged in r3957 from trunk 444 KB Diff Download File
configure.in 3520.2.75 12 years ago Lawrence Mitchell Merge hybrid_first_touch branch This brings the N 45 KB Diff Download File
INSTALL 2575 13 years ago pef Some more tweaking commits 735 bytes Diff Download File
File install-sh 3671 12 years ago Gerard Gorman This commit focuses on adding the make install rul 5.4 KB Diff Download File
LICENSE 1 14 years ago hhiester deleting initialisation as none of tools are used 25.3 KB Diff Download File
main.cpp 3578.1.2 12 years ago Lawrence Mitchell Introduce command line option to print timing prof 2.7 KB Diff Download File
File Makefile.in 3980 12 years ago Tim Greaves Reverting r.3979 until it's been through the revie 21 KB Diff Download File
petsc_makefile 1056 14 years ago skramer Fluidity builds with petsc 3.1. Complete rewrite o 383 bytes Diff Download File
README 2573 13 years ago Patrick Farrell Another minor change to test the reviewboard integ 695 bytes Diff Download File