Search:

Type: Posts; User: kwzeet

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,643

    Dynamic Memory Allocation

    Hi,
    I have declared a global variable as pointer. The program performs certain number of iterations. After every iteration, the size of memory required for the pointer changes and this pointer...
  2. Replies
    2
    Views
    4,601

    square root of a matrix

    Hi,
    I want to find the square root of a matrix in C. I know there is command like "dpotrf" in C to find the cholesky decomposition, which gives us X, where XX' = A. But this method fails when A is...
  3. Replies
    4
    Views
    3,662

    Thanks a lot. I was really trying to get rid of...

    Thanks a lot. I was really trying to get rid of this jacobian as the equations are very complex and the order of the system is high. I found that "gsl_odeiv2_step_apply' does not explicitly require...
  4. Replies
    4
    Views
    3,662

    This is the code I am using to integrate a...

    This is the code I am using to integrate a function indicated by "func_aug" and its jacobian is indicated by "jac_aug". Thus jacobian is required as an argument in the following integrator. Can you...
  5. Replies
    4
    Views
    3,662

    Numerical integration using rkf45

    Hi all,
    I am writing a C program to numerically integrate a differential equation. This differential equation corresponds to dynamics of a system. I am using rkf45 to integrate it. But the problem...
  6. Thread: Linkage error

    by kwzeet
    Replies
    1
    Views
    1,830

    Linkage error

    Hi,
    I am writing a C program using MPI for parallelization. Following is the script I use to compile and run the code:-


    clear
    make veryclean
    mpicc -c -I ./include -O -o two.o...
  7. No, I cannot change the fortran code. These are...

    No, I cannot change the fortran code. These are standard fortran commands that can be invoked from linux. These functions are used by MATLAB as well, for doing matrix operations. Even I think that...
  8. The file is attached with the message. I am also...

    The file is attached with the message. I am also posting the log, thought it is very large. You can ignore the message correponding to "chckdgnl". thta part is commented.:-


    ==11770== Memcheck, a...
  9. Conditional jump or move depends on uninitialized values : valgrind message

    Hi,
    I am calling the following function in my code. When I run th executable with valgrind, I get the following message :"Conditional jump or move depends upon uninitialized value".
    I get this...
  10. Replies
    5
    Views
    6,010

    Sorry.. I am able to locate the header file. Just...

    Sorry.. I am able to locate the header file. Just wanted to know whether i need to link any library while compiling??

    Thanks.
  11. Replies
    5
    Views
    6,010

    Thanks Salem. Is this function/library freely...

    Thanks Salem.
    Is this function/library freely available with all versions of Linux?? Do I need to link any library while compiling? I am currently using blas,lapack and math libraries. I alos tried...
  12. Replies
    5
    Views
    6,010

    any function corresponding to ode45

    Hi,
    I am trying to solve an ordinary differential equation(ode) using C. There is a function ode45 in MATLAB. I was wondering whether there is any such function in C??

    Thanks.
  13. Replies
    7
    Views
    1,568

    Yes, you were right. I had not paid attention to...

    Yes, you were right. I had not paid attention to that. I had allocated memory equal to the size of an int and was trying to free memory equal to size of a double. ooops!!.
    Thanks all.
  14. Replies
    7
    Views
    1,568

    Thanks all. Actually this is a long code(~1000...

    Thanks all. Actually this is a long code(~1000 lines) and I've declared all the macros in the beginning of the code.I posted only that part of the code where I was getting the error. But as Grumpy...
  15. Replies
    7
    Views
    1,568

    If I free NN, I get "Segmentation Fault". If I...

    If I free NN, I get "Segmentation Fault". If I free MM, I get "glibc detected()".If I don't free these two and free others(xint,wint), the code runs normal. I am not freeing any of these two more...
  16. Replies
    7
    Views
    1,568

    Segmentation Fault

    When I run this program I get segmentation fault.The code compiles and runs till the last line but when it encounters the "free()" commands in the last lines in main, it gives segmentation fault....
Results 1 to 16 of 16