Revision 4ed02067b58c728e3a1cf9401e1566d492bebe87 authored by Norbert Grunwald on 23 April 2021, 12:45:53 UTC, committed by Dmitri Naumov on 26 April 2021, 16:42:20 UTC
1 parent 8f6e5a6
Raw File
Knobs.cpp
/**
 * \file
 * \copyright
 * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */

#include "Knobs.h"

#include <ostream>

namespace ChemistryLib
{
namespace PhreeqcIOData
{
std::ostream& operator<<(std::ostream& os, Knobs const& knobs)
{
    os << "KNOBS"
       << "\n";
    os << "-iterations " << knobs.max_iterations << "\n";
    os << "-convergence_tolerance " << knobs.relative_convergence_tolerance
       << "\n";
    os << "-tolerance " << knobs.tolerance << "\n";
    os << "-step_size " << knobs.step_size << "\n";
    os << "-diagonal_scale " << knobs.scaling << "\n";

    return os;
}
}  // namespace PhreeqcIOData
}  // namespace ChemistryLib
back to top