Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
想要调用程序内的一个内部场,总是出错 比如A是一个内部场,B是一个全局场,B=f(A)这种计算就会出错。 应该怎么处理
volScalarField::Internal A; volScalarField B; B=A;
@tens
这个是A的内部场:
A.primitiveField()
如果B也是内部场,那就是
A.primitiveFieldRef() = B;
@李东岳 谢谢东岳老师,学到了,那为什么是
A.primitiveFieldRef() = B; 而不是 A.primitiveField()=B; 呢
两者有什么区别
@tens 带ref()可以赋值,不带的不能复制只能吊用
@李东岳 又学到了