 |
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
Mendo910603
Joined: 06 May 2014 Posts: 7
|
Posted: Wed May 21, 2014 4:19 am Post subject: |
|
|
Yes, "n" can be other than 4, but I'm using that value because I'm introducing 4 differential equations. |
|
Back to top |
|
 |
JohnCampbell
Joined: 16 Feb 2006 Posts: 2621 Location: Sydney
|
Posted: Wed May 21, 2014 4:37 am Post subject: |
|
|
Then if n can be different to 4, and in any case; you need to be consistent with the way you handle the declarations for the arrays you are using.
If you declare an array as dimension(:), then you need an interface for this routine, where it is being called, to provide the dimension. If you are consistent in the way you manage dimension(:) it will work ok.
However, if you declare an array as dimension(n), then you should preferably provide the n as an argument, or via other means. This is a simpler approach.
John |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|