Skip to content

Commit

Permalink
Fix Copyright message (#951)
Browse files Browse the repository at this point in the history
Fix year in Copyright message of a few source files.
  • Loading branch information
victorapm authored Jul 21, 2023
1 parent 9449cb9 commit 03b9d3d
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 26 deletions.
36 changes: 25 additions & 11 deletions src/parcsr_ls/gen_redcs_mat.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,15 +492,22 @@ hypre_seqAMGCycle( hypre_ParAMGData *amg_data,
return (Solve_err_flag);
}

/* generate sub communicator, which contains no idle processors */
/*--------------------------------------------------------------------------
* hypre_GenerateSubComm
*
* generate sub communicator, which contains no idle processors
*--------------------------------------------------------------------------*/

HYPRE_Int hypre_GenerateSubComm(MPI_Comm comm, HYPRE_Int participate, MPI_Comm *new_comm_ptr)
HYPRE_Int
hypre_GenerateSubComm(MPI_Comm comm,
HYPRE_Int participate,
MPI_Comm *new_comm_ptr)
{
MPI_Comm new_comm;
hypre_MPI_Group orig_group, new_group;
hypre_MPI_Op hypre_MPI_MERGE;
HYPRE_Int *info, *ranks, new_num_procs, my_info, my_id, num_procs;
HYPRE_Int *list_len;
MPI_Comm new_comm;
hypre_MPI_Group orig_group, new_group;
hypre_MPI_Op hypre_MPI_MERGE;
HYPRE_Int *info, *ranks, new_num_procs, my_info, my_id, num_procs;
HYPRE_Int *list_len;

hypre_MPI_Comm_rank(comm, &my_id);

Expand All @@ -519,7 +526,8 @@ HYPRE_Int hypre_GenerateSubComm(MPI_Comm comm, HYPRE_Int participate, MPI_Comm *
{
new_comm = hypre_MPI_COMM_NULL;
*new_comm_ptr = new_comm;
return 0;

return hypre_error_flag;
}

ranks = hypre_CTAlloc(HYPRE_Int, new_num_procs + 2, HYPRE_MEMORY_HOST);
Expand Down Expand Up @@ -571,12 +579,18 @@ HYPRE_Int hypre_GenerateSubComm(MPI_Comm comm, HYPRE_Int participate, MPI_Comm *

*new_comm_ptr = new_comm;

return 0;
return hypre_error_flag;
}

/*--------------------------------------------------------------------------
* hypre_merge_lists
*--------------------------------------------------------------------------*/

void hypre_merge_lists (HYPRE_Int *list1, HYPRE_Int* list2, hypre_int *np1,
hypre_MPI_Datatype *dptr)
void
hypre_merge_lists(HYPRE_Int *list1,
HYPRE_Int *list2,
hypre_int *np1,
hypre_MPI_Datatype *dptr)
{
HYPRE_Int i, len1, len2, indx1, indx2;

Expand Down
4 changes: 2 additions & 2 deletions src/parcsr_ls/par_fsai_device.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/******************************************************************************
* Copyright 1998-2019 Lawrence Livermore National Security, LLC and other
* Copyright (c) 1998 Lawrence Livermore National Security, LLC and other
* HYPRE Project Developers. See the top-level COPYRIGHT file for details.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
*******************************************************************************/
******************************************************************************/

#include "_hypre_parcsr_ls.h"
#include "_hypre_utilities.hpp"
Expand Down
4 changes: 2 additions & 2 deletions src/seq_mv/csr_spgemm_device_numblocks.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/******************************************************************************
* Copyright 1998-2019 Lawrence Livermore National Security, LLC and other
* Copyright (c) 1998 Lawrence Livermore National Security, LLC and other
* HYPRE Project Developers. See the top-level COPYRIGHT file for details.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
******************************************************************************/

#include "seq_mv.h"

#if defined(HYPRE_USING_GPU)
Expand Down Expand Up @@ -145,4 +146,3 @@ HYPRE_Int hypreDevice_CSRSpGemmBinnedGetBlockNumDim()
}

#endif /* defined(HYPRE_USING_GPU) */

3 changes: 1 addition & 2 deletions src/seq_mv/csr_spgemm_device_numer.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/******************************************************************************
* Copyright 1998-2019 Lawrence Livermore National Security, LLC and other
* Copyright (c) 1998 Lawrence Livermore National Security, LLC and other
* HYPRE Project Developers. See the top-level COPYRIGHT file for details.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
Expand Down Expand Up @@ -234,4 +234,3 @@ hypreDevice_CSRSpGemmNumerWithRownnzUpperbound( HYPRE_Int m,
}

#endif /* defined(HYPRE_USING_GPU) */

2 changes: 1 addition & 1 deletion src/seq_mv/csr_spgemm_device_numer.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/******************************************************************************
* Copyright 1998-2019 Lawrence Livermore National Security, LLC and other
* Copyright (c) 1998 Lawrence Livermore National Security, LLC and other
* HYPRE Project Developers. See the top-level COPYRIGHT file for details.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
Expand Down
3 changes: 1 addition & 2 deletions src/seq_mv/csr_spgemm_device_numer.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/******************************************************************************
* Copyright 1998-2019 Lawrence Livermore National Security, LLC and other
* Copyright (c) 1998 Lawrence Livermore National Security, LLC and other
* HYPRE Project Developers. See the top-level COPYRIGHT file for details.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
Expand Down Expand Up @@ -48,4 +48,3 @@ hypreDevice_CSRSpGemmNumerPostCopy<T_GROUP_SIZE[HYPRE_SPGEMM_BIN]>
#endif

#endif /* defined(HYPRE_USING_GPU) */

3 changes: 1 addition & 2 deletions src/seq_mv/csr_spgemm_device_symbl.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/******************************************************************************
* Copyright 1998-2019 Lawrence Livermore National Security, LLC and other
* Copyright (c) 1998 Lawrence Livermore National Security, LLC and other
* HYPRE Project Developers. See the top-level COPYRIGHT file for details.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
Expand Down Expand Up @@ -416,4 +416,3 @@ hypreDevice_CSRSpGemmRownnz( HYPRE_Int m,
}

#endif /* defined(HYPRE_USING_GPU) */

2 changes: 1 addition & 1 deletion src/seq_mv/csr_spgemm_device_symbl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/******************************************************************************
* Copyright 1998-2019 Lawrence Livermore National Security, LLC and other
* Copyright (c) 1998 Lawrence Livermore National Security, LLC and other
* HYPRE Project Developers. See the top-level COPYRIGHT file for details.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
Expand Down
3 changes: 1 addition & 2 deletions src/seq_mv/csr_spgemm_device_symbl.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/******************************************************************************
* Copyright 1998-2019 Lawrence Livermore National Security, LLC and other
* Copyright (c) 1998 Lawrence Livermore National Security, LLC and other
* HYPRE Project Developers. See the top-level COPYRIGHT file for details.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
Expand Down Expand Up @@ -38,4 +38,3 @@ hypre_spgemm_symbolic_max_num_blocks
( HYPRE_Int multiProcessorCount, HYPRE_Int *num_blocks_ptr, HYPRE_Int *block_size_ptr );

#endif /* defined(HYPRE_USING_GPU) */

2 changes: 1 addition & 1 deletion src/test/test_mgr.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/******************************************************************************
* Copyright 1998-2019 Lawrence Livermore National Security, LLC and other
* Copyright (c) 1998 Lawrence Livermore National Security, LLC and other
* HYPRE Project Developers. See the top-level COPYRIGHT file for details.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
Expand Down

0 comments on commit 03b9d3d

Please sign in to comment.