~reducedmodelling/fluidity/ReducedModel

Viewing all changes in revision 3029.

  • Committer: slm06
  • Date: 2011-02-28 16:03:39 UTC
  • Revision ID: svn-v4:5bf5533e-7014-46e3-b1bb-cce4b9d03719:trunk:3114
First commit to start using MPI_COMM_FEMTOOLS instead of MPI_COMM_WORLD.

To users: Sorry if this breaks anything! I will keep an eye on buildbot but if you notice any peculiar MPI errors please let me know.

To developers: any commands requiring a communicator should use MPI_COMM_FEMTOOLS (available with 'use parallel_tools') instead of MPI_COMM_WORLD.

To reviewers: Most of these commits just change the use of mpi_comm_world to mpi_comm_femtools. The main changes happen in femtools/MPI_Interfaces.F90 where default_comm is defined as MPI_COMM_WORLD and in femtools/Parallel_Tools.F90 where MPI_COMM_FEMTOOLS is allocated as the default_comm. A subroutine 'set_communicator' is also made public where a program can change the value of MPI_COMM_FEMTOOLS. Some trickery is going on in femtools/Halos_Allocates.F90, if someone can please confirm that this change is acceptable. For why this is necessary, please see the diff of femtools/Halo_Data_Types.F90 .

Still to be modified: Lib adaptivity still uses MPI_COMM_WORLD. This will be changed with a commit in the near future.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: