実数¶
定義方法¶
1<Item name="roughness" caption="Roughness">
2 <Definition valueType="real" position="cell" />
3</Item>
条件の表示例¶
読み込み処理の記述方法¶
FORTRAN¶
1integer:: ier, cellcount
2double precision, dimension(:), allocatable:: roughness
3
4! サイズを調べる
5call cg_iRIC_Read_Grid_CellCount(fid, cellcount, ier)
6! メモリを確保
7allocate(roughness(cellcount))
8! 確保したメモリに値を読み込む
9call cg_iRIC_Read_Grid_Real_Cell(fid, "roughness", roughness, ier)
C/C++¶
1int ier, cellcount;
2std::vector<double> roughness;
3
4// サイズを調べる
5ier = cg_iRIC_Read_Grid_CellCount(fid, &cellcount);
6// メモリを確保
7roughness.assign(cellcout, 0);
8// 確保したメモリに値を読み込む
9ier = cg_iRIC_Read_Grid_Real_Cell(fid, "roughness", roughness.data());
Python¶
1roughness = cg_iRIC_Read_Grid_Real_Cell(fid, "roughness")