Skip to content

Instantly share code, notes, and snippets.

View physicshinzui's full-sized avatar

shinji iida physicshinzui

View GitHub Profile
@Sharpie
Sharpie / .vimrc
Created January 27, 2010 01:24
A vim profile file designed for editing Fortran source code
" Ensure correct syntax highlighting and auto-indentation for Fortran free-form
" source code.
let fortran_free_source=1
let fortran_do_enddo=1
filetype plugin indent on
syntax on
" Turn on line numbers and row/column numbers.
set nu
@ponderomotion
ponderomotion / splitstring.f90
Created October 4, 2012 12:26
Split a string into 2 either side a delimiter in FORTRAN
! split a string into 2 either side of a delimiter token
SUBROUTINE split_string(instring, string1, string2, delim)
CHARACTER(30) :: instring,delim
CHARACTER(30),INTENT(OUT):: string1,string2
INTEGER :: index
instring = TRIM(instring)
index = SCAN(instring,delim)
string1 = instring(1:index-1)