24#ifndef FCN_GENERIC_FUNCTIONS_H
25#define FCN_GENERIC_FUNCTIONS_H
52void weakScaling(
int Nx,
int Ny,
int Nz,
int numberOfProcesses, vector<int> & newNxNyNz);
58 return (stat (name.c_str(), &buffer) == 0);
75int do_mkdir(
const char *path, mode_t mode);
84int mkpath(
const char *path, mode_t mode);
91#include "multiBlock/multiBlockLattice3D.h"
92#include "multiBlock/multiDataField3D.h"
95void boundaryFromFlagMatrix(plb::MultiBlockLattice3D<T,DESCRIPTOR> * fluid, plb::MultiScalarField3D<int> * flagMatrix,
bool);
96inline std::ostream&
operator<<(std::ostream& stream,
const plb::Box3D& box) {
97 return stream <<
"Box3D: " << box.x0 <<
" "<<box.x1<<
" "<<box.y0<<
" "<<box.y1<<
" "<<box.z0<<
" "<<box.z1<<endl;
99inline std::ostream&
operator<<(std::ostream& stream,
const plb::Dot3D&
dot) {
100 return stream <<
"Dot3D: " <<
dot.x <<
" "<<
dot.y<<
" "<<
dot.z<<endl;
struct stat Stat
Definition genericFunctions.h:39
std::string zeroPadNumber(int num, int w)
Definition genericFunctions.cpp:112
int do_mkdir(const char *path, mode_t mode)
Definition genericFunctions.cpp:59
void boundaryFromFlagMatrix(plb::MultiBlockLattice3D< T, DESCRIPTOR > *fluid, plb::MultiScalarField3D< int > *flagMatrix, bool partOfpreInlet)
Definition genericFunctions.cpp:138
void printHeader()
Definition genericFunctions.cpp:121
void weakScaling(int Nx, int Ny, int Nz, int numberOfProcesses, vector< int > &newNxNyNz)
Definition genericFunctions.cpp:36
Logfile & operator<<(Logfile &lf, Val const &rhs)
Definition logfile.h:43
int mkpath(const char *path, mode_t mode)
Definition genericFunctions.cpp:86
_Tp dot(const Array< _Tp, _Nm > &one, const Array< _Tp, _Nm > &two)
Definition array.h:220
int renameFileToDotOld(std::string fName)
Definition genericFunctions.cpp:46
bool file_exists(const std::string &name)
Definition genericFunctions.h:54