Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix some doxygen errors
[simgrid.git] / src / smpi / bindings / smpi_f77.cpp
index 0316d2204e8772930e9ed1aeed967bf90abcef35..33c9984bfb68a3fb7c2d917afa3088cd70ded214 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2010-2023. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -569,10 +569,7 @@ void mpi_op_commutative_(int* op, int* commute, int* ierr)
 void mpi_group_free_(int* group, int* ierr)
 {
   MPI_Group tmp = simgrid::smpi::Group::f2c(*group);
-  if(tmp != MPI_COMM_WORLD->group() && tmp != MPI_GROUP_EMPTY){
-    simgrid::smpi::Group::unref(tmp);
-  }
-  *ierr = MPI_SUCCESS;
+  *ierr         = MPI_Group_free(&tmp);
 }
 
 void mpi_group_size_(int* group, int* size, int* ierr)