Skip to content

Commit

Permalink
Merge pull request #2019 from wenqing/fixing
Browse files Browse the repository at this point in the history
Added a missed parameter documentation and ran clang-tidy for some files
  • Loading branch information
endJunction authored Dec 11, 2017
2 parents c9abfb8 + 9179831 commit 9b2d028
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
An optional input to select the coupling scheme. So far, only the monolithic
scheme is available for HYDRO_MECHANICS, and this input can be omitted.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ std::unique_ptr<Process> createComponentTransportProcess(

DBUG("Create ComponentTransportProcess.");
auto const staggered_scheme =
//! \ogs_file_param{prj__processes__process__coupling_scheme}
//! \ogs_file_param{prj__processes__process__ComponentTransport__coupling_scheme}
config.getConfigParameterOptional<std::string>("coupling_scheme");
const bool use_monolithic_scheme =
(staggered_scheme && (*staggered_scheme == "staggered")) ? false : true;
!(staggered_scheme && (*staggered_scheme == "staggered"));

// Process variable.

Expand Down
2 changes: 1 addition & 1 deletion ProcessLib/HydroMechanics/CreateHydroMechanicsProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ std::unique_ptr<Process> createHydroMechanicsProcess(
//! \ogs_file_param{prj__processes__process__HYDRO_MECHANICS__coupling_scheme}
config.getConfigParameterOptional<std::string>("coupling_scheme");
const bool use_monolithic_scheme =
(staggered_scheme && (*staggered_scheme == "staggered")) ? false : true;
!(staggered_scheme && (*staggered_scheme == "staggered"));

// Process variable.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ std::unique_ptr<Process> createHydroMechanicsProcess(
//! \ogs_file_param{prj__processes__process__HYDRO_MECHANICS_WITH_LIE__coupling_scheme}
config.getConfigParameterOptional<std::string>("coupling_scheme");
const bool use_monolithic_scheme =
(staggered_scheme && (*staggered_scheme == "staggered")) ? false : true;
!(staggered_scheme && (*staggered_scheme == "staggered"));

// Process variables
//! \ogs_file_param{prj__processes__process__HYDRO_MECHANICS_WITH_LIE__process_variables}
Expand Down
2 changes: 1 addition & 1 deletion ProcessLib/PhaseField/CreatePhaseFieldProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ std::unique_ptr<Process> createPhaseFieldProcess(
//! \ogs_file_param{prj__processes__process__PHASE_FIELD__coupling_scheme}
config.getConfigParameterOptional<std::string>("coupling_scheme");
const bool use_monolithic_scheme =
(staggered_scheme && (*staggered_scheme == "staggered")) ? false : true;
!(staggered_scheme && (*staggered_scheme == "staggered"));

// Process variable.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ std::unique_ptr<Process> createRichardsComponentTransportProcess(
//! \ogs_file_param{prj__processes__process__RichardsComponentTransport__coupling_scheme}
config.getConfigParameterOptional<std::string>("coupling_scheme");
const bool use_monolithic_scheme =
(staggered_scheme && (*staggered_scheme == "staggered")) ? false : true;
!(staggered_scheme && (*staggered_scheme == "staggered"));

// Process variable.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ std::unique_ptr<Process> createThermoMechanicsProcess(
//! \ogs_file_param{prj__processes__process__THERMO_MECHANICS__coupling_scheme}
config.getConfigParameterOptional<std::string>("coupling_scheme");
const bool use_monolithic_scheme =
(staggered_scheme && (*staggered_scheme == "staggered")) ? false : true;
!(staggered_scheme && (*staggered_scheme == "staggered"));

// Process variable.

Expand Down

0 comments on commit 9b2d028

Please sign in to comment.