関数allocate_irregular3Dnodes マニュアル

(The documentation of function allocate_irregular3Dnodes)

Last Update: 2025/12/16


◆機能・用途(Purpose)

struct irregular3Dnodes型構造体の整数メンバの値を設定し、 配列メンバの動的メモリを確保する。
Set integer members and allocate dynamic memories of array members for a struct irregular3Dnodes-type structure.


◆形式(Format)

#include <3d_data_uneven/memory.h>
inline struct irregular3Dnodes allocate_irregular3Dnodes
(const int L,const int M,const int N)


◆引数(Arguments)

L \(x\)方向の格子セルの個数。
The number of grid cells along the \(x\)-direction.
M \(y\)方向の格子セルの個数。
The number of grid cells along the \(y\)-direction.
N \(z\)方向の格子セルの個数。
The number of grid cells along the \(z\)-direction.


◆戻り値(Return value)

メンバの値を以下のように設定した構造体。
A structure whose member values are set as follows.

メンバ
Member
値
Value
L 引数Lの値。
The value of argument L.
M 引数Mの値。
The value of argument M.
N 引数Nの値。
The value of argument N.
x 動的にメモリ確保した要素数\(L+1\)の配列(の先頭アドレス)。 配列要素の値は設定しない。
The address of a dynamically allocated array of \(L+1\) components. the values of the array components are not defined.
y 動的にメモリ確保した要素数\(M+1\)の配列(の先頭アドレス)。 配列要素の値は設定しない。
The address of a dynamically allocated array of \(M+1\) components. the values of the array components are not defined.
z 動的にメモリ確保した要素数\(N+1\)の配列(の先頭アドレス)。 配列要素の値は設定しない。
The address of a dynamically allocated array of \(N+1\) components. the values of the array components are not defined.


◆使用例(Example)

struct irregular3Dnodes nodes=allocate_irregular3Dnodes(10,100,500);