9 #ifndef _snl_fei_Utils_hpp_
10 #define _snl_fei_Utils_hpp_
41 const char*
getParam(
const char* key,
43 const char*
const* paramStrings);
63 const char*
const* paramStrings,
80 std::vector<std::string>& params,
103 const char*
const* paramStrings,
111 const char*
const* params,
119 const char*
const* params,
126 std::vector<std::string>& params,
147 const char*
getParam(
const char* key,
149 const char*
const* paramStrings,
169 const char*
getParam(
const char* key,
170 std::vector<std::string>& paramStrings,
176 std::vector<char*>& attributeNames,
177 std::vector<void*>& attributes);
181 std::vector<char*>& attributeNames,
182 std::vector<void*>& attributes);
186 const char* substring,
187 const char*& before_substring,
188 int& len_before_substring,
189 const char*& after_substring,
190 int& len_after_substring);
215 const char*
const* stringsToMerge,
int numStringsToMerge);
222 const std::vector<int>& bcEqnNumbers);
239 const int* blockSizes,
240 const double*
const* values2d,
242 double* colcontigvalues);
249 const double*
const* values2d,
251 double* colcontigvalues);
254 #endif // _snl_fei_Utils_hpp_
const char * skipSeparator(const char *paramString, char separator=' ')
void copy2DToColumnContig(int numrows, int numcols, const double *const *values2d, int format, double *colcontigvalues)
unsigned leading_substring_length(const char *string)
int gatherRemoteEssBCs(fei::CSVec &essBCs, fei::SparseRowGraph *remoteGraph, fei::Matrix &matrix)
int mergeStringLists(char **&strings, int &numStrings, const char *const *stringsToMerge, int numStringsToMerge)
int getDoubleParamValue(const char *key, int numParams, const char *const *params, double ¶mValue)
int resolveConflictingCRs(fei::MatrixGraph &matrixGraph, fei::Matrix &bcEqns, const std::vector< int > &bcEqnNumbers)
int storeNamedAttribute(const char *name, void *attribute, std::vector< char * > &attributeNames, std::vector< void * > &attributes)
void * retrieveNamedAttribute(const char *name, std::vector< char * > &attributeNames, std::vector< void * > &attributes)
const char * getParam(const char *key, int numParams, const char *const *paramStrings)
void separate_string(const char *input_string, const char *substring, const char *&before_substring, int &len_before_substring, const char *&after_substring, int &len_after_substring)
void copy2DBlockDiagToColumnContig(int numBlocks, const int *blockSizes, const double *const *values2d, int format, double *colcontigvalues)
fei::SharedPtr< fei::SparseRowGraph > mergeSparseRowGraphs(const fei::SparseRowGraph *srg1, const fei::SparseRowGraph *srg2)
int getIntParamValue(const char *key, int numParams, const char *const *params, int ¶mValue)
const char * getParamValue(const char *key, int numParams, const char *const *paramStrings, char separator=' ')