Closed giordano closed 20 hours ago
int can be too small to deal with large number of steps, and long int matches the type of num_steps https://github.com/UCL-RITS/pi_examples/blob/09f685ae96e8abe69d009cb5e461c36c979c4267/c_hybrid_mpi%2Bopenmp_dir/hybrid_pi.c#L6 Also, this matches what's done in c_pi: https://github.com/UCL-RITS/pi_examples/blob/09f685ae96e8abe69d009cb5e461c36c979c4267/c_pi_dir/pi.c#L6
int
long int
num_steps
c_pi
Ref: https://github.com/UCL-RITS/pi_examples/issues/21#issuecomment-2123621687
int
can be too small to deal with large number of steps, andlong int
matches the type ofnum_steps
https://github.com/UCL-RITS/pi_examples/blob/09f685ae96e8abe69d009cb5e461c36c979c4267/c_hybrid_mpi%2Bopenmp_dir/hybrid_pi.c#L6 Also, this matches what's done inc_pi
: https://github.com/UCL-RITS/pi_examples/blob/09f685ae96e8abe69d009cb5e461c36c979c4267/c_pi_dir/pi.c#L6Ref: https://github.com/UCL-RITS/pi_examples/issues/21#issuecomment-2123621687