Skip to content

Commit

Permalink
apply new format
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Sep 25, 2024
1 parent 8a406e6 commit eafa26a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
1 change: 0 additions & 1 deletion bin/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
// This main file is simply a driver
int main( int argc, char *argv[] )
{

MPI_Init( &argc, &argv );

{
Expand Down
1 change: 0 additions & 1 deletion src/comm_mpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ class Comm
KOKKOS_INLINE_FUNCTION
void operator()( const TagHaloPBC, const T_INT &i ) const
{

switch ( phase )
{
case 0:
Expand Down
4 changes: 0 additions & 4 deletions src/comm_mpi_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ void Comm<t_System>::reduce_min_float( T_FLOAT *vals, T_INT count )
template <class t_System>
void Comm<t_System>::exchange()
{

Kokkos::Profiling::pushRegion( "Comm::exchange" );

N_local = system->N_local;
Expand Down Expand Up @@ -277,7 +276,6 @@ void Comm<t_System>::exchange()
template <class t_System>
void Comm<t_System>::exchange_halo()
{

Kokkos::Profiling::pushRegion( "Comm::exchange_halo" );

N_local = system->N_local;
Expand Down Expand Up @@ -367,7 +365,6 @@ void Comm<t_System>::exchange_halo()
template <class t_System>
void Comm<t_System>::update_halo()
{

Kokkos::Profiling::pushRegion( "Comm::update_halo" );

N_local = system->N_local;
Expand Down Expand Up @@ -409,7 +406,6 @@ void Comm<t_System>::update_halo()
template <class t_System>
void Comm<t_System>::update_force()
{

Kokkos::Profiling::pushRegion( "Comm::update_force" );

N_local = system->N_local;
Expand Down
8 changes: 4 additions & 4 deletions src/inputFile_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ std::vector<std::string> split( const std::string &line )
std::sregex_token_iterator first{ line.begin(), line.end(), re, -1 }, last;
std::vector<std::string> words{ first, last };
// Remove empty
words.erase(
std::remove_if( words.begin(), words.end(),
[]( std::string const &s ) { return s.empty(); } ),
words.end() );
words.erase( std::remove_if( words.begin(), words.end(),
[]( std::string const &s )
{ return s.empty(); } ),
words.end() );
return words;
}

Expand Down
4 changes: 2 additions & 2 deletions src/output.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void log( t_stream &stream, t_last &&last )
}

template <class t_stream, class t_head, class... t_tail>
void log( t_stream &stream, t_head &&head, t_tail &&... tail )
void log( t_stream &stream, t_head &&head, t_tail &&...tail )
{
if ( print_rank() )
stream << head;
Expand All @@ -46,7 +46,7 @@ void log_err( t_stream &stream, t_last &&last )
}

template <class t_stream, class t_head, class... t_tail>
void log_err( t_stream &stream, t_head &&head, t_tail &&... tail )
void log_err( t_stream &stream, t_head &&head, t_tail &&...tail )
{
if ( print_rank() )
stream << head;
Expand Down

0 comments on commit eafa26a

Please sign in to comment.