Browse Source

Better parsing of MatrixXR

master
Trevor Irons 7 years ago
parent
commit
b14d9a6970
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      src/LayeredEarthMR.cpp

+ 4
- 1
src/LayeredEarthMR.cpp View File

@@ -78,6 +78,9 @@ namespace Lemma {
78 78
         node["T2StarBins"] = T2StarBins;
79 79
         node["T2StarBinEdges"] = T2StarBinEdges;
80 80
         node["ModelMat"] = ModelMat;
81
+        node["Thingy"].push_back( "Hello" );
82
+        node["Thingy"].push_back( "Whirld" );
83
+
81 84
         return node;
82 85
     }		// -----  end of method LayeredEarthMR::Serialize  -----
83 86
 
@@ -137,7 +140,7 @@ namespace Lemma {
137 140
     //      Method:  InitModelMat
138 141
     //--------------------------------------------------------------------------------------
139 142
     void LayeredEarthMR::InitModelMat (  ) {
140
-        ModelMat = MatrixXr::Zero( T2StarBins.size(), NumberOfLayers );
143
+        ModelMat = MatrixXr::Zero( NumberOfLayers, T2StarBins.size() );
141 144
         return ;
142 145
     }		// -----  end of method LayeredEarthMR::InitModelMat  -----
143 146
 

Loading…
Cancel
Save