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...
Type: Posts; User: Nooby 1 Kenooby
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...
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...
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...
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...
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,...
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...
Thanks again
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()
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:...
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...
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
Problem was solved. Thank you
#include <stdio.h>
#include <stdlib.h>
main()
{
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...