Thread: from 2D array to 1D array

  1. #16
    Registered User
    Join Date
    Mar 2009
    Posts
    114
    Hi, yes, indeed that is what I was suspecting, that is why I was trying to pass different arrays to the calling functions by avoiding to create additional ones that could cause the problem.

    At last, I solved the problem by not using any additional array so that I could avoid useless allocation of memory. Now it works fine for the order of magnitude of the arrays I am using

    Thank you,
    all the best

    cfd

  2. #17
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by cfdprogrammer View Post
    Hi, yes, indeed that is what I was suspecting, that is why I was trying to pass different arrays to the calling functions by avoiding to create additional ones that could cause the problem.

    At last, I solved the problem by not using any additional array so that I could avoid useless allocation of memory. Now it works fine for the order of magnitude of the arrays I am using

    Thank you,
    all the best

    cfd
    Are you doing some kind of computational fluid dynamics?
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  3. #18
    Registered User
    Join Date
    Mar 2009
    Posts
    114
    Hi, yes, I am; are you as well?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. multiplying a 2D array by a 1D array
    By youngvito in forum C Programming
    Replies: 14
    Last Post: 06-12-2009, 03:50 PM
  2. 1d to 2d array
    By helloamuro in forum C Programming
    Replies: 6
    Last Post: 04-23-2008, 06:14 PM
  3. 2D array pointer?
    By willc0de4food in forum C Programming
    Replies: 4
    Last Post: 04-23-2006, 08:16 AM
  4. 1D and 2D Arrays
    By Rajin in forum C++ Programming
    Replies: 2
    Last Post: 04-12-2005, 06:23 PM
  5. two dimensional dynamic array?
    By ichijoji in forum C++ Programming
    Replies: 6
    Last Post: 04-14-2003, 04:27 PM