Search:

Type: Posts; User: Nooby 1 Kenooby

Search: Search took 0.01 seconds.

  1. Thank you for your help Codeplug I have...

    Thank you for your help Codeplug

    I have checked information about drand48_r & srand48_r:
    int drand48_r(struct drand48_data *buffer, double *result);
    int srand48_r(long int seedval, struct...
  2. Calling C functions from a "parallel" (MPI) Fortran program

    Hello

    I'm working on a parallel Fortran program by using MPI, which calls a very good random number generator function from C (drand48 and srand48 for seed).

    My Fortran program file...
  3. Replies
    4
    Views
    1,760

    Thank you for the tips and tricks. :) I didn't...

    Thank you for the tips and tricks. :) I didn't define the V_mean matrix as global variable, as you said.

    Your idea is working. But now I got another problem:
    The matrix is 601*18182 in size. I...
  4. Replies
    4
    Views
    1,760

    I got it now. I will define taym and V_mean,...

    I got it now. I will define taym and V_mean, before I start the MPI. So there will be only 1 taym and V_mean not 80 (in my case).
    Although you don't know about MPI, you have a strong algorihm. Pure...
  5. Replies
    4
    Views
    1,760

    Variables on Specific ids (MPI)

    I'm running a simple SPMD program with MPI.
    Is there a way to define special variables, defined on only some of the ids. Lets say only for worker id 4.



    MPI_Comm_rank (MPI_COMM_WORLD,...
  6. Replies
    3
    Views
    2,079

    C & MPI, Number of computer threads

    Hello guys

    I work on a small parallel program, which calculates pi number from area of a quarter circle. I'm new on ubuntu & C programming.

    This is the code.


    #include <stdio.h>
    #include...
  7. Replies
    5
    Views
    1,906

    Thanks again

    Thanks again
  8. Replies
    5
    Views
    1,906

    Also fixed my small code, and used your command....

    Also fixed my small code, and used your command. It works now.
    Thank you very much :)


    #include "prng.h"
    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>

    int main()
  9. Replies
    5
    Views
    1,906

    Numerical Recipe Problem

    Hello guys

    To use on my codes, I found a pseudo-random number generator .h and .c files on the internet.
    prng.c: http://benpfaff.org/writings/clc/prng.c
    prng.h:...
  10. Replies
    11
    Views
    6,708

    Thank you for the responses. To be more...

    Thank you for the responses.

    To be more specific I used to program with Matlab (plotting with arrays). It was really simple with imagesc, plot like commands.

    Working on gnuplot currently. I...
  11. Replies
    11
    Views
    6,708

    Ubuntu GCC - plotting

    Hello Guys

    I've started using ubuntu 12.04, and using gcc for programming C. I can compile some small programs but have no idea how to plot.

    Is there an easy way to plot graphs?

    Thank you
  12. Replies
    4
    Views
    1,590

    Problem was solved. Thank you #include...

    Problem was solved. Thank you



    #include <stdio.h>
    #include <stdlib.h>


    main()
    {
  13. Replies
    4
    Views
    1,590

    Double Precision Problem

    Hello guys,
    I'm new on C. And I have problems with double precision.

    Whenever I build & run the code, the output is:
    mass of electron is -0.000000
    (I use Code::Blocks)



    #include...
Results 1 to 13 of 13