随笔分类 -  科学计算及可视化

摘要:```C #include #include #include #include #include #include #include static int shoulder = 0, elbow = 0; void init(void){ glClearColor(0.0,0.0,0.0,0.0); glSh... 阅读全文

posted @ 2017-04-02 12:22 morxio 阅读(1363) 评论(0) 推荐(0)

摘要:```fortran !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! /post1 file,Jobname,rst !指明从哪一个结果文件中读取数据 *get,NodeNum,NODE,0,COUNT !得到模型的所有节... 阅读全文

posted @ 2016-07-08 10:43 morxio 阅读(2843) 评论(0) 推荐(0)

摘要:Project Properties VC++ Directories + Executable Directory: C:\Program Files (x86)\Intel\Composer XE 2015\redist\ia32\mkl + Include Directories: C:\Pr 阅读全文

posted @ 2016-06-24 11:16 morxio 阅读(2165) 评论(0) 推荐(0)

摘要:我之前装的是Visual Studio 2015 Community和Visual Studio 2010 Ultimate, 然后装上Intel Parallel Studio XE 2015,发现IPS2015不支持VS2015,而VS2010的代码提示功能太弱,即使用了VAssistX也显得没 阅读全文

posted @ 2016-06-24 11:06 morxio 阅读(3020) 评论(0) 推荐(0)

摘要:对于+,-,*,&,|,&&,||等运算,可以使用OpenMP提供的reduction方法,下面以求和+为例,说明其使用方法: 这里reduction的意思是:CPU多线程执行for循环,每个线程保存ans的副本,循环结束后累加每个线程的ans并输出为ans。我的结果是ans=0.23288398, 阅读全文

posted @ 2016-03-22 14:02 morxio 阅读(410) 评论(0) 推荐(0)

摘要:环境:Windows 10 + Visual Studio 2015 Community 第一步:新建win32 console project 第二步:新建cpp文件,填入类似hello world的代码: 第三步,打开工程属性->C/C++下Language页面,将Open MP Support 阅读全文

posted @ 2016-03-22 12:12 morxio 阅读(1883) 评论(0) 推荐(0)