12 #include "MooseRevision.h" 15 #include "libmesh/libmesh_config.h" 16 #include "libmesh/int_range.h" 17 #include "libmesh/dense_vector.h" 18 #include "libmesh/dense_matrix.h" 27 json[
"app_name"] = app.
name();
32 json[
"moose_version"] = MOOSE_REVISION;
33 json[
"libmesh_version"] = LIBMESH_BUILD_VERSION;
34 #ifdef LIBMESH_DETECTED_PETSC_VERSION_MAJOR 35 json[
"petsc_version"] = std::to_string(LIBMESH_DETECTED_PETSC_VERSION_MAJOR) +
"." +
36 std::to_string(LIBMESH_DETECTED_PETSC_VERSION_MINOR) +
"." +
37 std::to_string(LIBMESH_DETECTED_PETSC_VERSION_SUBMINOR);
39 #ifdef LIBMESH_DETECTED_SLEPC_VERSION_MAJOR 40 json[
"slepc_version"] = std::to_string(LIBMESH_DETECTED_SLEPC_VERSION_MAJOR) +
"." +
41 std::to_string(LIBMESH_DETECTED_SLEPC_VERSION_MINOR) +
"." +
42 std::to_string(LIBMESH_DETECTED_SLEPC_VERSION_SUBMINOR);
66 std::vector<std::vector<Real>> values(matrix.
m(), std::vector<Real>(matrix.
n()));
69 values[i][j] = matrix(i, j);
76 mooseAssert(vector,
"vector must be non-null");
77 std::vector<Number> local_values;
78 local_values.reserve(vector->local_size());
79 for (
const auto i :
make_range(vector->first_local_index(), vector->last_local_index()))
80 local_values.push_back((*vector)(i));
std::string getExecutable() const
std::vector< T > & get_values()
Base class for MOOSE-based applications.
std::string getTimeStamp(std::time_t *time_stamp=NULL) const
void to_json(nlohmann::json &json, const Point &p)
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
virtual const std::string & name() const
Get the name of the class.
std::string getExecutableTimeStamp() const
const SystemInfo * getSystemInfo() const
Get SystemInfo object.
IntRange< T > make_range(T beg, T end)
void to_json(nlohmann::json &json, const MooseApp &app)