Group: comp.lang.fortran · Group Profile · Search for Advatage in comp.lang.fortran
Author: nospam
Date: Jan 1, 2007 09:01
.... I believe I saw at least one f95 compiler that implements move_alloc now, but you can't yet portably count on that. Alternatively, in f2003, you can do it all in one line, taking advatage of the realloc on assignment, with something like systems = [ systems, (filler, i = 1, n_elements_to_add) ] where filler is a scalar value of the right type. You could probably use systems(1) for ...
|