hummingbird
Solving the self-adjoint angular flux transport equation using spectral elements on Cartesian geometry
Loading...
Searching...
No Matches
json.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2// Copyright (c) 2026, Liam Pohlmann
3
4#ifndef HUMMINGBIRD_UTILS_JSON_H_
5#define HUMMINGBIRD_UTILS_JSON_H_
6
7#include <nlohmann/json.hpp>
8#include <string>
9
10using nlohmann::json;
11
12namespace hummingbird {
13
14/**
15 * @brief Create a json object from a string. Will throw an error if the file
16 * could not be opened
17 *
18 * @param filename File name (relative path) to be opened
19 * @return json
20 */
21json JSONFromFile(const std::string filename);
22
23} // namespace hummingbird
24
25#endif // HUMMINGBIRD_UTILS_JSON_H_
json JSONFromFile(const std::string filename)
Create a json object from a string. Will throw an error if the file could not be opened.
Definition json.cc:11