perf(graph_engine): finished sparsity system for jacobian, major preformance win, roughly 20x faster
essentially all callers can now inform the graph engine about which species they hold active and graph engine then uses those to define a sparsity pattern and only calculate the jacobian along that sparsity pattern
This commit is contained in:
23
src/include/gridfire/exceptions/error_utils.h
Normal file
23
src/include/gridfire/exceptions/error_utils.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <exception>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
namespace gridfire::exceptions {
|
||||
class UtilityError : public std::exception {};
|
||||
|
||||
class HashingError final : public UtilityError {
|
||||
public:
|
||||
explicit HashingError() = default;
|
||||
|
||||
explicit HashingError(std::string message)
|
||||
: m_message(std::move(message)) {}
|
||||
|
||||
[[nodiscard]] const char* what() const noexcept override {
|
||||
return m_message.c_str();
|
||||
}
|
||||
private:
|
||||
std::string m_message;
|
||||
};
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#include "gridfire/exceptions/error_engine.h"
|
||||
#include "gridfire/exceptions/error_engine.h"
|
||||
#include "gridfire/exceptions/error_utils.h"
|
||||
Reference in New Issue
Block a user