Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
adding documentation
[simgrid.git] / src / smpi / mpi / smpi_file.cpp
index 2b773284698e20dd1d51347dac0384fc6d30c1f4..57b61704e311ef157f71f3698c542d0fa0c93e52 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2022. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-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. */
@@ -282,7 +282,7 @@ int File::set_view(MPI_Offset disp, MPI_Datatype etype, MPI_Datatype filetype, c
 {
   etype_    = etype;
   filetype_ = filetype;
-  datarep_  = std::string(datarep);
+  datarep_  = datarep;
   disp_     = disp;
   if (comm_->rank() == 0){
     if(disp != MPI_DISPLACEMENT_CURRENT)