Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ TEST( HypredriveYaml, UsesAuthoritativeFileWhenProvided )
LinearSolverParameters params;
params.solverType = LinearSolverParameters::SolverType::direct;
params.preconditionerType = LinearSolverParameters::PreconditionerType::none;
params.hypredriveInputFile = authoritativeFile;
params.hypredriveInputFile = Path( authoritativeFile.c_str() );

hypre::hypredrive::InputArgsParseTarget target;
ASSERT_TRUE( hypre::hypredrive::buildInputArgsParseTarget( params, target ) );
Expand Down Expand Up @@ -455,7 +455,7 @@ TEST( HypredriveLogging, PrintsStatisticsSummaryWhenHandleIsDestroyed )
}

LinearSolverParameters params;
params.hypredriveInputFile = authoritativeFile;
params.hypredriveInputFile = Path( authoritativeFile.c_str() );

HypreMatrix matrix;
testing::computeIdentity( MPI_COMM_GEOS, 4, matrix );
Expand Down Expand Up @@ -599,7 +599,7 @@ TEST( HypredriveSolverReuse, RecreatesHandleWhenAuthoritativeYamlChanges )
}

LinearSolverParameters params;
params.hypredriveInputFile = authoritativeFile;
params.hypredriveInputFile = Path( authoritativeFile.c_str() );

HypreMatrix matrix;
testing::computeIdentity( MPI_COMM_GEOS, 4, matrix );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ struct LinearSolverParameters

SolverType solverType = SolverType::direct; ///< Solver type
PreconditionerType preconditionerType = PreconditionerType::iluk; ///< Preconditioner type
string hypredriveInputFile; ///< Optional authoritative hypredrive YAML file
Path hypredriveInputFile; ///< Optional authoritative hypredrive YAML file

/// Direct solver parameters: used for SuperLU_Dist interface through hypre and PETSc
struct Direct
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ void LinearSolverParametersInput::print() const
tableData.addRow( "Preconditioner type", m_parameters.preconditionerType );
if( !m_parameters.hypredriveInputFile.empty() )
{
tableData.addRow( "hypredrive input file", m_parameters.hypredriveInputFile );
tableData.addRow( "hypredrive input file", string_view( m_parameters.hypredriveInputFile ) );
}
tableData.addRow( "Stop if error", m_parameters.stopIfError );
if( m_parameters.solverType == LinearSolverParameters::SolverType::direct )
Expand Down
Loading