Skip to content

Commit

Permalink
Re #11086 Update fitting function for non zero field
Browse files Browse the repository at this point in the history
  • Loading branch information
raquelalvarezbanos committed Mar 2, 2015
1 parent 9c15ca4 commit 5a6effa
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions Code/Mantid/Framework/CurveFitting/src/DynamicKuboToyabe.cpp
Expand Up @@ -255,26 +255,19 @@ void DynamicKuboToyabe::function1D(double* out, const double* xValues, const siz
}
// Non-zero external field
else{
throw std::runtime_error("HKT() not implemented yet");
for (size_t i = 0; i < nData; i++) {
out[i] = A*HKT(xValues[i],G,F);
}
}
}

// Non-zero hopping rate
else {

if ( F==0.0 ) {

for (size_t i = 0; i<nData; i++){
out[i] = A*getDKT(xValues[i],G,v,F);
}

} else {

// Non-zero field
throw std::runtime_error("HKT() not implemented yet");
for (size_t i = 0; i<nData; i++){
out[i] = A*getDKT(xValues[i],G,F,v);
}

} // else hopping rate != 0
}


}
Expand Down

0 comments on commit 5a6effa

Please sign in to comment.