forked from i-RIC/iriclib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiriclib.h
761 lines (414 loc) · 35.4 KB
/
iriclib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
#include "iriclib_global.h"
#include <cgnslib.h>
#define IRIC_GEO_UNKNOWN 0
#define IRIC_GEO_POLYGON 1
#define IRIC_GEO_RIVERSURVEY 2
#define IRIC_GEO_POINTMAP 3
#define IRIC_GEO_POLYLINE 4
#define IRIC_OPTION_UNKNOWN 0
#define IRIC_OPTION_CANCEL 1
#define IRIC_OPTION_DIVIDESOLUTIONS 2
#define IRIC_OPTION_STDSOLUTION 3
#define IRIC_LOCKED 1
#define IRIC_CANCELED 1
#define IRIC_POLYDATA_POLYGON 1
#define IRIC_POLYDATA_POLYLINE 2
#ifdef __cplusplus
extern "C" {
#endif
/**********************************************/
/* Initialization */
/**********************************************/
int IRICLIBDLL cg_iRIC_Init(int fid);
int IRICLIBDLL cg_iRIC_InitRead_Base(int fid, const char* basename);
int IRICLIBDLL cg_iRIC_InitRead(int fid);
void IRICLIBDLL cg_iRIC_SetFilename(int fid, const char* fname);
int IRICLIBDLL iRIC_InitOption(int option);
int IRICLIBDLL cg_iRIC_Flush(const char* name, int* fid);
int IRICLIBDLL cg_iRIC_GotoBase(int fid, int* B);
int IRICLIBDLL cg_iRIC_GotoCC(int fid);
int IRICLIBDLL cg_iRIC_GotoRawDataTop(int fid);
int IRICLIBDLL cg_iRIC_Set_ZoneId_Mul(int fid, int zoneid);
/**********************************************/
/* iRIC GUI coorporation */
/**********************************************/
int IRICLIBDLL iRIC_Write_Sol_Start(const char* fname);
int IRICLIBDLL iRIC_Write_Sol_End(const char* fname);
int IRICLIBDLL iRIC_Check_Lock(const char* fname);
int IRICLIBDLL iRIC_Check_Cancel();
/**********************************************/
/* Reading Calculation Conditions */
/**********************************************/
int IRICLIBDLL cg_iRIC_Read_Integer_Mul(int fid, const char* name, int* intvalue);
int IRICLIBDLL cg_iRIC_Read_Real_Mul(int fid, const char* name, double* realvalue);
int IRICLIBDLL cg_iRIC_Read_RealSingle_Mul(int fid, const char* name, float* realvalue);
int IRICLIBDLL cg_iRIC_Read_StringLen_Mul(int fid, const char* name, int* length);
int IRICLIBDLL cg_iRIC_Read_String_Mul(int fid, const char* name, char* strvalue);
int IRICLIBDLL cg_iRIC_Read_FunctionalSize_Mul(int fid, const char* name, cgsize_t* size);
int IRICLIBDLL cg_iRIC_Read_Functional_Mul(int fid, const char* name, double* x, double* y);
int IRICLIBDLL cg_iRIC_Read_FunctionalWithName_Mul(int fid, const char* name, const char* paramname, double* data);
int IRICLIBDLL cg_iRIC_Read_Functional_RealSingle_Mul(int fid, const char* name, float* x, float* y);
int IRICLIBDLL cg_iRIC_Read_FunctionalWithName_RealSingle_Mul(int fid, const char* name, const char* paramname, float* data);
int IRICLIBDLL cg_iRIC_Read_FunctionalWithName_String_Mul(int fid, const char* name, const char* paramname, char* strvalue);
int IRICLIBDLL cg_iRIC_Read_FunctionalWithName_StringLen_Mul(int fid, const char* name, const char* paramname, int* length);
/**********************************************/
/* Writing Calculation Conditions */
/**********************************************/
int IRICLIBDLL cg_iRIC_Write_Integer_Mul(int fid, const char* name, int intvalue);
int IRICLIBDLL cg_iRIC_Write_Real_Mul(int fid, const char* name, double realvalue);
int IRICLIBDLL cg_iRIC_Write_String_Mul(int fid, const char* name, const char* strvalue);
int IRICLIBDLL cg_iRIC_Write_Functional_Mul(int fid, const char* name, int length, double* realarray_x, double* realarray_y);
int IRICLIBDLL cg_iRIC_Write_FunctionalWithName_Mul(int fid, const char* name, const char* paramname, int length, double* data);
int IRICLIBDLL cg_iRIC_Write_FunctionalWithName_String_Mul(int fid, const char* groupname, const char* name, const char* strvalue);
/**********************************************/
/* Reading Complex Calculation Conditions */
/**********************************************/
int IRICLIBDLL cg_iRIC_Read_Complex_Count_Mul(int fid, const char* groupname, int* num);
int IRICLIBDLL cg_iRIC_Read_Complex_Integer_Mul(int fid, const char* groupname, int num, const char* name, int* intvalue);
int IRICLIBDLL cg_iRIC_Read_Complex_Real_Mul(int fid, const char* groupname, int num, const char* name, double* realvalue);
int IRICLIBDLL cg_iRIC_Read_Complex_RealSingle_Mul(int fid, const char* groupname, int num, const char* name, float* realvalue);
int IRICLIBDLL cg_iRIC_Read_Complex_StringLen_Mul(int fid, const char* groupname, int num, const char* name, int* length);
int IRICLIBDLL cg_iRIC_Read_Complex_String_Mul(int fid, const char* groupname, int num, const char* name, char* strvalue);
int IRICLIBDLL cg_iRIC_Read_Complex_FunctionalSize_Mul(int fid, const char* groupname, int num, const char* name, cgsize_t* size);
int IRICLIBDLL cg_iRIC_Read_Complex_Functional_Mul(int fid, const char* groupname, int num, const char* name, double* x, double* y);
int IRICLIBDLL cg_iRIC_Read_Complex_FunctionalWithName_Mul(int fid, const char* groupname, int num, const char* name, const char* paramname, double* data);
int IRICLIBDLL cg_iRIC_Read_Complex_Functional_RealSingle_Mul(int fid, const char* groupname, int num, const char* name, float* x, float* y);
int IRICLIBDLL cg_iRIC_Read_Complex_FunctionalWithName_RealSingle_Mul(int fid, const char* groupname, int num, const char* name, const char* paramname, float* data);
int IRICLIBDLL cg_iRIC_Read_Complex_FunctionalWithName_StringLen_Mul(int fid, const char* groupname, int num, const char* name, const char* paramname, int* length);
int IRICLIBDLL cg_iRIC_Read_Complex_FunctionalWithName_String_Mul(int fid, const char* groupname, int num, const char* name, const char* paramname, char* strvalue);
int IRICLIBDLL cg_iRIC_Read_Grid_Complex_Node_Mul(int fid, const char* groupname, int* values);
int IRICLIBDLL cg_iRIC_Read_Grid_Complex_Cell_Mul(int fid, const char *groupname, int* values);
/**********************************************/
/* Writing Complex Calculation Conditions */
/**********************************************/
int IRICLIBDLL cg_iRIC_Clear_Complex_Mul(int fid);
int IRICLIBDLL cg_iRIC_Write_Complex_Integer_Mul(int fid, const char* groupname, int num, const char* name, int intvalue);
int IRICLIBDLL cg_iRIC_Write_Complex_Real_Mul(int fid, const char* groupname, int num, const char* name, double realvalue);
int IRICLIBDLL cg_iRIC_Write_Complex_String_Mul(int fid, const char* groupname, int num, const char* name, const char* strvalue);
int IRICLIBDLL cg_iRIC_Write_Complex_Functional_Mul(int fid, const char* groupname, int num, const char* name, int length, double* realarray_x, double* realarray_y);
int IRICLIBDLL cg_iRIC_Write_Complex_FunctionalWithName_Mul(int fid, const char* groupname, int num, const char* name, const char* paramname, int length, double* data);
int IRICLIBDLL cg_iRIC_Write_Complex_FunctionalWithName_String_Mul(int fid, const char* groupname, int num, const char* name, const char* paramname, const char* strvalue);
int IRICLIBDLL cg_iRIC_Write_Grid_Complex_Node_Mul(int fid, const char* groupname, int* values);
int IRICLIBDLL cg_iRIC_Write_Grid_Complex_Cell_Mul(int fid, const char *groupname, int* values);
/**********************************************/
/* Reading Grids */
/**********************************************/
int IRICLIBDLL cg_iRIC_GotoGridCoord2d_Mul(int fid, cgsize_t* isize, cgsize_t* jsize);
int IRICLIBDLL cg_iRIC_GetGridCoord2d_Mul(int fid, double *x, double *y);
int IRICLIBDLL cg_iRIC_GotoGridCoord3d_Mul(int fid, cgsize_t* isize, cgsize_t* jsize, cgsize_t* ksize);
int IRICLIBDLL cg_iRIC_GetGridCoord3d_Mul(int fid, double *x, double *y, double *z);
int IRICLIBDLL cg_iRIC_Read_Grid_NodeCount_Mul(int fid, int* count);
int IRICLIBDLL cg_iRIC_Read_Grid_CellCount_Mul(int fid, int* count);
int IRICLIBDLL cg_iRIC_Read_Grid_IFaceCount_Mul(int fid, int* count);
int IRICLIBDLL cg_iRIC_Read_Grid_JFaceCount_Mul(int fid, int* count);
int IRICLIBDLL cg_iRIC_Read_Grid_Real_Node_Mul(int fid, const char* name, double* values);
int IRICLIBDLL cg_iRIC_Read_Grid_Integer_Node_Mul(int fid, const char* name, int* values);
int IRICLIBDLL cg_iRIC_Read_Grid_Real_Cell_Mul(int fid, const char *name, double* values);
int IRICLIBDLL cg_iRIC_Read_Grid_Integer_Cell_Mul(int fid, const char *name, int* values);
int IRICLIBDLL cg_iRIC_Read_Grid_FunctionalDimensionSize_Mul(int fid, const char* name, const char* dimname, cgsize_t* count);
int IRICLIBDLL cg_iRIC_Read_Grid_FunctionalDimension_Integer_Mul(int fid, const char* name, const char* dimname, int* value);
int IRICLIBDLL cg_iRIC_Read_Grid_FunctionalDimension_Real_Mul(int fid, const char* name, const char* dimname, double* value);
int IRICLIBDLL cg_iRIC_Read_Grid_FunctionalTimeSize_Mul(int fid, const char* name, cgsize_t* count);
int IRICLIBDLL cg_iRIC_Read_Grid_FunctionalTime_Mul(int fid, const char* name, double* time);
int IRICLIBDLL cg_iRIC_Read_Grid_Functional_Integer_Node_Mul(int fid, const char* name, int dimid, int* value);
int IRICLIBDLL cg_iRIC_Read_Grid_Functional_Real_Node_Mul(int fid, const char* name, int dimid, double* value);
int IRICLIBDLL cg_iRIC_Read_Grid_Functional_Integer_Cell_Mul(int fid, const char* name, int dimid, int* value);
int IRICLIBDLL cg_iRIC_Read_Grid_Functional_Real_Cell_Mul(int fid, const char* name, int dimid, double* value);
/**********************************************/
/* Writing Grids */
/**********************************************/
int IRICLIBDLL cg_iRIC_WriteGridCoord1d_Mul(int fid, cgsize_t isize, double* x);
int IRICLIBDLL cg_iRIC_WriteGridCoord2d_Mul(int fid, cgsize_t isize, cgsize_t jsize, double* x, double* y);
int IRICLIBDLL cg_iRIC_WriteGridCoord3d_Mul(int fid, cgsize_t isize, cgsize_t jsize, cgsize_t ksize, double* x, double* y, double* z);
int IRICLIBDLL cg_iRIC_InitGrid_Mul(int fid, int zoneId);
int IRICLIBDLL cg_iRIC_Write_Grid_Real_Node_Mul(int fid, const char* name, double* values);
int IRICLIBDLL cg_iRIC_Write_Grid_Integer_Node_Mul(int fid, const char* name, int* values);
int IRICLIBDLL cg_iRIC_Write_Grid_Real_Cell_Mul(int fid, const char *name, double* values);
int IRICLIBDLL cg_iRIC_Write_Grid_Integer_Cell_Mul(int fid, const char *name, int* values);
/**********************************************/
/* Reading Solutions */
/**********************************************/
int IRICLIBDLL cg_iRIC_Read_Sol_Count_Mul(int fid, int* count);
int IRICLIBDLL cg_iRIC_Read_Sol_Time_Mul(int fid, int step, double* time);
int IRICLIBDLL cg_iRIC_Read_Sol_Iteration_Mul(int fid, int step, int* index);
int IRICLIBDLL cg_iRIC_Read_Sol_BaseIterative_Integer_Mul(int fid, int step, const char* name, int* value);
int IRICLIBDLL cg_iRIC_Read_Sol_BaseIterative_Real_Mul(int fid, int step, const char* name, double* value);
int IRICLIBDLL cg_iRIC_Read_Sol_BaseIterative_StringLen_Mul(int fid, int step, const char* name, int* length);
int IRICLIBDLL cg_iRIC_Read_Sol_BaseIterative_String_Mul(int fid, int step, const char* name, char* strvalue);
int IRICLIBDLL cg_iRIC_Read_Sol_GridCoord2d_Mul(int fid, int step, double* x, double* y);
int IRICLIBDLL cg_iRIC_Read_Sol_GridCoord3d_Mul(int fid, int step, double* x, double* y, double* z);
int IRICLIBDLL cg_iRIC_Read_Sol_Integer_Mul(int fid, int step, const char *name, int* data);
int IRICLIBDLL cg_iRIC_Read_Sol_Cell_Integer_Mul(int fid, int step, const char *name, int* data);
int IRICLIBDLL cg_iRIC_Read_Sol_IFace_Integer_Mul(int fid, int step, const char *name, int* data);
int IRICLIBDLL cg_iRIC_Read_Sol_JFace_Integer_Mul(int fid, int step, const char *name, int* data);
int IRICLIBDLL cg_iRIC_Read_Sol_Real_Mul(int fid, int step, const char *name, double* data);
int IRICLIBDLL cg_iRIC_Read_Sol_Cell_Real_Mul(int fid, int step, const char *name, double* data);
int IRICLIBDLL cg_iRIC_Read_Sol_IFace_Real_Mul(int fid, int step, const char *name, double* data);
int IRICLIBDLL cg_iRIC_Read_Sol_JFace_Real_Mul(int fid, int step, const char *name, double* data);
/**********************************************/
/* Writing Solutions */
/**********************************************/
int IRICLIBDLL cg_iRIC_Write_Sol_Time_Mul(int fid, double time);
int IRICLIBDLL cg_iRIC_Write_Sol_Iteration_Mul(int fid, int index);
int IRICLIBDLL cg_iRIC_Write_Sol_BaseIterative_Integer_Mul(int fid, const char *name, int value);
int IRICLIBDLL cg_iRIC_Write_Sol_BaseIterative_Real_Mul(int fid, const char *name, double value);
int IRICLIBDLL cg_iRIC_Write_Sol_BaseIterative_String_Mul(int fid, const char *name, const char* strvalue);
int IRICLIBDLL cg_iRIC_Write_Sol_GridCoord2d_Mul(int fid, double *x, double *y);
int IRICLIBDLL cg_iRIC_Write_Sol_GridCoord3d_Mul(int fid, double *x, double *y, double *z);
int IRICLIBDLL cg_iRIC_Write_Sol_Integer_Mul(int fid, const char *name, int* data);
int IRICLIBDLL cg_iRIC_Write_Sol_Cell_Integer_Mul(int fid, const char *name, int* data);
int IRICLIBDLL cg_iRIC_Write_Sol_IFace_Integer_Mul(int fid, const char *name, int* data);
int IRICLIBDLL cg_iRIC_Write_Sol_JFace_Integer_Mul(int fid, const char *name, int* data);
int IRICLIBDLL cg_iRIC_Write_Sol_Real_Mul(int fid, const char *name, double* data);
int IRICLIBDLL cg_iRIC_Write_Sol_Cell_Real_Mul(int fid, const char *name, double* data);
int IRICLIBDLL cg_iRIC_Write_Sol_IFace_Real_Mul(int fid, const char *name, double* data);
int IRICLIBDLL cg_iRIC_Write_Sol_JFace_Real_Mul(int fid, const char *name, double* data);
int IRICLIBDLL cg_iRIC_Write_ErrorCode_Mul(int fid, int errorcode);
/**********************************************/
/* Reading Boundary Conditions */
/**********************************************/
void IRICLIBDLL cg_iRIC_Init_BC_Names_Mul(int fid);
void IRICLIBDLL cg_iRIC_Read_BC_Count_Mul(int fid, const char* type, int* num);
int IRICLIBDLL cg_iRIC_Read_BC_IndicesSize_Mul(int fid, const char* type, int num, cgsize_t* size);
int IRICLIBDLL cg_iRIC_Read_BC_IndicesSize2_Mul(int fid, const char* type, int num, cgsize_t* size);
int IRICLIBDLL cg_iRIC_Read_BC_Indices_Mul(int fid, const char* type, int num, cgsize_t* indices);
int IRICLIBDLL cg_iRIC_Read_BC_Integer_Mul(int fid, const char* type, int num, const char* name, int* intvalue);
int IRICLIBDLL cg_iRIC_Read_BC_Real_Mul(int fid, const char* type, int num, const char* name, double* realvalue);
int IRICLIBDLL cg_iRIC_Read_BC_RealSingle_Mul(int fid, const char* type, int num, const char* name, float* realvalue);
int IRICLIBDLL cg_iRIC_Read_BC_StringLen_Mul(int fid, const char* type, int num, const char* name, int* length);
int IRICLIBDLL cg_iRIC_Read_BC_String_Mul(int fid, const char* type, int num, const char* name, char* strvalue);
int IRICLIBDLL cg_iRIC_Read_BC_FunctionalSize_Mul(int fid, const char* type, int num, const char* name, cgsize_t* size);
int IRICLIBDLL cg_iRIC_Read_BC_Functional_Mul(int fid, const char* type, int num, const char* name, double* x, double* y);
int IRICLIBDLL cg_iRIC_Read_BC_FunctionalWithName_Mul(int fid, const char* type, int num, const char* name, const char* paramname, double* data);
int IRICLIBDLL cg_iRIC_Read_BC_Functional_RealSingle_Mul(int fid, const char* type, int num, const char* name, float* x, float* y);
int IRICLIBDLL cg_iRIC_Read_BC_FunctionalWithName_RealSingle_Mul(int fid, const char* type, int num, const char* name, const char* paramname, float* data);
int IRICLIBDLL cg_iRIC_Read_BC_FunctionalWithName_StringLen_Mul(int fid, const char* type, int num, const char* name, const char* paramname, int* length);
int IRICLIBDLL cg_iRIC_Read_BC_FunctionalWithName_String_Mul(int fid, const char* type, int num, const char* name, const char* paramname, char* strvalue);
/**********************************************/
/* Writing Boundary Conditions */
/**********************************************/
int IRICLIBDLL cg_iRIC_Clear_BC_Mul(int fid);
int IRICLIBDLL cg_iRIC_Write_BC_Indices_Mul(int fid, const char* type, int num, cgsize_t size, cgsize_t* indices);
int IRICLIBDLL cg_iRIC_Write_BC_Indices2_Mul(int fid, const char* type, int num, cgsize_t size, cgsize_t* indices);
int IRICLIBDLL cg_iRIC_Write_BC_Integer_Mul(int fid, const char* type, int num, const char* name, int intvalue);
int IRICLIBDLL cg_iRIC_Write_BC_Real_Mul(int fid, const char* type, int num, const char* name, double realvalue);
int IRICLIBDLL cg_iRIC_Write_BC_String_Mul(int fid, const char* type, int num, const char* name, const char* strvalue);
int IRICLIBDLL cg_iRIC_Write_BC_Functional_Mul(int fid, const char* type, int num, const char* name, int length, double* realarray_x, double* realarray_y);
int IRICLIBDLL cg_iRIC_Write_BC_FunctionalWithName_Mul(int fid, const char* type, int num, const char* name, const char* paramname, int length, double* data);
int IRICLIBDLL cg_iRIC_Write_BC_FunctionalWithName_String_Mul(int fid, const char* type, int num, const char* name, const char* paramname, const char* strvalue);
/**********************************************/
/* Writing Particles */
/**********************************************/
int IRICLIBDLL cg_iRIC_Write_Sol_Particle_Pos2d_Mul(int fid, cgsize_t count, double* x, double* y);
int IRICLIBDLL cg_iRIC_Write_Sol_Particle_Pos3d_Mul(int fid, cgsize_t count, double* x, double* y, double* z);
int IRICLIBDLL cg_iRIC_Write_Sol_Particle_Real_Mul(int fid, const char* name, double* value);
int IRICLIBDLL cg_iRIC_Write_Sol_Particle_Integer_Mul(int fid, const char* name, int* value);
/**********************************************/
/* Writing Particle Groups */
/**********************************************/
int IRICLIBDLL cg_iRIC_Write_Sol_ParticleGroup_GroupBegin_Mul(int fid, const char* name);
int IRICLIBDLL cg_iRIC_Write_Sol_ParticleGroup_GroupEnd_Mul(int fid);
int IRICLIBDLL cg_iRIC_Write_Sol_ParticleGroup_Pos2d_Mul(int fid, double x, double y);
int IRICLIBDLL cg_iRIC_Write_Sol_ParticleGroup_Pos3d_Mul(int fid, double x, double y, double z);
int IRICLIBDLL cg_iRIC_Write_Sol_ParticleGroup_Integer_Mul(int fid, const char* name, int value);
int IRICLIBDLL cg_iRIC_Write_Sol_ParticleGroup_Real_Mul(int fid, const char* name, double value);
/**********************************************/
/* Writing Polydata */
/**********************************************/
int IRICLIBDLL cg_iRIC_Write_Sol_PolyData_GroupBegin_Mul(int fid, const char* name);
int IRICLIBDLL cg_iRIC_Write_Sol_PolyData_GroupEnd_Mul(int fid);
int IRICLIBDLL cg_iRIC_Write_Sol_PolyData_Polygon_Mul(int fid, int numPoints, double* x, double* y);
int IRICLIBDLL cg_iRIC_Write_Sol_PolyData_Polyline_Mul(int fid, int numPoints, double* x, double* y);
int IRICLIBDLL cg_iRIC_Write_Sol_PolyData_Integer_Mul(int fid, const char* name, int value);
int IRICLIBDLL cg_iRIC_Write_Sol_PolyData_Real_Mul(int fid, const char* name, double value);
/**********************************************/
/* Reading Geographic Data */
/**********************************************/
int IRICLIBDLL cg_iRIC_Read_Geo_Count_Mul(int fid, const char* name, int* count);
int IRICLIBDLL cg_iRIC_Read_Geo_Filename_Mul(int fid, const char* name, int geoid, char* filename, int* type);
/***********************************************/
/* Reading Geographic Data (Polygon) */
/***********************************************/
int IRICLIBDLL iRIC_Geo_Polygon_Open(const char* filename, int *id);
int IRICLIBDLL iRIC_Geo_Polygon_Read_IntegerValue(int id, int* value);
int IRICLIBDLL iRIC_Geo_Polygon_Read_RealValue(int id, double* value);
int IRICLIBDLL iRIC_Geo_Polygon_Read_PointCount(int id, int* size);
int IRICLIBDLL iRIC_Geo_Polygon_Read_Points(int id, double* x, double* y);
int IRICLIBDLL iRIC_Geo_Polygon_Read_HoleCount(int id, int* count);
int IRICLIBDLL iRIC_Geo_Polygon_Read_HolePointCount(int id, int holeid, int* count);
int IRICLIBDLL iRIC_Geo_Polygon_Read_HolePoints(int id, int holeid, double* x, double* y);
int IRICLIBDLL iRIC_Geo_Polygon_Close(int id);
/***********************************************/
/* Reading Geographic Data (RiverSurvey) */
/***********************************************/
int IRICLIBDLL iRIC_Geo_RiverSurvey_Open(const char* filename, int* id);
int IRICLIBDLL iRIC_Geo_RiverSurvey_Read_Count(int id, int* count);
int IRICLIBDLL iRIC_Geo_RiverSurvey_Read_Position(int id, int pointid, double* x, double* y);
int IRICLIBDLL iRIC_Geo_RiverSurvey_Read_Direction(int id, int pointid, double* vx, double* vy);
int IRICLIBDLL iRIC_Geo_RiverSurvey_Read_Name(int id, int pointid, const char** name);
int IRICLIBDLL iRIC_Geo_RiverSurvey_Read_RealName(int id, int pointid, double* name);
int IRICLIBDLL iRIC_Geo_RiverSurvey_Read_LeftShift(int id, int pointid, double* shift);
int IRICLIBDLL iRIC_Geo_RiverSurvey_Read_AltitudeCount(int id, int pointid, int* count);
int IRICLIBDLL iRIC_Geo_RiverSurvey_Read_Altitudes(int id, int pointid, double* position, double* height, int* active);
int IRICLIBDLL iRIC_Geo_RiverSurvey_Read_FixedPointL(int id, int pointid, int* set, double* directionX, double* directionY, int* index);
int IRICLIBDLL iRIC_Geo_RiverSurvey_Read_FixedPointR(int id, int pointid, int* set, double* directionX, double* directionY, int* index);
int IRICLIBDLL iRIC_Geo_RiverSurvey_Read_WaterSurfaceElevation(int id, int pointid, int *set, double* value);
int IRICLIBDLL iRIC_Geo_RiverSurvey_Close(int id);
/************************************************/
/* Functions for handling single CGNS files */
/* */
/* These functions are created using */
/* make_iriclib_singlefuncs_header.php. */
/************************************************/
int IRICLIBDLL cg_iRIC_Set_ZoneId(int zoneid);
int IRICLIBDLL cg_iRIC_Read_Integer(const char* name, int* intvalue);
int IRICLIBDLL cg_iRIC_Read_Real(const char* name, double* realvalue);
int IRICLIBDLL cg_iRIC_Read_RealSingle(const char* name, float* realvalue);
int IRICLIBDLL cg_iRIC_Read_StringLen(const char* name, int* length);
int IRICLIBDLL cg_iRIC_Read_String(const char* name, char* strvalue);
int IRICLIBDLL cg_iRIC_Read_FunctionalSize(const char* name, cgsize_t* size);
int IRICLIBDLL cg_iRIC_Read_Functional(const char* name, double* x, double* y);
int IRICLIBDLL cg_iRIC_Read_FunctionalWithName(const char* name, const char* paramname, double* data);
int IRICLIBDLL cg_iRIC_Read_Functional_RealSingle(const char* name, float* x, float* y);
int IRICLIBDLL cg_iRIC_Read_FunctionalWithName_RealSingle(const char* name, const char* paramname, float* data);
int IRICLIBDLL cg_iRIC_Read_FunctionalWithName_String(const char* name, const char* paramname, char* strvalue);
int IRICLIBDLL cg_iRIC_Read_FunctionalWithName_StringLen(const char* name, const char* paramname, int* length);
int IRICLIBDLL cg_iRIC_Write_Integer(const char* name, int intvalue);
int IRICLIBDLL cg_iRIC_Write_Real(const char* name, double realvalue);
int IRICLIBDLL cg_iRIC_Write_String(const char* name, const char* strvalue);
int IRICLIBDLL cg_iRIC_Write_Functional(const char* name, int length, double* realarray_x, double* realarray_y);
int IRICLIBDLL cg_iRIC_Write_FunctionalWithName(const char* name, const char* paramname, int length, double* data);
int IRICLIBDLL cg_iRIC_Write_FunctionalWithName_String(const char* groupname, const char* name, const char* strvalue);
int IRICLIBDLL cg_iRIC_Read_Complex_Count(const char* groupname, int* num);
int IRICLIBDLL cg_iRIC_Read_Complex_Integer(const char* groupname, int num, const char* name, int* intvalue);
int IRICLIBDLL cg_iRIC_Read_Complex_Real(const char* groupname, int num, const char* name, double* realvalue);
int IRICLIBDLL cg_iRIC_Read_Complex_RealSingle(const char* groupname, int num, const char* name, float* realvalue);
int IRICLIBDLL cg_iRIC_Read_Complex_StringLen(const char* groupname, int num, const char* name, int* length);
int IRICLIBDLL cg_iRIC_Read_Complex_String(const char* groupname, int num, const char* name, char* strvalue);
int IRICLIBDLL cg_iRIC_Read_Complex_FunctionalSize(const char* groupname, int num, const char* name, cgsize_t* size);
int IRICLIBDLL cg_iRIC_Read_Complex_Functional(const char* groupname, int num, const char* name, double* x, double* y);
int IRICLIBDLL cg_iRIC_Read_Complex_FunctionalWithName(const char* groupname, int num, const char* name, const char* paramname, double* data);
int IRICLIBDLL cg_iRIC_Read_Complex_Functional_RealSingle(const char* groupname, int num, const char* name, float* x, float* y);
int IRICLIBDLL cg_iRIC_Read_Complex_FunctionalWithName_RealSingle(const char* groupname, int num, const char* name, const char* paramname, float* data);
int IRICLIBDLL cg_iRIC_Read_Complex_FunctionalWithName_StringLen(const char* groupname, int num, const char* name, const char* paramname, int* length);
int IRICLIBDLL cg_iRIC_Read_Complex_FunctionalWithName_String(const char* groupname, int num, const char* name, const char* paramname, char* strvalue);
int IRICLIBDLL cg_iRIC_Read_Grid_Complex_Node(const char* groupname, int* values);
int IRICLIBDLL cg_iRIC_Read_Grid_Complex_Cell(const char *groupname, int* values);
int IRICLIBDLL cg_iRIC_Clear_Complex();
int IRICLIBDLL cg_iRIC_Write_Complex_Integer(const char* groupname, int num, const char* name, int intvalue);
int IRICLIBDLL cg_iRIC_Write_Complex_Real(const char* groupname, int num, const char* name, double realvalue);
int IRICLIBDLL cg_iRIC_Write_Complex_String(const char* groupname, int num, const char* name, const char* strvalue);
int IRICLIBDLL cg_iRIC_Write_Complex_Functional(const char* groupname, int num, const char* name, int length, double* realarray_x, double* realarray_y);
int IRICLIBDLL cg_iRIC_Write_Complex_FunctionalWithName(const char* groupname, int num, const char* name, const char* paramname, int length, double* data);
int IRICLIBDLL cg_iRIC_Write_Complex_FunctionalWithName_String(const char* groupname, int num, const char* name, const char* paramname, const char* strvalue);
int IRICLIBDLL cg_iRIC_Write_Grid_Complex_Node(const char* groupname, int* values);
int IRICLIBDLL cg_iRIC_Write_Grid_Complex_Cell(const char *groupname, int* values);
int IRICLIBDLL cg_iRIC_GotoGridCoord2d(cgsize_t* isize, cgsize_t* jsize);
int IRICLIBDLL cg_iRIC_GetGridCoord2d(double *x, double *y);
int IRICLIBDLL cg_iRIC_GotoGridCoord3d(cgsize_t* isize, cgsize_t* jsize, cgsize_t* ksize);
int IRICLIBDLL cg_iRIC_GetGridCoord3d(double *x, double *y, double *z);
int IRICLIBDLL cg_iRIC_Read_Grid_NodeCount(int* count);
int IRICLIBDLL cg_iRIC_Read_Grid_CellCount(int* count);
int IRICLIBDLL cg_iRIC_Read_Grid_IFaceCount(int* count);
int IRICLIBDLL cg_iRIC_Read_Grid_JFaceCount(int* count);
int IRICLIBDLL cg_iRIC_Read_Grid_Real_Node(const char* name, double* values);
int IRICLIBDLL cg_iRIC_Read_Grid_Integer_Node(const char* name, int* values);
int IRICLIBDLL cg_iRIC_Read_Grid_Real_Cell(const char *name, double* values);
int IRICLIBDLL cg_iRIC_Read_Grid_Integer_Cell(const char *name, int* values);
int IRICLIBDLL cg_iRIC_Read_Grid_FunctionalDimensionSize(const char* name, const char* dimname, cgsize_t* count);
int IRICLIBDLL cg_iRIC_Read_Grid_FunctionalDimension_Integer(const char* name, const char* dimname, int* value);
int IRICLIBDLL cg_iRIC_Read_Grid_FunctionalDimension_Real(const char* name, const char* dimname, double* value);
int IRICLIBDLL cg_iRIC_Read_Grid_FunctionalTimeSize(const char* name, cgsize_t* count);
int IRICLIBDLL cg_iRIC_Read_Grid_FunctionalTime(const char* name, double* time);
int IRICLIBDLL cg_iRIC_Read_Grid_Functional_Integer_Node(const char* name, int dimid, int* value);
int IRICLIBDLL cg_iRIC_Read_Grid_Functional_Real_Node(const char* name, int dimid, double* value);
int IRICLIBDLL cg_iRIC_Read_Grid_Functional_Integer_Cell(const char* name, int dimid, int* value);
int IRICLIBDLL cg_iRIC_Read_Grid_Functional_Real_Cell(const char* name, int dimid, double* value);
int IRICLIBDLL cg_iRIC_WriteGridCoord1d(cgsize_t isize, double* x);
int IRICLIBDLL cg_iRIC_WriteGridCoord2d(cgsize_t isize, cgsize_t jsize, double* x, double* y);
int IRICLIBDLL cg_iRIC_WriteGridCoord3d(cgsize_t isize, cgsize_t jsize, cgsize_t ksize, double* x, double* y, double* z);
int IRICLIBDLL cg_iRIC_InitGrid(int zoneId);
int IRICLIBDLL cg_iRIC_Write_Grid_Real_Node(const char* name, double* values);
int IRICLIBDLL cg_iRIC_Write_Grid_Integer_Node(const char* name, int* values);
int IRICLIBDLL cg_iRIC_Write_Grid_Real_Cell(const char *name, double* values);
int IRICLIBDLL cg_iRIC_Write_Grid_Integer_Cell(const char *name, int* values);
int IRICLIBDLL cg_iRIC_Read_Sol_Count(int* count);
int IRICLIBDLL cg_iRIC_Read_Sol_Time(int step, double* time);
int IRICLIBDLL cg_iRIC_Read_Sol_Iteration(int step, int* index);
int IRICLIBDLL cg_iRIC_Read_Sol_BaseIterative_Integer(int step, const char* name, int* value);
int IRICLIBDLL cg_iRIC_Read_Sol_BaseIterative_Real(int step, const char* name, double* value);
int IRICLIBDLL cg_iRIC_Read_Sol_BaseIterative_StringLen(int step, const char* name, int* length);
int IRICLIBDLL cg_iRIC_Read_Sol_BaseIterative_String(int step, const char* name, char* strvalue);
int IRICLIBDLL cg_iRIC_Read_Sol_GridCoord2d(int step, double* x, double* y);
int IRICLIBDLL cg_iRIC_Read_Sol_GridCoord3d(int step, double* x, double* y, double* z);
int IRICLIBDLL cg_iRIC_Read_Sol_Integer(int step, const char *name, int* data);
int IRICLIBDLL cg_iRIC_Read_Sol_Cell_Integer(int step, const char *name, int* data);
int IRICLIBDLL cg_iRIC_Read_Sol_IFace_Integer(int step, const char *name, int* data);
int IRICLIBDLL cg_iRIC_Read_Sol_JFace_Integer(int step, const char *name, int* data);
int IRICLIBDLL cg_iRIC_Read_Sol_Real(int step, const char *name, double* data);
int IRICLIBDLL cg_iRIC_Read_Sol_Cell_Real(int step, const char *name, double* data);
int IRICLIBDLL cg_iRIC_Read_Sol_IFace_Real(int step, const char *name, double* data);
int IRICLIBDLL cg_iRIC_Read_Sol_JFace_Real(int step, const char *name, double* data);
int IRICLIBDLL cg_iRIC_Write_Sol_Time(double time);
int IRICLIBDLL cg_iRIC_Write_Sol_Iteration(int index);
int IRICLIBDLL cg_iRIC_Write_Sol_BaseIterative_Integer(const char *name, int value);
int IRICLIBDLL cg_iRIC_Write_Sol_BaseIterative_Real(const char *name, double value);
int IRICLIBDLL cg_iRIC_Write_Sol_BaseIterative_String(const char *name, const char* strvalue);
int IRICLIBDLL cg_iRIC_Write_Sol_GridCoord2d(double *x, double *y);
int IRICLIBDLL cg_iRIC_Write_Sol_GridCoord3d(double *x, double *y, double *z);
int IRICLIBDLL cg_iRIC_Write_Sol_Integer(const char *name, int* data);
int IRICLIBDLL cg_iRIC_Write_Sol_Cell_Integer(const char *name, int* data);
int IRICLIBDLL cg_iRIC_Write_Sol_IFace_Integer(const char *name, int* data);
int IRICLIBDLL cg_iRIC_Write_Sol_JFace_Integer(const char *name, int* data);
int IRICLIBDLL cg_iRIC_Write_Sol_Real(const char *name, double* data);
int IRICLIBDLL cg_iRIC_Write_Sol_Cell_Real(const char *name, double* data);
int IRICLIBDLL cg_iRIC_Write_Sol_IFace_Real(const char *name, double* data);
int IRICLIBDLL cg_iRIC_Write_Sol_JFace_Real(const char *name, double* data);
int IRICLIBDLL cg_iRIC_Write_ErrorCode(int errorcode);
void IRICLIBDLL cg_iRIC_Init_BC_Names();
void IRICLIBDLL cg_iRIC_Read_BC_Count(const char* type, int* num);
int IRICLIBDLL cg_iRIC_Read_BC_IndicesSize(const char* type, int num, cgsize_t* size);
int IRICLIBDLL cg_iRIC_Read_BC_IndicesSize2(const char* type, int num, cgsize_t* size);
int IRICLIBDLL cg_iRIC_Read_BC_Indices(const char* type, int num, cgsize_t* indices);
int IRICLIBDLL cg_iRIC_Read_BC_Integer(const char* type, int num, const char* name, int* intvalue);
int IRICLIBDLL cg_iRIC_Read_BC_Real(const char* type, int num, const char* name, double* realvalue);
int IRICLIBDLL cg_iRIC_Read_BC_RealSingle(const char* type, int num, const char* name, float* realvalue);
int IRICLIBDLL cg_iRIC_Read_BC_StringLen(const char* type, int num, const char* name, int* length);
int IRICLIBDLL cg_iRIC_Read_BC_String(const char* type, int num, const char* name, char* strvalue);
int IRICLIBDLL cg_iRIC_Read_BC_FunctionalSize(const char* type, int num, const char* name, cgsize_t* size);
int IRICLIBDLL cg_iRIC_Read_BC_Functional(const char* type, int num, const char* name, double* x, double* y);
int IRICLIBDLL cg_iRIC_Read_BC_FunctionalWithName(const char* type, int num, const char* name, const char* paramname, double* data);
int IRICLIBDLL cg_iRIC_Read_BC_Functional_RealSingle(const char* type, int num, const char* name, float* x, float* y);
int IRICLIBDLL cg_iRIC_Read_BC_FunctionalWithName_RealSingle(const char* type, int num, const char* name, const char* paramname, float* data);
int IRICLIBDLL cg_iRIC_Read_BC_FunctionalWithName_StringLen(const char* type, int num, const char* name, const char* paramname, int* length);
int IRICLIBDLL cg_iRIC_Read_BC_FunctionalWithName_String(const char* type, int num, const char* name, const char* paramname, char* strvalue);
int IRICLIBDLL cg_iRIC_Clear_BC();
int IRICLIBDLL cg_iRIC_Write_BC_Indices(const char* type, int num, cgsize_t size, cgsize_t* indices);
int IRICLIBDLL cg_iRIC_Write_BC_Indices2(const char* type, int num, cgsize_t size, cgsize_t* indices);
int IRICLIBDLL cg_iRIC_Write_BC_Integer(const char* type, int num, const char* name, int intvalue);
int IRICLIBDLL cg_iRIC_Write_BC_Real(const char* type, int num, const char* name, double realvalue);
int IRICLIBDLL cg_iRIC_Write_BC_String(const char* type, int num, const char* name, const char* strvalue);
int IRICLIBDLL cg_iRIC_Write_BC_Functional(const char* type, int num, const char* name, int length, double* realarray_x, double* realarray_y);
int IRICLIBDLL cg_iRIC_Write_BC_FunctionalWithName(const char* type, int num, const char* name, const char* paramname, int length, double* data);
int IRICLIBDLL cg_iRIC_Write_BC_FunctionalWithName_String(const char* type, int num, const char* name, const char* paramname, const char* strvalue);
int IRICLIBDLL cg_iRIC_Write_Sol_Particle_Pos2d(cgsize_t count, double* x, double* y);
int IRICLIBDLL cg_iRIC_Write_Sol_Particle_Pos3d(cgsize_t count, double* x, double* y, double* z);
int IRICLIBDLL cg_iRIC_Write_Sol_Particle_Real(const char* name, double* value);
int IRICLIBDLL cg_iRIC_Write_Sol_Particle_Integer(const char* name, int* value);
int IRICLIBDLL cg_iRIC_Write_Sol_ParticleGroup_GroupBegin(const char* name);
int IRICLIBDLL cg_iRIC_Write_Sol_ParticleGroup_GroupEnd();
int IRICLIBDLL cg_iRIC_Write_Sol_ParticleGroup_Pos2d(double x, double y);
int IRICLIBDLL cg_iRIC_Write_Sol_ParticleGroup_Pos3d(double x, double y, double z);
int IRICLIBDLL cg_iRIC_Write_Sol_ParticleGroup_Integer(const char* name, int value);
int IRICLIBDLL cg_iRIC_Write_Sol_ParticleGroup_Real(const char* name, double value);
int IRICLIBDLL cg_iRIC_Write_Sol_PolyData_GroupBegin(const char* name);
int IRICLIBDLL cg_iRIC_Write_Sol_PolyData_GroupEnd();
int IRICLIBDLL cg_iRIC_Write_Sol_PolyData_Polygon(int numPoints, double* x, double* y);
int IRICLIBDLL cg_iRIC_Write_Sol_PolyData_Polyline(int numPoints, double* x, double* y);
int IRICLIBDLL cg_iRIC_Write_Sol_PolyData_Integer(const char* name, int value);
int IRICLIBDLL cg_iRIC_Write_Sol_PolyData_Real(const char* name, double value);
int IRICLIBDLL cg_iRIC_Read_Geo_Count(const char* name, int* count);
int IRICLIBDLL cg_iRIC_Read_Geo_Filename(const char* name, int geoid, char* filename, int* type);
#ifdef __cplusplus
}
#endif