Skip to content

Commit

Permalink
BackgroundMesh: meshtol is no more needed
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuminjie committed Jun 4, 2021
1 parent d34c173 commit ae3ac0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
16 changes: 1 addition & 15 deletions SRC/element/PFEMElement/BackgroundMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ int OPS_BgMesh() {
// check input
if (OPS_GetNumRemainingInputArgs() < 2 * ndm + 1) {
opserr
<< "WARNING: basicsize? lower? upper? <-tol tol? -meshtol "
"tol? "
<< "WARNING: basicsize? lower? upper? <-tol tol? "
"-wave wavefilename? numl? locs? -numsub numsub? "
"-structure sid? ?numnodes? structuralNodes?"
"-contact kdoverAd? thk? mu? beta? Dc? alpha? E? rho?"
Expand Down Expand Up @@ -135,17 +134,6 @@ int OPS_BgMesh() {
return -1;
}
bgmesh.setTol(tol);
} else if (strcmp(opt, "-meshtol") == 0) {
if (OPS_GetNumRemainingInputArgs() < 1) {
opserr << "WARNING: need tol\n";
return -1;
}
double tol;
if (OPS_GetDoubleInput(&num, &tol) < 0) {
opserr << "WARNING: failed to read mesh tolerance\n";
return -1;
}
bgmesh.setMeshTol(tol);

} else if (strcmp(opt, "-wave") == 0) {
if (OPS_GetNumRemainingInputArgs() < 2) {
Expand Down Expand Up @@ -342,7 +330,6 @@ BackgroundMesh::BackgroundMesh()
bcells(),
bnodes(),
tol(1e-10),
meshtol(0.1),
bsize(-1.0),
numave(2),
numsub(4),
Expand Down Expand Up @@ -783,7 +770,6 @@ void BackgroundMesh::clearAll() {
bcells.clear();
bnodes.clear();
tol = 1e-10;
meshtol = 0.1;
bsize = -1.0;
numave = 2;
numsub = 4;
Expand Down
4 changes: 1 addition & 3 deletions SRC/element/PFEMElement/BackgroundMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ class BackgroundMesh {
// background info
void setTol(double t) { this->tol = t; }
double getTol() const { return this->tol; }
void setMeshTol(double t) { meshtol = t; }
double getMeshTol() const { return meshtol; }
void setRange(const VDouble& l, const VDouble& u);
void setBasicSize(double size) {
bsize = size;
Expand Down Expand Up @@ -229,7 +227,7 @@ class BackgroundMesh {
VInt lower, upper;
std::map<VInt, BCell> bcells;
std::map<VInt, BNode> bnodes;
double tol, meshtol;
double tol;
double bsize;
int numave, numsub;
std::vector<Recorder*> recorders;
Expand Down

0 comments on commit ae3ac0f

Please sign in to comment.