Commit b3860d03 authored by Mohcine Chraibi's avatar Mohcine Chraibi

(WIP) switch columns and rows!

parent cfe7e5dc
Pipeline #5909 passed with stages
in 5 minutes and 38 seconds
......@@ -223,8 +223,8 @@ void FDSMesh::SetKnotValuesFromFile(const std::string &filename)
//Read matrix
int ncol = smoke_factor_grid_norm.shape[1];
int nrow = smoke_factor_grid_norm.shape[0];
for (unsigned int i=0; i< ncol; i++)
for (unsigned int j=0; j< nrow; j++) {
for (unsigned int i=0; i< nrow; i++)
for (unsigned int j=0; j< ncol; j++) {
double tmp_value = c_matrix[i*ncol+j];
if(std::isnan(tmp_value) || std::isinf(tmp_value))
tmp_value = 1.0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment