Skip to content

Commit

Permalink
fix up error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlevy committed May 8, 2016
1 parent d678794 commit 306b54d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/maxent_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ void MaxEntHelper::checkDefaultModel(const vector_type &D) const{
for(int i=0;i<D.size();i++){
double Di=D(i);
if(Di==0 || boost::math::isnan(Di))
throw std::logic_error("dude, your D is zero");
throw std::logic_error("Error: Default model point = 0 at omega="
+boost::lexical_cast<std::string>(omega_coord(i)));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/maxent_kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ void kernel::set_kernel_type(const std::string &dataspace_name, const std::strin
dtype_=legendre_dataspace;
}
else
throw std::invalid_argument("unknown dataspace name. it should be time or frequency");
throw std::invalid_argument("unknown dataspace name. it should be time, frequency, or legendre");

if(dtype_==time_dataspace){
if(kernel_name=="fermionic")
Expand Down

0 comments on commit 306b54d

Please sign in to comment.