You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.1 KiB
35 lines
1.1 KiB
2 years ago
|
/*
|
||
|
* Copyright(C) 1999-2020, 2022 National Technology & Engineering Solutions
|
||
|
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
|
||
|
* NTESS, the U.S. Government retains certain rights in this software.
|
||
|
*
|
||
|
* See packages/seacas/LICENSE for details
|
||
|
*/
|
||
|
#pragma once
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
/*****************************************************************************/
|
||
|
namespace Excn {
|
||
|
class ParallelDisks
|
||
|
{
|
||
|
//: This class declares the unique, global object that represents the
|
||
|
//: disk farm on a parallel machine. Its function is to map
|
||
|
//: processors onto disk files.
|
||
|
|
||
|
public:
|
||
|
ParallelDisks();
|
||
|
~ParallelDisks();
|
||
|
|
||
|
static void Create_IO_Filename(std::string & /*name*/, int processor, int num_processors);
|
||
|
|
||
|
void rename_file_for_mp(const std::string &rootdir, const std::string &subdir,
|
||
|
std::string &name, int node, int numproc) const;
|
||
|
|
||
|
private:
|
||
|
// not defined (the parallel disks object is unique!)
|
||
|
ParallelDisks(const ParallelDisks &);
|
||
|
ParallelDisks &operator=(const ParallelDisks &);
|
||
|
};
|
||
|
} // namespace Excn
|