aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Requirements/src/location.cc
blob: 885b5c05196e4af91cac413d4367da51f8b5cad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "location.hh"

#include <cctk.h>

#include <cstdlib>
#include <iostream>

namespace Requirements {

  void location_t::output(ostream& os) const
  {
    os << "LOC: " << info << " ";
    if (fd) {
      os << "func " << fd->thorn << "::" << fd->routine << " "
         << "in " << fd->where << " ";
    }
    char* const fullname = CCTK_FullName(vi);
    os << "it " << it << ", var " << fullname << " "
       << "["
       << "rl:" << rl << ","
       << "m:"  << m  << ","
       << "tl:" << tl
       << "]";
    free(fullname);
  }
}