If you need user post-processing functions, I can't help because I never used it.
If you need to print results, use this:
Code: Select all
bft_printf("Zone volume: %.2f [m3]\n",zoneVlm);
%.2f: format substring, variable value will be printed instead of it. Digit means number of decimal places (please see printf manual, it's the same format).
\n: new line character (you may add it in the beginning of line also).
If you need several variables, just mark their places with format specifiers like in this example and then place comma-separated variables list instead of one variable:
Code: Select all
bft_printf("Zone volume: %.2f [m3], ave temperature: %.1f [C]\n",zoneVlm,tempAve);
If you need to print to separate files, fopen/fprint/fclose will help, you can find many manuals in Internet. But I don't know how to isolate first process (by default, every process will create file and fprint to it).