在 Fortran 90 程序中保存数组的值
我有一个系统不同变量的二维和一维数组,它们描述了系统的平衡状态,下一个配置将从该状态演化而来。现在我需要在特定情况下将数据保存在这些数组中并继续,那么我应该如何编写主程序的声明(语法)以及使用这些数组通过可调整传递给它们的子例程 -传递数组的大小数组方法?
I have a two-dimensional and 1-D arrays of different variables of a system which characterize an Equilibrium state of the system from where the next configurations going to evolve from. Now i need to save the data in these arrays at the specific situation and proceed, so how should i write on the declaration (the syntax) of the main program and also in the subroutine which use these arrays to be delivered to them by adjustable-size array method of passing arrays?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
呃,抱歉,但我不太清楚你在问什么。
您对 SAVE 语句感兴趣吗?它使变量能够保留其先前的状态,例如,再次调用子例程时?
Uuugh, sorry, but I'm not quite clear on what you are asking.
Are you interested in the SAVE statement, which enables a variable to retain its previous state, once for example, a subroutine is called again?