aboutsummaryrefslogtreecommitdiff
path: root/src/rdf.cc
diff options
context:
space:
mode:
authorschnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f>2006-07-27 17:01:30 +0000
committerschnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f>2006-07-27 17:01:30 +0000
commit60bb89a903345405a287985bdfcb515c8be2a714 (patch)
tree8257ba5962f7c576fcf2f6a52ccb5edea24979f8 /src/rdf.cc
parent2ca0181a5136a5c84614f4450c0ceee6d34d927c (diff)
Change NUM_INDENT_SPACES from macro to constant.
Pass cGH * instead of CCTK_ARGUMENTS to the RDF routines. Use the option "-x" when calling ssh. Otherwise it may try to forward an X11 connection, which may not exist. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Formaline/trunk@104 83718e91-0e4f-0410-abf4-91180603181f
Diffstat (limited to 'src/rdf.cc')
-rw-r--r--src/rdf.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/rdf.cc b/src/rdf.cc
index 23b01e3..dd7e673 100644
--- a/src/rdf.cc
+++ b/src/rdf.cc
@@ -27,8 +27,6 @@
#include "rdf.hh"
-// number of space chars for indentation
-#define NUM_INDENT_SPACES 2
namespace Formaline
{
@@ -36,6 +34,9 @@ namespace Formaline
using namespace std;
+ // number of space chars for indentation
+ int const NUM_INDENT_SPACES = 2;
+
static bool
is_clean_for_shell (char const * str);
@@ -48,7 +49,7 @@ namespace Formaline
rdf::
rdf (char const * const id,
enum state const st,
- CCTK_ARGUMENTS)
+ cGH const * const cctkGH)
: storage (st)
{
//
@@ -320,9 +321,8 @@ namespace Formaline
}
- void rdf::Update (CCTK_ARGUMENTS)
+ void rdf::Update (cGH const * const cctkGH)
{
- DECLARE_CCTK_ARGUMENTS;
DECLARE_CCTK_PARAMETERS;
if (verbose) {
@@ -349,8 +349,8 @@ namespace Formaline
<< "\t<cctk:updatedInfo rdf:resource=\"#UpdateInfo/" << update_counter << "\"/>" << endl
<< "</cctk:Simulation>" << endl << endl
<< "<cctk:UpdateInfo rdf:about=\"#UpdateInfo/" << update_counter << "\">" << endl
-<< "\t<cctk:iteration>" << cctk_iteration << "</cctk:iteration>" << endl
-<< "\t<cctk:time>" << cctk_time << "</cctk:time>" << endl
+<< "\t<cctk:iteration>" << cctkGH->cctk_iteration << "</cctk:iteration>" << endl
+<< "\t<cctk:time>" << cctkGH->cctk_time << "</cctk:time>" << endl
<< "\t<cctk:datetime>" << clean (currentdate.str()) << "</cctk:datetime>" << endl;
if (get_state() == final) {
@@ -608,7 +608,7 @@ namespace Formaline
ostringstream cmdbuf;
if (my_use_relay_host)
{
- cmdbuf << "ssh " << my_relay_host << " '"
+ cmdbuf << "ssh -x " << my_relay_host << " '"
<< "cd " << cwd << " && ";
}
cmdbuf << scriptfilenamestr << " < /dev/null > /dev/null 2> /dev/null";