April 30th, 2010, 07:31 PM
FORTRAN 90 "MODULE" Problem
I'm writing a differential evolution optimization by sum of least squares (because I'm a masochist) and what I need to do is read in a user defined number of data points [npts] and run from 0 to npts-1 and store them in an array [y]. Then use the user defined values in a function [fcn] which is called by the differential evolution algorithm subroutine [de], but [de] is not supposed to see the data stored in [y].
I think the best way to do that is to use a MODULE file and simply insert the 'USE ... ' command, but I haven't found anywhere that you can read in values and save them into a module function.
Am I lost or just misinformed about the MODULE procedure?