Skip to content
Snippets Groups Projects
comm_tools.h 2.03 KiB
Newer Older
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
/*----------------------------------------------------------------------
  PuReMD - Purdue ReaxFF Molecular Dynamics Program
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed

Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
  Copyright (2010) Purdue University
  Hasan Metin Aktulga, haktulga@cs.purdue.edu
  Joseph Fogarty, jcfogart@mail.usf.edu
  Sagar Pandit, pandit@usf.edu
  Ananth Y Grama, ayg@cs.purdue.edu

  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU General Public License as
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
  published by the Free Software Foundation; either version 2 of
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
  the License, or (at your option) any later version.
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed

Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
  See the GNU General Public License for more details:
  <http://www.gnu.org/licenses/>.
  ----------------------------------------------------------------------*/

#ifndef __COMM_TOOLS_H_
#define __COMM_TOOLS_H_

#include "reax_types.h"

#if defined(NEUTRAL_TERRITORY)
void Setup_NT_Comm( reax_system * const, control_params * const,
        mpi_datatypes * const );

void Estimate_NT_Atoms( reax_system * const, mpi_datatypes * const );
#endif

void Check_MPI_Error( int, const char * const, int );
void Setup_Comm( reax_system * const, control_params * const, mpi_datatypes * const );
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed

        int, int, int, mpi_out_data * const, int * const );
void Sort_Boundary_Atoms( reax_system * const, int, int,
        int, mpi_out_data * const, mpi_datatypes * const );
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed

void Unpack_Exchange_Message( reax_system * const, int, void * const,
        int, neighbor_proc * const, int );

int SendRecv( reax_system * const, mpi_datatypes * const, MPI_Datatype,
        message_counter, message_sorter, unpacker, int );
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed

void Comm_Atoms( reax_system * const, control_params * const, simulation_data * const, storage * const,
        mpi_datatypes * const, int );
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed

#endif