云计算-N体模拟
C代码
这是N体模拟MPI使用的代码
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <mpi.h>
#define N 256
typedef struct ball
{
double px, py;//位置
double vx, vy;//速度
double ax, ay;//加速度
}ball;
//const i
原创
2021-07-12 08:42:06 ·
305 阅读 ·
0 评论