/// <summary> /// Initialize Gmsh. This must be called before any call to the other functions in /// the API. If `argc' and `argv' (or just `argv' in Python or Julia) are /// provided, they will be handled in the same way as the command line arguments /// in the Gmsh app. If `readConfigFiles' is set, read system Gmsh configuration /// files (gmshrc and gmsh-options). /// </summary> public static void Initialize(char[] args = null, bool readConfigFiles = true) { unsafe { if (args == null) { Gmsh_Warp.GmshInitialize(0, null, Convert.ToInt32(readConfigFiles), ref _staticreff); } else { var array = Marshal.UnsafeAddrOfPinnedArrayElement(args, 0); Gmsh_Warp.GmshInitialize(args.Length, (byte **)array.ToPointer(), Convert.ToInt32(readConfigFiles), ref _staticreff); } CheckException(MethodBase.GetCurrentMethod().MethodHandle); } }