/*******************************************************************************
 * Copyright (C) 2017-2026 Theodore Chang
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ******************************************************************************/

#include "Load.h"

double Load::multiplier = 1E8;

Load::Load(const unsigned T, const unsigned AT, std::vector<Node::DOF>&& DO, std::vector<Node::DOF>&& DC, const double PT)
    : ConditionalModifier(T, AT, std::move(DO), std::move(DC))
    , magnitude(PT) {}

const vec& Load::get_trial_load() const { return trial_load; }

const vec& Load::get_trial_settlement() const { return trial_settlement; }

const sp_vec& Load::get_reference_load() const { return reference_load; }

void set_load_multiplier(const double M) { Load::multiplier = M; }
