Revision 752 branches/threaded2/src/nh99/modhdet.cpp

modhdet.cpp (revision 752)
4 4
 * Author: David Fournier
5 5
 * Copyright (c) 2008-2012 Regents of the University of California 
6 6
 */
7
#include <thread>
8
#include <sstream>
7 9
#include <admodel.h>
8 10

  
9 11
double function_minimizer::hess_determinant(int underflow_flag)
......
12 14
 double lndet=0.0;
13 15
 if (!underflow_flag)
14 16
 {
15
  uistream ifs("admodel.hes");
17
  std::thread::id this_thread_id = std::this_thread::get_id();
18
  std::ostringstream oss;
19
  oss << *ad_comm::adprogram_name << this_thread_id << ".hes";
20
  uistream ifs(oss.str().c_str());
16 21
  if (!ifs)
17 22
  {
18 23
    cerr << "Error opening file admodel.hes" << endl;

Also available in: Unified diff