you99 发表于 2020-8-26 21:30:21

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

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会自己决定,就弄得我很纠结到底用不用声明。。。,求大佬指点

shawn2008 发表于 2020-8-30 14:29:19

abaqus会根据用户提交job时选择的精度设置来将vaba_param.inc替换成vaba_param_dp.inc还是vaba_param_sp.inc。在abaqus安装目录下搜索这两个文件,打开看一下文件内容就明白了。

you99 发表于 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 ...

好的,多谢,我去看一下
页: [1]
查看完整版本: abaqus子程序中涉及到双精度用特意声明变量类型吗?