Go to the source code of this file.
|
void | getnumcpus_ (int *num) |
|
void | getrank_ (int *rank) |
|
MPI_Comm | get_communicator () |
|
int | getnumthreads_ () |
|
int | get_thread_id_ () |
|
void | getoutdir_ (char *dir, int *len) |
|
void | getjobname_ (char *dir, int *len) |
|
void | stdb_abqerr_ (int *lop, char *format, int *intv, double *realv, char *charv, int format_len) |
|
int * | SMAIntArrayCreate (int id, int len, int val) |
|
double * | SMAFloatArrayCreate (int id, int len, Real val) |
|
int * | SMALocalIntArrayCreate (int id, int len, int val) |
|
double * | SMALocalFloatArrayCreate (int id, int len, Real val) |
|
int * | SMAIntArrayAccess (int id) |
|
double * | SMAFloatArrayAccess (int id) |
|
int * | SMALocalIntArrayAccess (int id) |
|
double * | SMALocalFloatArrayAccess (int id) |
|
std::size_t | SMAIntArraySize (int id) |
|
std::size_t | SMAFloatArraySize (int id) |
|
std::size_t | SMALocalIntArraySize (int id) |
|
std::size_t | SMALocalFloatArraySize (int id) |
|
void | SMAIntArrayDelete (int id) |
|
void | SMAFloatArrayDelete (int id) |
|
void | SMALocalIntArrayDelete (int id) |
|
void | SMALocalFloatArrayDelete (int id) |
|
void | MutexInit (int id) |
|
void | MutexLock (int id) |
|
void | MutexUnlock (int id) |
|
◆ get_communicator()
MPI_Comm get_communicator |
( |
| ) |
|
Definition at line 43 of file AbaqusUtils.C.
static const libMesh::Parallel::Communicator * getCommunicator()
DIE A HORRIBLE DEATH HERE typedef MPI_Comm communicator
◆ get_thread_id_()
◆ getjobname_()
void getjobname_ |
( |
char * |
dir, |
|
|
int * |
len |
|
) |
| |
Definition at line 104 of file AbaqusUtils.C.
107 *len = job_name.length();
108 for (
int i = 0; i < 256; ++i)
109 dir[i] = i < *len ? job_name[i] :
' ';
static std::string getJobName()
◆ getnumcpus_()
Definition at line 29 of file AbaqusUtils.C.
static const libMesh::Parallel::Communicator * getCommunicator()
DIE A HORRIBLE DEATH HERE typedef MPI_Comm communicator
◆ getnumthreads_()
◆ getoutdir_()
void getoutdir_ |
( |
char * |
dir, |
|
|
int * |
len |
|
) |
| |
Definition at line 95 of file AbaqusUtils.C.
98 *len = output_dir.length();
99 for (
int i = 0; i < 256; ++i)
100 dir[i] = i < *len ? output_dir[i] :
' ';
static std::string getOutputDir()
◆ getrank_()
Definition at line 36 of file AbaqusUtils.C.
static const libMesh::Parallel::Communicator * getCommunicator()
DIE A HORRIBLE DEATH HERE typedef MPI_Comm communicator
◆ MutexInit()
◆ MutexLock()
◆ MutexUnlock()
◆ SMAFloatArrayAccess()
double* SMAFloatArrayAccess |
( |
int |
id | ) |
|
Definition at line 261 of file AbaqusUtils.C.
Referenced by uexternaldb_().
264 return it->second.data();
static std::map< int, std::vector< T > >::iterator getSMAIterator(std::map< int, std::vector< T >> &array, int id, const std::string &function)
get data vector iterator with error checking
static std::map< int, std::vector< Real > > _sma_float_array
◆ SMAFloatArrayCreate()
double* SMAFloatArrayCreate |
( |
int |
id, |
|
|
int |
len, |
|
|
Real |
val |
|
) |
| |
Definition at line 223 of file AbaqusUtils.C.
226 if (ib.second ==
false)
227 mooseError(
"Error creating threaded storage in SMAFloatArrayCreate");
228 return ib.first->second.data();
void mooseError(Args &&... args)
static std::map< int, std::vector< Real > > _sma_float_array
◆ SMAFloatArrayDelete()
Definition at line 329 of file AbaqusUtils.C.
Referenced by uexternaldb_().
static std::map< int, std::vector< T > >::iterator getSMAIterator(std::map< int, std::vector< T >> &array, int id, const std::string &function)
get data vector iterator with error checking
static std::map< int, std::vector< Real > > _sma_float_array
◆ SMAFloatArraySize()
std::size_t SMAFloatArraySize |
( |
int |
id | ) |
|
Definition at line 295 of file AbaqusUtils.C.
Referenced by uexternaldb_().
298 return it->second.size();
static std::map< int, std::vector< T > >::iterator getSMAIterator(std::map< int, std::vector< T >> &array, int id, const std::string &function)
get data vector iterator with error checking
static std::map< int, std::vector< Real > > _sma_float_array
◆ SMAIntArrayAccess()
int* SMAIntArrayAccess |
( |
int |
id | ) |
|
Definition at line 254 of file AbaqusUtils.C.
Referenced by uexternaldb_().
257 return it->second.data();
static std::map< int, std::vector< T > >::iterator getSMAIterator(std::map< int, std::vector< T >> &array, int id, const std::string &function)
get data vector iterator with error checking
static std::map< int, std::vector< int > > _sma_int_array
Shared Memory Arrays.
◆ SMAIntArrayCreate()
Definition at line 214 of file AbaqusUtils.C.
Referenced by uexternaldb_().
217 if (ib.second ==
false)
218 mooseError(
"Error creating threaded storage in SMAIntArrayCreate");
219 return ib.first->second.data();
void mooseError(Args &&... args)
static std::map< int, std::vector< int > > _sma_int_array
Shared Memory Arrays.
◆ SMAIntArrayDelete()
Definition at line 322 of file AbaqusUtils.C.
Referenced by uexternaldb_().
static std::map< int, std::vector< T > >::iterator getSMAIterator(std::map< int, std::vector< T >> &array, int id, const std::string &function)
get data vector iterator with error checking
static std::map< int, std::vector< int > > _sma_int_array
Shared Memory Arrays.
◆ SMAIntArraySize()
std::size_t SMAIntArraySize |
( |
int |
id | ) |
|
Definition at line 288 of file AbaqusUtils.C.
Referenced by uexternaldb_().
291 return it->second.size();
static std::map< int, std::vector< T > >::iterator getSMAIterator(std::map< int, std::vector< T >> &array, int id, const std::string &function)
get data vector iterator with error checking
static std::map< int, std::vector< int > > _sma_int_array
Shared Memory Arrays.
◆ SMALocalFloatArrayAccess()
double* SMALocalFloatArrayAccess |
( |
int |
id | ) |
|
Definition at line 277 of file AbaqusUtils.C.
Referenced by uexternaldb_().
280 "SMALocalFloatArrayAccess");
282 return it->second.data();
static std::map< int, std::vector< T > >::iterator getSMAIterator(std::map< int, std::vector< T >> &array, int id, const std::string &function)
get data vector iterator with error checking
static std::vector< std::map< int, std::vector< Real > > > _sma_local_float_array
static std::map< int, std::vector< T > > & getSMAThreadArray(std::vector< std::map< int, std::vector< T >>> &local_array, const std::string &function)
get thread local array
◆ SMALocalFloatArrayCreate()
double* SMALocalFloatArrayCreate |
( |
int |
id, |
|
|
int |
len, |
|
|
Real |
val |
|
) |
| |
Definition at line 242 of file AbaqusUtils.C.
246 "SMALocalFloatArrayCreate")[id];
247 array.assign(len, val);
static void smaInitialize()
thread storage initialization
static std::vector< std::map< int, std::vector< Real > > > _sma_local_float_array
static std::map< int, std::vector< T > > & getSMAThreadArray(std::vector< std::map< int, std::vector< T >>> &local_array, const std::string &function)
get thread local array
◆ SMALocalFloatArrayDelete()
void SMALocalFloatArrayDelete |
( |
int |
id | ) |
|
Definition at line 345 of file AbaqusUtils.C.
Referenced by uexternaldb_().
348 "SMALocalFloatArrayDelete");
static std::map< int, std::vector< T > >::iterator getSMAIterator(std::map< int, std::vector< T >> &array, int id, const std::string &function)
get data vector iterator with error checking
static std::vector< std::map< int, std::vector< Real > > > _sma_local_float_array
static std::map< int, std::vector< T > > & getSMAThreadArray(std::vector< std::map< int, std::vector< T >>> &local_array, const std::string &function)
get thread local array
◆ SMALocalFloatArraySize()
std::size_t SMALocalFloatArraySize |
( |
int |
id | ) |
|
Definition at line 311 of file AbaqusUtils.C.
Referenced by uexternaldb_().
316 return it->second.size();
static std::map< int, std::vector< T > >::iterator getSMAIterator(std::map< int, std::vector< T >> &array, int id, const std::string &function)
get data vector iterator with error checking
static std::vector< std::map< int, std::vector< Real > > > _sma_local_float_array
static std::map< int, std::vector< T > > & getSMAThreadArray(std::vector< std::map< int, std::vector< T >>> &local_array, const std::string &function)
get thread local array
◆ SMALocalIntArrayAccess()
int* SMALocalIntArrayAccess |
( |
int |
id | ) |
|
Definition at line 268 of file AbaqusUtils.C.
Referenced by uexternaldb_().
273 return it->second.data();
static std::map< int, std::vector< T > >::iterator getSMAIterator(std::map< int, std::vector< T >> &array, int id, const std::string &function)
get data vector iterator with error checking
static std::vector< std::map< int, std::vector< int > > > _sma_local_int_array
static std::map< int, std::vector< T > > & getSMAThreadArray(std::vector< std::map< int, std::vector< T >>> &local_array, const std::string &function)
get thread local array
◆ SMALocalIntArrayCreate()
Definition at line 232 of file AbaqusUtils.C.
Referenced by uexternaldb_().
236 "SMALocalIntArrayCreate")[id];
237 array.assign(len, val);
static void smaInitialize()
thread storage initialization
static std::vector< std::map< int, std::vector< int > > > _sma_local_int_array
static std::map< int, std::vector< T > > & getSMAThreadArray(std::vector< std::map< int, std::vector< T >>> &local_array, const std::string &function)
get thread local array
◆ SMALocalIntArrayDelete()
void SMALocalIntArrayDelete |
( |
int |
id | ) |
|
Definition at line 336 of file AbaqusUtils.C.
Referenced by uexternaldb_().
static std::map< int, std::vector< T > >::iterator getSMAIterator(std::map< int, std::vector< T >> &array, int id, const std::string &function)
get data vector iterator with error checking
static std::vector< std::map< int, std::vector< int > > > _sma_local_int_array
static std::map< int, std::vector< T > > & getSMAThreadArray(std::vector< std::map< int, std::vector< T >>> &local_array, const std::string &function)
get thread local array
◆ SMALocalIntArraySize()
std::size_t SMALocalIntArraySize |
( |
int |
id | ) |
|
Definition at line 302 of file AbaqusUtils.C.
Referenced by uexternaldb_().
307 return it->second.size();
static std::map< int, std::vector< T > >::iterator getSMAIterator(std::map< int, std::vector< T >> &array, int id, const std::string &function)
get data vector iterator with error checking
static std::vector< std::map< int, std::vector< int > > > _sma_local_int_array
static std::map< int, std::vector< T > > & getSMAThreadArray(std::vector< std::map< int, std::vector< T >>> &local_array, const std::string &function)
get thread local array
◆ stdb_abqerr_()
void stdb_abqerr_ |
( |
int * |
lop, |
|
|
char * |
format, |
|
|
int * |
intv, |
|
|
double * |
realv, |
|
|
char * |
charv, |
|
|
int |
format_len |
|
) |
| |
Definition at line 115 of file AbaqusUtils.C.
118 unsigned int int_index = 0;
119 unsigned int real_index = 0;
120 unsigned int char_index = 0;
122 for (
int i = 0; i < format_len; ++i)
125 if (format[i] ==
'%' && i < format_len - 1)
127 auto next = format[i + 1];
130 if (next ==
'I' || next ==
'i')
132 message += std::to_string(intv[int_index++]);
138 if (next ==
'R' || next ==
'r')
140 message += std::to_string(realv[real_index++]);
146 if (next ==
'S' || next ==
's')
148 for (
unsigned int j = 0;
j < 8; ++
j)
149 message += charv[char_index++];
182 mooseError(
"Invalid LOP code passed to STDB_ABQERR: ", *lop);
void mooseError(Args &&... args)
static const std::string message
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
std::string mooseMsgFmt(const std::string &msg, const std::string &title, const std::string &color)