Teuchos - Trilinos Tools Package Version of the Day
Loading...
Searching...
No Matches
Teuchos_YamlParameterListHelpers.hpp
1// @HEADER
2// *****************************************************************************
3// Teuchos: Common Tools Package
4//
5// Copyright 2004 NTESS and the Teuchos contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef TEUCHOS_YAML_PARAMETER_LIST_HELPERS_HPP
11#define TEUCHOS_YAML_PARAMETER_LIST_HELPERS_HPP
12
13
20#include "Teuchos_Comm.hpp"
21
22
23namespace Teuchos {
24
25
46TEUCHOSCOMM_LIB_DLL_EXPORT
48 const std::string &yamlFileName,
51 bool overwrite = true);
52
53} // namespace Teuchos
54
55
56#endif // TEUCHOS_Yaml_PARAMETER_LIST_HELPERS_HPP
Simple helper functions that make it easy to read and write Yaml to and from a parameterlist.
TEUCHOSCOMM_LIB_DLL_EXPORT void updateParametersFromYamlFileAndBroadcast(const std::string &yamlFileName, const Teuchos::Ptr< Teuchos::ParameterList > &paramList, const Teuchos::Comm< int > &comm, bool overwrite=true)
On processor rank = 0, reads Yaml parameters from a file and broadcasts them to all other processors....
Smart reference counting pointer class for automatic garbage collection.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...