Diff of /src/lib/sampler/ImmutableSampler.cc [3b1e0e] .. [e23e50] Maximize Restore

  Switch to side-by-side view

--- a/src/lib/sampler/ImmutableSampler.cc
+++ b/src/lib/sampler/ImmutableSampler.cc
@@ -11,8 +11,9 @@
 namespace jags {
 
     ImmutableSampler::ImmutableSampler(GraphView *gv, 
-	       ImmutableSampleMethod *method)
-	: Sampler(gv), _method(method), _nchain(nchain(gv))
+				       ImmutableSampleMethod *method,
+				       std::string const &name)
+	: Sampler(gv), _method(method), _nchain(nchain(gv)), _name(name)
     {
     }
 
@@ -44,7 +45,7 @@
 
     string ImmutableSampler::name() const
     {
-	return _method->name();
+	return _name;
     }
 
 }