Skip to content

Commit

Permalink
[Janitor mode] Fix tabs
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19906 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Apr 1, 2014
1 parent 8edde0c commit 29ce82e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions SimulationRuntime/cpp/Include/Core/Math/ArrayOperations.h
Expand Up @@ -388,20 +388,20 @@ void cat_array (int k,boost::multi_array< T, NumDims >& a, std::vector<boost::mu
ex.assign( shape, shape+x[0].num_dimensions() );
ex[k-1] = new_k_dim_size;
if(ex.size()<k)
throw std::invalid_argument("Error resizing concatenate array");
a.resize( ex );
throw std::invalid_argument("Error resizing concatenate array");
a.resize( ex );

/* concatenation along k-th dimension */
/* concatenation along k-th dimension */
T* a_data = a.data();
int j = 0;
for(int i = 0; i < n_super; i++)
{
{
for(int c = 0; c < n; c++)
{
{
int n_sub_k = n_sub * x[c].shape()[k-1];
T* x_data = x[c].data();
for(int r = 0; r < n_sub_k; r++)
{
for(int r = 0; r < n_sub_k; r++)
{
a_data[j] = x_data[r + (i * n_sub_k)];
j++;
}
Expand Down

0 comments on commit 29ce82e

Please sign in to comment.