找回密码
 注册
Simdroid-非首页
查看: 521|回复: 3

[子程序] abaqus子程序中涉及到双精度用特意声明变量类型吗?

[复制链接]
发表于 2020-8-26 21:30:21 | 显示全部楼层 |阅读模式 来自 黑龙江
Fortran里面IN 规则规定,假如源代码中没有对变量(或数组)进行定义,则以 I J K L M N 开头的变量为整型变量(或数组),其他变量为实型变量(或数组),那其中实型变量想要使用双精度用特意声明吗?


我看帮助文档里面有这么一段话Abaqus/Explicit is installed with both single precision and double precision executables. To use the double precision executable, you must specify double precision when you run the analysis (see Abaqus/Standard and Abaqus/Explicit execution). All variables in the user subroutines that start with the letters a to h and o to z will automatically be defined in the precision of the executable that you run. The precision of the executable is defined in the vaba_param.inc file, and it is not necessary to define the precision of the variables explicitly.这个意思好像是实型变量不用特意声明精度,abaqus会自己决定,就弄得我很纠结到底用不用声明。。。,求大佬指点
发表于 2020-8-30 14:29:19 | 显示全部楼层 来自 陕西西安
Simdroid开发平台
abaqus会根据用户提交job时选择的精度设置来将vaba_param.inc替换成vaba_param_dp.inc还是vaba_param_sp.inc。在abaqus安装目录下搜索这两个文件,打开看一下文件内容就明白了。
回复 不支持

使用道具 举报

 楼主| 发表于 2020-8-31 08:42:46 | 显示全部楼层 来自 内蒙古呼和浩特
shawn2008 发表于 2020-8-30 14:29
abaqus会根据用户提交job时选择的精度设置来将vaba_param.inc替换成vaba_param_dp.inc还是vaba_param_sp.in ...

好的,多谢,我去看一下
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-10-1 19:25 , Processed in 0.029134 second(s), 14 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表