recentpopularlog in

aries1988 : fortran   52

How to exit from nested Fortran loops? - Stack Overflow
You can jump out of any loop using the EXIT statement. To exit from a loop which is not the innermost loop you are currently in you use a labeled loop and use the label in the EXIT statement to exit that particular loop.
fortran  explained 
10 weeks ago by aries1988
wrf  fortran 
december 2018 by aries1988
Edit descriptors in Fortran Wiki
Integer values may be formatted using the i edit descriptor which has two forms: ‘iw’ and ‘iw.m’. In the first form, w specifies the width and in the second, m specifies the minimum number of digits to output. For example, the integer 37 printed using the edit descriptor ‘i5’ will appear as bbb37 and when printed using i5.3 it will appear as bb037 (where b denotes a blank).
primer  fortran  format 
august 2017 by aries1988
Fortran90 for Fortran77 Programmers
INTENT may be specified for procedure arguments: useful aid to documentation, and allows the compiler to check usage more carefully:
fortran  programming  comparison  moi 
december 2016 by aries1988
[no title]
MODULE myModule
november 2016 by aries1988
fortran - What does `real*8` mean? - Stack Overflow
The "real*4" statement specifies the variable names to be single precision 4-byte real numbers which has 7 digits of accuracy and a magnitude range of 10 from -38 to +38. The "real" statement is the same as "real*4" statement in nearly all 32-bit computers.
explained  fortran  numbers  primer  moi 
september 2016 by aries1988
fortran - MPI_Recv changes the value of count - Stack Overflow
Your argument status is too small, it should be an array status(MPI_STATUS_SIZE), and you're getting a buffer overflow -- This often results in a segmentation fault, but at times (depending on how the compiler packed the variables in memory), it can result in funny behavior like this.
tips  fortran  mpi 
august 2016 by aries1988
Fortran 77 Tutorial
Most lines in a Fortran 77 program starts with 6 blanks and ends before column 72, i.e. only the statement field is used.
fortran  primer 
july 2016 by aries1988
Python vs Fortran in Scientific Computing

Now though it’s programming time that is expensive and Python is a lot easier to learn than Fortran. Unlike Fortran, Python’s arrays are not fast. In fact they are probably a 100 times slower but the NumPy library largely reduces this. I suspect, that if it is out and out performance you want, then Fortran will win but Python with SciPy and NumPy is a very potent combination. Add to this the nearly 80,000 packages in pypi (the Python Package Index) which includes 16 sub-categories of the Scientific/Engineering category (from AI to visualization) and Python looks very promising indeed.
python  fortran  comparison  academia 
june 2016 by aries1988
thread safety - Fortran OpenMP with subroutines and functions - Stack Overflow
1. The scope of subprogram arguments is inherited from the calling point, i.e. if you scoped them as private at the start of the lexical extent they stay private, and if shared they stay shared

2. Local variables to subprograms are by default private (so i in the above is private, as you want) unless they are declared with the SAVE attribute (either explicitly or implicitly) in which case they are shared.
fortran  openmp  variable  scope  learn 
may 2016 by aries1988
Edsger W. Dijkstra - Wikiquote
FORTRAN's tragic fate has been its wide acceptance, mentally chaining thousands and thousands of programmers to our past mistakes.
computer  people  programming  quotes  fortran 
march 2015 by aries1988
Fortran: Lesson 3 | Department of Mathematics
Following are examples of stored values, formatting specifications for printing the values, and resulting output. (The "^" symbol indicates a blank).
fortran  output 
february 2015 by aries1988
Rounding real to integer - Fortran - Tek-Tips
NINT rounds UP or DOWN (i.e. to the Nearest INTeger, hence the name)
 INT rounds TOWARD ZERO (i.e. ABS(INT(A)) <= ABS(A))

for example
NINT ( 7.8) =  8
 INT ( 7.8) =  7

NINT (-7.8) = -8
 INT (-7.8) = -7
fortran  explained 
january 2015 by aries1988
Intrinsic functions in Fortran 90
Truncation is towards zero, INT(-3.7) becomes -3, but rounding is correct, NINT(-3.7) becomes -4. The new functions FLOOR and CEILING truncate towards minus and plus infinity, respectively.
november 2014 by aries1988
vim - Is there a way to configure vimdiff to ignore ALL whitespaces? - Stack Overflow
set diffopt+=iwhite
set diffexpr=DiffW()
function DiffW()
let opt = ""
if &diffopt =~ "icase"
let opt = opt . "-i "
if &diffopt =~ "iwhite"
let opt = opt . "-w " " vim uses -b by default
silent execute "!diff -a --binary " . opt .
\ v:fname_in . " " . v:fname_new . " > " . v:fname_out
vim  fortran  git  howto  diff 
september 2014 by aries1988
what is the advantage of MATLAB over FORTAN?
Matlab already contains many routines for signal processing, systems, equations solving. It is a 'mathematics laboratory' so if what you need to do is already mostly implemented in matlab and you need a few hundred lines of code to implement it then I would advise to use matlab.
matlab  fortran  comparison 
september 2014 by aries1988
Fortran 77 Tutorial
write(6, '(A, F8.4, E11.4, F8.4, E12.4, I2, I5)')
fortran  howto  output  format  io 
may 2014 by aries1988
Fortran Data Types and Specification Statements
In particular, the values, 32767 and 2147483647, are of interest because they are the largest value for a 2-byte integer and a 4-byte integer, respectively.
fortran  numbers  integer 
march 2014 by aries1988
Diagnostic 6754: An automatic object must not appear in a SAVE statement or be declared with the SAVE attribute. | Intel® Developer Zone
In this example, array a would be allocated the first time sub was called to dimension n, and then the bounds (and values in the array) would remain defined across calls. Subsequent calls with different values of n would not change the allocation.
september 2013 by aries1988
integer, dimension(:, :), allocatable :: &
short_var, &
A_very_long_name_var, &
:set ve=all 使得光标可以定位到屏幕任何位置(缺省下VIM的光标只能放在行内的字符上)
gg 到文件第一行
/s+&s*$ 找以&结尾的行,&前至少一个空白字符,后0或多个空白字符
qa 记录宏到寄存器a
D 删除到行尾
78| 定位到第78列
i&<ESC> 插入&并返回到命令模式
n 查找下一个&
q 停止记录宏
10000@a 执行一万遍寄存器a中保存的命令
:set ve="" 恢复ve缺省值
fortran  howto  macro  learn  vi 
august 2012 by aries1988
我的Fortran基本用法小结 | Astronomical Software Club
Fortran 90:自由格式(free format), 扩展名:.f90
以下都是讨论Fortran 90。
fortran  tutorial 
august 2012 by aries1988

Copy this bookmark:

to read