Skip to content

Commit

Permalink
Refs #9200 use exact transformations for each cell form number
Browse files Browse the repository at this point in the history
  • Loading branch information
VickieLynch committed Mar 19, 2014
1 parent d5fa5a2 commit 09a772e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
Expand Up @@ -188,11 +188,7 @@ namespace Geometry
UB_tran.Invert();
adjusted_UB = UB * UB_tran;

if ( cell_type == ReducedCell::ORTHORHOMBIC() )
{
//SetSidesIncreasing( adjusted_UB );
}
else if ( cell_type == ReducedCell::TETRAGONAL() )
if ( cell_type == ReducedCell::TETRAGONAL() )
{
StandardizeTetragonal( adjusted_UB );
}
Expand Down
16 changes: 6 additions & 10 deletions Code/Mantid/Framework/Geometry/src/Crystal/ScalarUtils.cpp
Expand Up @@ -138,13 +138,11 @@ std::vector<ConventionalCell> ScalarUtils::GetCells(
const std::string & cell_type,
const std::string & centering )
{
double angle_tolerance = 2.0;
double length_factor = 1.05;

std::vector<ConventionalCell> result;

std::vector<DblMatrix> UB_list =
GetRelatedUBs( UB, length_factor, angle_tolerance );
// Get exact form requested and not permutations
std::vector<DblMatrix> UB_list;
UB_list.push_back(UB);

for ( size_t k = 0; k < UB_list.size(); k++ )
{
Expand Down Expand Up @@ -224,16 +222,14 @@ ConventionalCell ScalarUtils::GetCellForForm( const DblMatrix & UB,
size_t form_num )
{
ConventionalCell info( UB );
double angle_tolerance = 2.0;
double length_factor = 1.05;
ReducedCell form_0;
ReducedCell form;

double min_error = 1e20; // errors are usually < 10, so this is big enough

// Get exact form requested and not permutations
std::vector<double> l_params;
std::vector<DblMatrix> UB_list =
GetRelatedUBs( UB, angle_tolerance, length_factor );
std::vector<DblMatrix> UB_list;
UB_list.push_back(UB);

for ( size_t i = 0; i < UB_list.size(); i++ )
{
Expand Down

0 comments on commit 09a772e

Please sign in to comment.