#include "HTC_header.h"
void initialization_h(struct particle *particle,struct machine *machine)
{
int i,t;
double rnd;
for (i=0;i<mh;i++)
{
for (t=0;t<tym;t++)
{
rnd=((double) rand() / RAND_MAX);
particle->qh[t][i]= machine->qmin[i]+(rnd*(machine->qmax[i]- machine->qmin[i]));
}
}
} // end of func
Engr Ali 0 Newbie Poster
Moschops 683 Practically a Master Poster Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.