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

Loading…
Cancel
Save