Skip to content
Open
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
14 changes: 14 additions & 0 deletions parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,20 @@ void Parameters::getParameters() {
RP::get("vlasovsolver.GhostTranslateExtent",P::vlasovSolverGhostTranslateExtent);
RP::get("vlasovsolver.accelerateMaxwellianBoundaries", P::vlasovAccelerateMaxwellianBoundaries);
if (P::vlasovSolverGhostTranslate==true) {
if (myRank == MASTER_RANK) {
if (P::xcells_ini < 2*VLASOV_STENCIL_WIDTH+1) {
cerr << "ERROR The domain has x_length = " << P::xcells_ini << " < 2*VLASOV_STENCIL_WIDTH+1 = " << 2*VLASOV_STENCIL_WIDTH+1 << endl;
MPI_Abort(MPI_COMM_WORLD, 1);
}
if (P::ycells_ini < 2*VLASOV_STENCIL_WIDTH+1) {
cerr << "ERROR The domain has y_length = " << P::ycells_ini << " < 2*VLASOV_STENCIL_WIDTH+1 = " << 2*VLASOV_STENCIL_WIDTH+1 << endl;
MPI_Abort(MPI_COMM_WORLD, 1);
}
if (P::zcells_ini < 2*VLASOV_STENCIL_WIDTH+1) {
cerr << "ERROR The domain has z_length = " << P::zcells_ini << " < 2*VLASOV_STENCIL_WIDTH+1 = " << 2*VLASOV_STENCIL_WIDTH+1 << endl;
MPI_Abort(MPI_COMM_WORLD, 1);
}
}
if (myRank == MASTER_RANK) {
logFile<<"Performing spatial translation using ghost cell information with coalesced MPI updates."<<endl;
}
Expand Down
Loading