資源簡介
具體細節請參加我的共軛梯度法求解偏微分方程無并行版本。這個程序是建立在上一個基礎上的升級。不同的是這里我用的是五點法而不是壓縮的矩陣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];
///
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????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
- 上一篇:學生信息管理系統完整版
- 下一篇:哈夫曼樹的編碼與譯碼包含文件輸入輸出
評論
共有 條評論