forked from idaholab/moose
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Source/header/style updates (idaholab#21885)
- Loading branch information
Showing
53 changed files
with
530 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//* This file is part of the MOOSE framework | ||
//* https://www.mooseframework.org | ||
//* | ||
//* All rights reserved, see COPYRIGHT for full restrictions | ||
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT | ||
//* | ||
//* Licensed under LGPL 2.1, please see LICENSE for details | ||
//* https://www.gnu.org/licenses/lgpl-2.1.html | ||
|
||
#pragma once | ||
|
||
#include "Moose.h" | ||
|
||
namespace OptimizationAppTypes | ||
{ | ||
extern const ExecFlagType EXEC_FORWARD; | ||
extern const ExecFlagType EXEC_ADJOINT; | ||
extern const ExecFlagType EXEC_HOMOGENEOUS_FORWARD; | ||
} |
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
modules/optimization/include/controls/OptimizationMultiAppCommandLineControl.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
modules/optimization/include/multiapps/OptimizeFullSolveMultiApp.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
modules/optimization/include/optimizationreporters/ObjectiveGradientMinimize.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
modules/optimization/include/optimizationreporters/ObjectiveMinimize.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
modules/optimization/include/optimizationreporters/OptimizationReporter.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 9 additions & 1 deletion
10
modules/optimization/include/transfers/OptimizationParameterTransfer.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
modules/optimization/src/auxkernels/MaterialScaledGradientVector.C
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
//* This file is part of the MOOSE framework | ||
//* https://www.mooseframework.org | ||
//* | ||
//* All rights reserved, see COPYRIGHT for full restrictions | ||
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT | ||
//* | ||
//* Licensed under LGPL 2.1, please see LICENSE for details | ||
//* https://www.gnu.org/licenses/lgpl-2.1.html | ||
|
||
#include "OptimizationApp.h" | ||
#include "HeatConductionApp.h" | ||
#include "StochasticToolsApp.h" | ||
#include "Moose.h" | ||
#include "AppFactory.h" | ||
#include "MooseSyntax.h" | ||
#include "ExecFlagRegistry.h" | ||
|
||
#include "OptimizationAppTypes.h" | ||
|
||
InputParameters | ||
OptimizationApp::validParams() | ||
{ | ||
InputParameters params = MooseApp::validParams(); | ||
|
||
// Do not use legacy DirichletBC, that is, set DirichletBC default for preset = true | ||
params.set<bool>("use_legacy_material_output") = false; | ||
|
||
return params; | ||
} | ||
|
||
OptimizationApp::OptimizationApp(InputParameters parameters) : MooseApp(parameters) | ||
{ | ||
OptimizationApp::registerAll(_factory, _action_factory, _syntax); | ||
} | ||
|
||
OptimizationApp::~OptimizationApp() {} | ||
|
||
void | ||
OptimizationApp::registerAll(Factory & f, ActionFactory & af, Syntax & s) | ||
{ | ||
Registry::registerObjectsTo(f, {"OptimizationApp"}); | ||
Registry::registerActionsTo(af, {"OptimizationApp"}); | ||
|
||
auto & syntax = s; | ||
|
||
// Form Function actions | ||
registerSyntaxTask("AddOptimizationReporterAction", "OptimizationReporter", "add_reporter"); | ||
|
||
HeatConductionApp::registerAll(f, af, s); | ||
StochasticToolsApp::registerAll(f, af, s); | ||
} | ||
|
||
void | ||
OptimizationApp::registerApps() | ||
{ | ||
registerApp(OptimizationApp); | ||
} | ||
|
||
/*************************************************************************************************** | ||
*********************** Dynamic Library Entry Points - DO NOT MODIFY ****************************** | ||
**************************************************************************************************/ | ||
extern "C" void | ||
OptimizationApp__registerAll(Factory & f, ActionFactory & af, Syntax & s) | ||
{ | ||
OptimizationApp::registerAll(f, af, s); | ||
} | ||
extern "C" void | ||
OptimizationApp__registerApps() | ||
{ | ||
OptimizationApp::registerApps(); | ||
} |
Oops, something went wrong.