資源簡(jiǎn)介
具體細(xì)節(jié)請(qǐng)參加我的共軛梯度法求解偏微分方程無(wú)并行版本。這個(gè)程序是建立在上一個(gè)基礎(chǔ)上的升級(jí)。不同的是這里我用的是五點(diǎn)法而不是壓縮的矩陣A。
代碼片段和文件信息
//?TemplateTest1.cpp?:?Defines?the?entry?point?for?the?console?application.
//
#include?
#include?
#include?
#include?
#include?
#include?
#include?“Vector.h“
#include?“Template.h“
#include?“Stencil.h“
#include?“mpi.h“
using?namespace?std;
///Global?variable
const?double?PI=3.1415926;
const?int?UP=0;
const?int?DOWN=1;
const?int?LEFT=2;
const?int?RIGHT=3;
int?nbrs[4];
MPI_Comm?comm2d;
MPI_Status?status;
MPI_Request?reqs[8];
inline?double?RsdSum(double?delta);
/**************************************startwith?9?parameters?are?given***********************************/
int?main(int?argc?char*?argv[])
{
double?hxhyTendhtalphaeps;
int?iterations;
string?Output=argv[8]Result=argv[9];
///
?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????文件???????1921??2009-02-03?04:20??ass5_final\Vector.h
?????文件????????294??2009-02-02?18:15??ass5_final\Makefile
?????文件???????9175??2009-02-03?15:31??ass5_final\cgexpr.cpp
?????文件?????????32??2009-01-09?22:30??ass5_final\machines
?????文件???????3126??2009-02-02?22:57??ass5_final\Template.h
?????文件????????369??2009-02-02?22:31??ass5_final\Stencil.h
?????文件???????1867??2009-02-03?15:58??ass5_final\Read?me.txt
?????目錄??????????0??2009-02-03?15:25??ass5_final
-----------?---------??----------?-----??----
????????????????16784????????????????????8
評(píng)論
共有 條評(píng)論