mirror of
https://github.com/OPM/opm-upscaling.git
synced 2025-02-25 18:45:23 -06:00
Merge pull request #25 from akva2/santiy_check_isotropic_materials
sanity check (rock-list) specified isotropic materials in elasticity upscaling code
This commit is contained in:
commit
3f6322c236
@ -132,6 +132,14 @@ Material* Material::create(int ID, const std::string& file)
|
|||||||
} else if (str == "en") { // young's modulus and poisson's ratio
|
} else if (str == "en") { // young's modulus and poisson's ratio
|
||||||
E = p1;
|
E = p1;
|
||||||
nu = p2;
|
nu = p2;
|
||||||
|
} else {
|
||||||
|
std::cerr << "Could not parse rock file " << file << ", bailing" << std::endl
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (nu < 0 || nu > 0.5) {
|
||||||
|
std::cerr << "Material in " << file << " is not isotropic (nu=" << nu << "), bailing" << std::endl;
|
||||||
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Isotropic(ID,E,nu,rho);
|
return new Isotropic(ID,E,nu,rho);
|
||||||
|
Loading…
Reference in New Issue
Block a user