Go hokies分享 http://blog.sciencenet.cn/u/cobra22

博文

按标题搜索
在Mac上轻松安装gcc,gfortran等编译器及各种开源软件
2017-3-17 22:43
最近发现多年前发的一个关于 mac 上 fortran 编程的帖子浏览量破万了,为了不再误导大家,在这里介绍一个比之前好一万倍的方法 -- 使用 MacPorts Q: MacPorts 是什么? A: MacPorts 是 Mac OS 上的第三方软件管理工具,可以帮你轻松编译、安装和管理开源软件,比如常用的 gcc gfortran ...
个人分类: 科研笔记|22797 次阅读|没有评论
Install NVIDIA driver for Fedora 14
2011-8-11 04:18
Several tips for installing NVIDIA driver for Fedora 14 are listed below: 1. Make sure X server is turned off before the installation. The easiest way to do this is to press CTRL+ALT+F2 and log in as root. Type "init 3" in the command line to swtich to the level 3 mode in which X server is off ...
3574 次阅读|没有评论
Vi
2010-10-8 00:45
Convert upper to lower case in Vi: :%s/ /L/g
个人分类: 科研笔记|2872 次阅读|没有评论
How to bind CUDA 3D array to texture memory
热度 3 2010-7-8 01:51
众所周知,Global memory没有Cache,访问速度很慢,Shared memory访问速度很快,但是容量很小,对于较大的数组,将其绑定至texture memory往往是个不错的选择。Texture memory可以cache,而且容量很大。 在当前的CUDA版本中,3D的线性内存是无法直接绑定到texture memory,一维的可以,因此,需要将数据首先放进一个3D的CU ...
个人分类: 科研笔记|10629 次阅读|1 个评论 热度 3
A simple method "perl pie "to replace strings in multiple files on Linux system
2010-5-29 01:20
find ./SRC/ -name *.f90 | xargs perl -pi -e 's/iargc()/COMMAND_ARGUMENT_COUNT()/g' try to replace each occurrence of iargc() with COMMAND_ARGUMENT_COUNT() in directory ./SRC for all files with suffix .f90. Parentheses should be included by to indicate they are normal characters in ...
个人分类: 科研笔记|4423 次阅读|没有评论
自适应步长Runge-Kutta-Fehlberg method for solving ODE system的matlab实现
2010-5-20 01:20
用于解决ODE系统。 function =rkf45 (ftys,a,Alpha,b,h,delta,M) %--------------------------------------------------------------------------- %RKF45 % Runge-Kutta-Fehlberg solution for a system Y' = F(T,Y) with Y(a) = Y_a. % Sample call % = rkf45('f',a,Alpha,b,h,delta,M) % Inputs % f name ...
个人分类: 科研笔记|8589 次阅读|没有评论
A Numerical Integration Problem
2010-4-20 07:35
Compute w_i and x_i (i=0,1,2) such that the formula is exact is f is a polynomial of degree equal or less than 5. Give w_i and x_i to 12 significant digits. In Mathematica, we can solve this problem by the following steps: 1) get the orthgonal polynomials Orthogonalize #1 #2,{x,-1,1}]] ...
个人分类: 科研笔记|3496 次阅读|没有评论
Mac上Fortran编程
热度 1 2010-3-16 11:00
迫不得以需要在Mac上使用Fortran,几经周折,终于搞定。 首先我们需要gfortrancomplier和xcode的gfortranplugin,网上有一个安装包.http://www.macresearch.org/xcode_gfortran_plugin_update Xcode里新建一个project,选取standardtool,得到一个包含main.c文件的project. ...
个人分类: 科研笔记|21189 次阅读|1 个评论 热度 1

本页有 2 篇博文因作者的隐私设置或未通过审核而隐藏

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-2 18:22

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部