// // time: Thu Oct 4 16:59:38 2001 // // version: 3.1.2 (format), 4.1.3 (DX) // // // MODULE main // // comment: Visualize the results of a BEARCLAW computation // page assignment: CollectGrids order=5, windowed=0, showing=1 // page assignment: Frame Info order=2, windowed=0, showing=0 // page assignment: Grid Loop order=3, windowed=0, showing=0 // page assignment: ReadGridData order=4, windowed=0, showing=0 // page assignment: RenderGrids order=6, windowed=0, showing=0 // workspace: width = 593, height = 1056 // layout: snap = 0, width = 50, height = 50, align = NN // macro main( ) -> ( ) { // // node Compute[19]: x = 223, y = 125, inputs = 1, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "0" // page group: Frame Info // expression: value = 0 // main_Compute_19_out_1 = Compute( main_Compute_19_in_1 ) [instance: 19, cache: 1]; // // node Import[12]: x = 28, y = 28, inputs = 6, label = Import // input[1]: defaulting = 0, visible = 1, type = 32, value = "./out/global.hdf" // input[2]: defaulting = 0, visible = 1, type = 32, value = "0" // input[3]: defaulting = 0, visible = 1, type = 32, value = "hdf" // page group: Frame Info // main_Import_12_out_1 = Import( main_Import_12_in_1, main_Import_12_in_2, main_Import_12_in_3, main_Import_12_in_4, main_Import_12_in_5, main_Import_12_in_6 ) [instance: 12, cache: 1]; // // node Extract[8]: x = 152, y = 29, inputs = 2, label = Extract // input[2]: defaulting = 1, visible = 1, type = 32, value = NULL // page group: Frame Info // main_Extract_8_out_1 = Extract( main_Import_12_out_1, main_Extract_8_in_2 ) [instance: 8, cache: 1]; // // node Select[21]: x = 262, y = 31, inputs = 3, label = Select // input[2]: defaulting = 0, visible = 1, type = 1, value = 0 // page group: Frame Info // main_Select_21_out_1 = Select( main_Extract_8_out_1, main_Select_21_in_2, main_Select_21_in_3 ) [instance: 21, cache: 1]; // // node Compute[18]: x = 375, y = 37, inputs = 2, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "int($0)" // page group: Frame Info // expression: value = int(a) // name[2]: value = a // main_Compute_18_out_1 = Compute( main_Compute_18_in_1, main_Select_21_out_1 ) [instance: 18, cache: 1]; // // node Sequencer[1]: x = 349, y = 129, inputs = 7, label = Sequencer // input[1]: defaulting = 0, visible = 0, type = 32, value = "Sequencer_1" // input[4]: defaulting = 1, visible = 1, type = 1, value = 0 // input[5]: defaulting = 1, visible = 1, type = 1, value = 10 // input[6]: defaulting = 1, visible = 0, type = 1, value = 1 // input[7]: defaulting = 0, visible = 0, type = 16777217, value = { 0 10 1 0 10 1 } // page group: Frame Info // vcr[1]: min = 0, max = 10, beg = 0, end = 10, cur = 0, inc = 1, loop = off, step = off, pal = off // window: position = (0.5975,0.6008), size = 0.1750x0.0667 // main_Sequencer_1_in_3 = @frame; main_Sequencer_1_out_1[cache: 2] = Sequencer( main_Sequencer_1_in_1, main_Sequencer_1_in_2, main_Sequencer_1_in_3, main_Compute_19_out_1, main_Compute_18_out_1, main_Sequencer_1_in_6, main_Sequencer_1_in_7 ) [instance: 1, cache: 1]; // // node Format[10]: x = 274, y = 282, inputs = 3, label = Format // input[1]: defaulting = 0, visible = 1, type = 32, value = "./out/q%5.5d.hdf" // page group: Frame Info // main_Format_10_out_1 = Format( main_Format_10_in_1, main_Sequencer_1_out_1, main_Format_10_in_3 ) [instance: 10, cache: 1]; // // node Transmitter[5]: x = 266, y = 390, inputs = 1, label = GridDataFile // page group: Frame Info // GridDataFile = main_Format_10_out_1; // // node Receiver[5]: x = 8, y = 130, inputs = 1, label = GridDataFile // page group: ReadGridData // main_Receiver_5_out_1[cache: 0] = GridDataFile; // // node GetLocal[2]: x = 132, y = 743, inputs = 3, label = GetLocal // input[1]: defaulting = 0, visible = 1, type = 67108863, value = 0 // page group: Grid Loop // main_GetLocal_2_out_1, main_GetLocal_2_out_2 = GetLocal( main_GetLocal_2_in_1, main_GetLocal_2_in_2, main_GetLocal_2_in_3 ) [instance: 2, cache: 1]; // // node Transmitter[6]: x = 26, y = 1023, inputs = 1, label = FirstRecord // page group: Grid Loop // FirstRecord = main_GetLocal_2_out_1; // // node Receiver[6]: x = 196, y = 24, inputs = 1, label = FirstRecord // page group: ReadGridData // main_Receiver_6_out_1[cache: 0] = FirstRecord; // // node Format[13]: x = 118, y = 135, inputs = 3, label = Format // input[1]: defaulting = 0, visible = 1, type = 32, value = "%d" // page group: ReadGridData // main_Format_13_out_1 = Format( main_Format_13_in_1, main_Receiver_6_out_1, main_Format_13_in_3 ) [instance: 13, cache: 1]; // // node Import[8]: x = 119, y = 264, inputs = 6, label = Import // input[2]: defaulting = 1, visible = 1, type = 16777248, value = {"0""1" "2" "3"} // page group: ReadGridData // main_Import_8_out_1 = Import( main_Receiver_5_out_1, main_Format_13_out_1, main_Import_8_in_3, main_Import_8_in_4, main_Import_8_in_5, main_Import_8_in_6 ) [instance: 8, cache: 1]; // // node Transmitter[1]: x = 143, y = 458, inputs = 1, label = q // page group: ReadGridData // q = main_Import_8_out_1; // // node Receiver[10]: x = 74, y = 12, inputs = 1, label = q // page group: CollectGrids // main_Receiver_10_out_1[cache: 0] = q; // // node Mark[1]: x = 74, y = 113, inputs = 2, label = Mark // input[2]: defaulting = 0, visible = 1, type = 32, value = "positions" // page group: CollectGrids // main_Mark_1_out_1 = Mark( main_Receiver_10_out_1, main_Mark_1_in_2 ) [instance: 1, cache: 1]; // // node Format[11]: x = 32, y = 280, inputs = 3, label = Format // input[1]: defaulting = 0, visible = 1, type = 32, value = "./out/t%5.5d.hdf" // page group: Frame Info // main_Format_11_out_1 = Format( main_Format_11_in_1, main_Sequencer_1_out_1, main_Format_11_in_3 ) [instance: 11, cache: 1]; // // node Import[7]: x = 56, y = 390, inputs = 6, label = Import // input[2]: defaulting = 1, visible = 1, type = 32, value = "0" // input[3]: defaulting = 0, visible = 1, type = 32, value = "hdf" // page group: Frame Info // main_Import_7_out_1[cache: 2] = Import( main_Format_11_out_1, main_Import_7_in_2, main_Import_7_in_3, main_Import_7_in_4, main_Import_7_in_5, main_Import_7_in_6 ) [instance: 7, cache: 1]; // // node Transmitter[2]: x = 56, y = 491, inputs = 1, label = FrameInfo // page group: Frame Info // FrameInfo = main_Import_7_out_1; // // node Receiver[2]: x = 241, y = 0, inputs = 1, label = FrameInfo // page group: Grid Loop // main_Receiver_2_out_1[cache: 0] = FrameInfo; // // node Select[7]: x = 320, y = 77, inputs = 3, label = Select // input[2]: defaulting = 0, visible = 1, type = 1, value = 0 // page group: Grid Loop // main_Select_7_out_1 = Select( main_Receiver_2_out_1, main_Select_7_in_2, main_Select_7_in_3 ) [instance: 7, cache: 1]; // // node Extract[6]: x = 403, y = 77, inputs = 2, label = Extract // page group: Grid Loop // main_Extract_6_out_1 = Extract( main_Select_7_out_1, main_Extract_6_in_2 ) [instance: 6, cache: 1]; // // node Select[8]: x = 479, y = 77, inputs = 3, label = Select // input[2]: defaulting = 0, visible = 0, type = 1, value = 0 // page group: Grid Loop // main_Select_8_out_1 = Select( main_Extract_6_out_1, main_Select_8_in_2, main_Select_8_in_3 ) [instance: 8, cache: 1]; // // node Compute[8]: x = 548, y = 80, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "int($0)" // page group: Grid Loop // expression: value = int(a) // name[2]: value = a // name[3]: value = b // main_Compute_8_out_1 = Compute( main_Compute_8_in_1, main_Select_8_out_1, main_Compute_8_in_3 ) [instance: 8, cache: 1]; // // node ForEachN[2]: x = 431, y = 193, inputs = 3, label = ForEachN // input[1]: defaulting = 0, visible = 1, type = 1, value = 1 // input[2]: defaulting = 1, visible = 1, type = 1, value = 1 // input[3]: defaulting = 1, visible = 1, type = 1, value = 1 // page group: Grid Loop // main_ForEachN_2_out_1, main_ForEachN_2_out_2 = ForEachN( main_ForEachN_2_in_1, main_Compute_8_out_1, main_ForEachN_2_in_3 ) [instance: 2, cache: 1]; // // node Select[9]: x = 405, y = 360, inputs = 3, label = Select // page group: Grid Loop // main_Select_9_out_1 = Select( main_Receiver_2_out_1, main_ForEachN_2_out_1, main_Select_9_in_3 ) [instance: 9, cache: 1]; // // node Transmitter[8]: x = 400, y = 460, inputs = 1, label = GridInfo // page group: Grid Loop // GridInfo = main_Select_9_out_1; // // node Receiver[11]: x = 328, y = 11, inputs = 1, label = GridInfo // page group: CollectGrids // main_Receiver_11_out_1[cache: 0] = GridInfo; // // node Extract[7]: x = 344, y = 96, inputs = 2, label = Extract // page group: CollectGrids // main_Extract_7_out_1 = Extract( main_Receiver_11_out_1, main_Extract_7_in_2 ) [instance: 7, cache: 1]; // // node Select[15]: x = 159, y = 178, inputs = 3, label = Select // input[2]: defaulting = 0, visible = 0, type = 1, value = 5 // page group: CollectGrids // main_Select_15_out_1 = Select( main_Extract_7_out_1, main_Select_15_in_2, main_Select_15_in_3 ) [instance: 15, cache: 1]; // // node Select[17]: x = 215, y = 178, inputs = 3, label = Select // input[2]: defaulting = 0, visible = 0, type = 1, value = 13 // page group: CollectGrids // main_Select_17_out_1 = Select( main_Extract_7_out_1, main_Select_17_in_2, main_Select_17_in_3 ) [instance: 17, cache: 1]; // // node Select[16]: x = 274, y = 178, inputs = 3, label = Select // input[2]: defaulting = 0, visible = 1, type = 1, value = 9 // page group: CollectGrids // main_Select_16_out_1 = Select( main_Extract_7_out_1, main_Select_16_in_2, main_Select_16_in_3 ) [instance: 16, cache: 1]; // // node Compute[13]: x = 193, y = 300, inputs = 4, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "($1-$2)/($0-1)" // page group: CollectGrids // expression: value = (b-c)/(a-1) // name[2]: value = a // name[3]: value = b // name[4]: value = c // main_Compute_13_out_1 = Compute( main_Compute_13_in_1, main_Select_15_out_1, main_Select_17_out_1, main_Select_16_out_1 ) [instance: 13, cache: 1]; // // node Transmitter[16]: x = 188, y = 391, inputs = 1, label = xslope // page group: CollectGrids // xslope = main_Compute_13_out_1; // // node Receiver[14]: x = 111, y = 480, inputs = 1, label = xslope // page group: CollectGrids // main_Receiver_14_out_1[cache: 0] = xslope; // // node Transmitter[14]: x = 288, y = 298, inputs = 1, label = xlower // page group: CollectGrids // xlower = main_Select_16_out_1; // // node Receiver[15]: x = 178, y = 479, inputs = 1, label = xlower // page group: CollectGrids // main_Receiver_15_out_1[cache: 0] = xlower; // // node Compute[14]: x = 87, y = 576, inputs = 4, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0.x*$1+$2" // page group: CollectGrids // expression: value = a.x*b+c // name[2]: value = a // name[3]: value = b // name[4]: value = c // main_Compute_14_out_1 = Compute( main_Compute_14_in_1, main_Mark_1_out_1, main_Receiver_14_out_1, main_Receiver_15_out_1 ) [instance: 14, cache: 1]; // // node Unmark[1]: x = 108, y = 663, inputs = 2, label = Unmark // input[2]: defaulting = 0, visible = 1, type = 32, value = "positions" // page group: CollectGrids // main_Unmark_1_out_1 = Unmark( main_Compute_14_out_1, main_Unmark_1_in_2 ) [instance: 1, cache: 1]; // // node Plot[2]: x = 73, y = 816, inputs = 26, label = Plot // input[4]: defaulting = 1, visible = 1, type = 16777224, value = NULL // page group: CollectGrids // main_Plot_2_out_1 = Plot( main_Unmark_1_out_1, main_Plot_2_in_2, main_Plot_2_in_3, main_Plot_2_in_4, main_Plot_2_in_5, main_Plot_2_in_6, main_Plot_2_in_7, main_Plot_2_in_8, main_Plot_2_in_9, main_Plot_2_in_10, main_Plot_2_in_11, main_Plot_2_in_12, main_Plot_2_in_13, main_Plot_2_in_14, main_Plot_2_in_15, main_Plot_2_in_16, main_Plot_2_in_17, main_Plot_2_in_18, main_Plot_2_in_19, main_Plot_2_in_20, main_Plot_2_in_21, main_Plot_2_in_22, main_Plot_2_in_23, main_Plot_2_in_24, main_Plot_2_in_25, main_Plot_2_in_26 ) [instance: 2, cache: 1]; // // node Collect[1]: x = 284, y = 905, inputs = 3, label = Collect // page group: CollectGrids // main_Collect_1_out_1 = Collect( main_Plot_2_out_1, main_Collect_1_in_2, main_Collect_1_in_3 ) [instance: 1, cache: 1]; // // node Transmitter[13]: x = 297, y = 994, inputs = 1, label = Image // page group: CollectGrids // Image = main_Collect_1_out_1; // // node Receiver[13]: x = 166, y = 53, inputs = 1, label = Image // page group: RenderGrids // main_Receiver_13_out_1[cache: 0] = Image; // // node GetLocal[3]: x = 325, y = 56, inputs = 3, label = GetLocal // input[1]: defaulting = 0, visible = 1, type = 67108863, value = NULL // page group: RenderGrids // main_GetLocal_3_out_1, main_GetLocal_3_out_2 = GetLocal( main_GetLocal_3_in_1, main_GetLocal_3_in_2, main_GetLocal_3_in_3 ) [instance: 3, cache: 1]; // // node Collect[2]: x = 176, y = 205, inputs = 2, label = Collect // page group: RenderGrids // main_Collect_2_out_1 = Collect( main_Receiver_13_out_1, main_GetLocal_3_out_1 ) [instance: 2, cache: 1]; // // node Select[5]: x = 231, y = 362, inputs = 3, label = Select // page group: Grid Loop // main_Select_5_out_1 = Select( main_Receiver_2_out_1, main_ForEachN_2_out_1, main_Select_5_in_3 ) [instance: 5, cache: 1]; // // node Extract[5]: x = 242, y = 458, inputs = 2, label = Extract // page group: Grid Loop // main_Extract_5_out_1 = Extract( main_Select_5_out_1, main_Extract_5_in_2 ) [instance: 5, cache: 1]; // // node Select[6]: x = 245, y = 549, inputs = 3, label = Select // input[2]: defaulting = 0, visible = 0, type = 1, value = 3 // page group: Grid Loop // main_Select_6_out_1 = Select( main_Extract_5_out_1, main_Select_6_in_2, main_Select_6_in_3 ) [instance: 6, cache: 1]; // // node Compute[9]: x = 252, y = 662, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "int($0)" // page group: Grid Loop // expression: value = int(a) // name[2]: value = a // name[3]: value = b // main_Compute_9_out_1 = Compute( main_Compute_9_in_1, main_Select_6_out_1, main_Compute_9_in_3 ) [instance: 9, cache: 1]; // // node Compute[6]: x = 218, y = 859, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0+$1" // page group: Grid Loop // expression: value = a+b // name[2]: value = a // name[3]: value = b // main_Compute_6_out_1 = Compute( main_Compute_6_in_1, main_GetLocal_2_out_1, main_Compute_9_out_1 ) [instance: 6, cache: 1]; // // node Compute[7]: x = 365, y = 855, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0+$1-1" // page group: Grid Loop // expression: value = a+b-1 // name[2]: value = a // name[3]: value = b // main_Compute_7_out_1 = Compute( main_Compute_7_in_1, main_GetLocal_2_out_1, main_Compute_9_out_1 ) [instance: 7, cache: 1]; // // node Import[13]: x = 416, y = 463, inputs = 6, label = Import // input[1]: defaulting = 0, visible = 1, type = 32, value = "./out/global.hdf" // input[2]: defaulting = 0, visible = 1, type = 32, value = "1" // input[3]: defaulting = 0, visible = 1, type = 32, value = "hdf" // page group: CollectGrids // main_Import_13_out_1 = Import( main_Import_13_in_1, main_Import_13_in_2, main_Import_13_in_3, main_Import_13_in_4, main_Import_13_in_5, main_Import_13_in_6 ) [instance: 13, cache: 1]; // // node Extract[9]: x = 439, y = 558, inputs = 2, label = Extract // input[2]: defaulting = 1, visible = 1, type = 32, value = NULL // page group: CollectGrids // main_Extract_9_out_1 = Extract( main_Import_13_out_1, main_Extract_9_in_2 ) [instance: 9, cache: 1]; // // node Select[25]: x = 454, y = 647, inputs = 3, label = Select // input[2]: defaulting = 0, visible = 1, type = 1, value = 0 // page group: CollectGrids // main_Select_25_out_1 = Select( main_Extract_9_out_1, main_Select_25_in_2, main_Select_25_in_3 ) [instance: 25, cache: 1]; // // node Compute[22]: x = 444, y = 728, inputs = 2, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "float($0)" // page group: CollectGrids // expression: value = float(a) // name[2]: value = a // main_Compute_22_out_1 = Compute( main_Compute_22_in_1, main_Select_25_out_1 ) [instance: 22, cache: 1]; // // node Import[14]: x = 496, y = 465, inputs = 6, label = Import // input[1]: defaulting = 0, visible = 1, type = 32, value = "./out/global.hdf" // input[2]: defaulting = 0, visible = 1, type = 32, value = "2" // input[3]: defaulting = 0, visible = 1, type = 32, value = "hdf" // page group: CollectGrids // main_Import_14_out_1 = Import( main_Import_14_in_1, main_Import_14_in_2, main_Import_14_in_3, main_Import_14_in_4, main_Import_14_in_5, main_Import_14_in_6 ) [instance: 14, cache: 1]; // // node Extract[10]: x = 519, y = 557, inputs = 2, label = Extract // input[2]: defaulting = 1, visible = 1, type = 32, value = NULL // page group: CollectGrids // main_Extract_10_out_1 = Extract( main_Import_14_out_1, main_Extract_10_in_2 ) [instance: 10, cache: 1]; // // node Select[26]: x = 534, y = 641, inputs = 3, label = Select // input[2]: defaulting = 0, visible = 1, type = 1, value = 0 // page group: CollectGrids // main_Select_26_out_1 = Select( main_Extract_10_out_1, main_Select_26_in_2, main_Select_26_in_3 ) [instance: 26, cache: 1]; // // node Compute[23]: x = 524, y = 730, inputs = 2, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "float($0)" // page group: CollectGrids // expression: value = float(a) // name[2]: value = a // main_Compute_23_out_1 = Compute( main_Compute_23_in_1, main_Select_26_out_1 ) [instance: 23, cache: 1]; // // node Format[7]: x = 536, y = 217, inputs = 3, label = Format // input[1]: defaulting = 0, visible = 1, type = 32, value = "Processing frame nr. %d" // page group: Frame Info // main_Format_7_out_1 = Format( main_Format_7_in_1, main_Sequencer_1_out_1, main_Format_7_in_3 ) [instance: 7, cache: 1]; // // node Format[8]: x = 561, y = 356, inputs = 3, label = Format // input[1]: defaulting = 0, visible = 1, type = 32, value = "Processing grid nr. %d" // page group: Grid Loop // main_Format_8_out_1 = Format( main_Format_8_in_1, main_ForEachN_2_out_1, main_Format_8_in_3 ) [instance: 8, cache: 1]; // // node Receiver[8]: x = 517, y = 21, inputs = 1, label = FirstRecord // page group: ReadGridData // main_Receiver_8_out_1[cache: 0] = FirstRecord; // // node Transmitter[7]: x = 360, y = 1027, inputs = 1, label = LastRecord // page group: Grid Loop // LastRecord = main_Compute_7_out_1; // // node Receiver[9]: x = 604, y = 21, inputs = 1, label = LastRecord // page group: ReadGridData // main_Receiver_9_out_1[cache: 0] = LastRecord; // // node Format[12]: x = 583, y = 155, inputs = 3, label = Format // input[1]: defaulting = 0, visible = 1, type = 32, value = "Reading records %d to %d from HDF file" // page group: ReadGridData // main_Format_12_out_1 = Format( main_Format_12_in_1, main_Receiver_8_out_1, main_Receiver_9_out_1 ) [instance: 12, cache: 1]; // // node Image[2]: x = 167, y = 421, inputs = 49, label = Image // input[1]: defaulting = 0, visible = 0, type = 67108863, value = "Image_2" // input[4]: defaulting = 0, visible = 0, type = 1, value = 1 // input[5]: defaulting = 0, visible = 0, type = 8, value = [16 16 0] // input[6]: defaulting = 0, visible = 0, type = 8, value = [16 16 114.178] // input[7]: defaulting = 0, visible = 0, type = 5, value = 61.1879 // input[8]: defaulting = 0, visible = 0, type = 1, value = 559 // input[9]: defaulting = 0, visible = 0, type = 5, value = 0.863 // input[10]: defaulting = 0, visible = 0, type = 8, value = [0 1 0] // input[11]: defaulting = 1, visible = 0, type = 5, value = 30.0 // input[12]: defaulting = 0, visible = 0, type = 1, value = 0 // input[14]: defaulting = 0, visible = 0, type = 1, value = 1 // input[15]: defaulting = 1, visible = 0, type = 32, value = "none" // input[16]: defaulting = 1, visible = 0, type = 32, value = "none" // input[17]: defaulting = 1, visible = 0, type = 1, value = 1 // input[18]: defaulting = 1, visible = 0, type = 1, value = 1 // input[19]: defaulting = 0, visible = 0, type = 1, value = 0 // input[23]: defaulting = 0, visible = 0, type = 5, value = 0.2 // input[25]: defaulting = 0, visible = 0, type = 32, value = "/home/mitran/claw/bearclaw/examples/classicbear/2d/Advection/example1/anim.miff" // input[26]: defaulting = 0, visible = 0, type = 32, value = "miff" // input[29]: defaulting = 1, visible = 0, type = 3, value = 0 // page group: RenderGrids // depth: value = 24 // window: position = (0.0000,0.0000), size = 0.3581x0.4383 // internal caching: 1 // interaction mode = NONE // main_Image_2_out_1, main_Image_2_out_2, main_Image_2_out_3 = Image( main_Image_2_in_1, main_Collect_2_out_1, main_Image_2_in_3, main_Image_2_in_4, main_Image_2_in_5, main_Image_2_in_6, main_Image_2_in_7, main_Image_2_in_8, main_Image_2_in_9, main_Image_2_in_10, main_Image_2_in_11, main_Image_2_in_12, main_Image_2_in_13, main_Image_2_in_14, main_Image_2_in_15, main_Image_2_in_16, main_Image_2_in_17, main_Image_2_in_18, main_Image_2_in_19, main_Image_2_in_20, main_Image_2_in_21, main_Image_2_in_22, main_Image_2_in_23, main_Image_2_in_24, main_Image_2_in_25, main_Image_2_in_26, main_Image_2_in_27, main_Image_2_in_28, main_Image_2_in_29, main_Image_2_in_30, main_Image_2_in_31, main_Image_2_in_32, main_Image_2_in_33, main_Image_2_in_34, main_Image_2_in_35, main_Image_2_in_36, main_Image_2_in_37, main_Image_2_in_38, main_Image_2_in_39, main_Image_2_in_40, main_Image_2_in_41, main_Image_2_in_42, main_Image_2_in_43, main_Image_2_in_44, main_Image_2_in_45, main_Image_2_in_46, main_Image_2_in_47, main_Image_2_in_48, main_Image_2_in_49 ) [instance: 2, cache: 1]; // // node Message[2]: x = 560, y = 307, inputs = 3, label = Message // page group: Frame Info // Message( main_Format_7_out_1, main_Message_2_in_2, main_Message_2_in_3 ) [instance: 2, cache: 1]; // // node Message[3]: x = 585, y = 450, inputs = 3, label = Message // page group: Grid Loop // Message( main_Format_8_out_1, main_Message_3_in_2, main_Message_3_in_3 ) [instance: 3, cache: 1]; // // node Message[4]: x = 607, y = 244, inputs = 3, label = Message // page group: ReadGridData // Message( main_Format_12_out_1, main_Message_4_in_2, main_Message_4_in_3 ) [instance: 4, cache: 1]; // // node Receiver[7]: x = 422, y = 21, inputs = 1, label = LastRecord // page group: ReadGridData // main_Receiver_7_out_1[cache: 0] = LastRecord; // // node SetLocal[3]: x = 133, y = 951, inputs = 3, label = SetLocal // page group: Grid Loop // SetLocal( main_Compute_6_out_1, main_GetLocal_2_out_2, main_SetLocal_3_in_3 ) [instance: 3, cache: 1]; // // node SetLocal[4]: x = 326, y = 299, inputs = 3, label = SetLocal // page group: RenderGrids // SetLocal( main_Collect_2_out_1, main_GetLocal_3_out_2, main_SetLocal_4_in_3 ) [instance: 4, cache: 1]; // // node Transmitter[12]: x = 468, y = 263, inputs = 1, label = LastGrid // page group: Grid Loop // LastGrid = main_ForEachN_2_out_2; // // decorator Annotate pos=(518,201) size=137x44 style(Label), value = // annotation user_begin: 33 // annotation user: Loop over the // annotation user: grids in this frame // annotation user_end: // page group: Grid Loop // // decorator Annotate pos=(436,128) size=181x60 style(Label), value = // annotation user_begin: 62 // annotation user: Loop over the frames. // annotation user: Each frame corresponds // annotation user: to a time slice. // annotation user_end: // page group: Frame Info // // decorator Annotate pos=(109,289) size=164x44 style(Label), value = // annotation user_begin: 45 // annotation user: Form the grid info file // annotation user: name for this frame. // annotation user_end: // page group: Frame Info // // decorator Annotate pos=(356,291) size=168x44 style(Label), value = // annotation user_begin: 45 // annotation user: Form the grid data file // annotation user: name for this frame. // annotation user_end: // page group: Frame Info // // decorator Annotate pos=(652,259) size=139x76 style(Label), value = // annotation user_begin: 59 // annotation user: Output a log entry // annotation user: specifying current // annotation user: frame being // annotation user: processed // annotation user_end: // page group: Frame Info // // decorator Annotate pos=(263,462) size=212x44 style(Label), value = // annotation user_begin: 56 // annotation user: Send the name of the file // annotation user: containing the field variables // annotation user_end: // page group: Frame Info // // decorator Annotate pos=(23,564) size=152x44 style(Label), value = // annotation user_begin: 39 // annotation user: Send the group with // annotation user: frame and grid info // annotation user_end: // page group: Frame Info // // decorator Annotate pos=(23,373) size=168x44 style(Label), value = // annotation user_begin: 35 // annotation user: Select the current grid // annotation user: info record // annotation user_end: // page group: Grid Loop // // decorator Annotate pos=(21,464) size=134x76 style(Label), value = // annotation user_begin: 56 // annotation user: Extract the "data" // annotation user: component from // annotation user: the grid info // annotation user: "field". // annotation user_end: // page group: Grid Loop // // decorator Annotate pos=(20,555) size=186x76 style(Label), value = // annotation user_begin: 96 // annotation user: Select the fourth "data" // annotation user: component. This is the // annotation user: number of field variables // annotation user: defined on this grid. // annotation user_end: // page group: Grid Loop // // decorator Annotate pos=(454,749) size=146x60 style(Label), value = // annotation user_begin: 56 // annotation user: This updates the // annotation user: start/end values for // annotation user: the Import module. // annotation user_end: // page group: Grid Loop // // decorator Annotate pos=(367,29) size=265x28 style(Label), value = // annotation user_begin: 37 // annotation user: Get the number of grids in this frame // annotation user_end: // page group: Grid Loop // // decorator Annotate pos=(166,131) size=31x28 style(Label), value = // annotation user_begin: 2 // annotation user: mx // annotation user_end: // page group: CollectGrids // // decorator Annotate pos=(263,131) size=56x28 style(Label), value = // annotation user_begin: 6 // annotation user: xlower // annotation user_end: // page group: CollectGrids // // decorator Annotate pos=(203,130) size=60x28 style(Label), value = // annotation user_begin: 6 // annotation user: xupper // annotation user_end: // page group: CollectGrids // // decorator Annotate pos=(459,35) size=136x44 style(Label), value = // annotation user_begin: 24 // annotation user: Get the number of // annotation user: frames // annotation user_end: // page group: Frame Info // network: end of macro body CacheScene(main_Image_2_in_1, main_Image_2_out_1, main_Image_2_out_2); } main_Compute_19_in_1 = "0"; main_Compute_19_out_1 = NULL; main_Import_12_in_1 = "./out/global.hdf"; main_Import_12_in_2 = "0"; main_Import_12_in_3 = "hdf"; main_Import_12_in_4 = NULL; main_Import_12_in_5 = NULL; main_Import_12_in_6 = NULL; main_Import_12_out_1 = NULL; main_Extract_8_in_2 = NULL; main_Extract_8_out_1 = NULL; main_Select_21_in_2 = 0; main_Select_21_in_3 = NULL; main_Select_21_out_1 = NULL; main_Compute_18_in_1 = "int($0)"; main_Compute_18_out_1 = NULL; main_Sequencer_1_in_1 = "Sequencer_1"; main_Sequencer_1_in_2 = NULL; main_Sequencer_1_in_3 = NULL; main_Sequencer_1_in_6 = NULL; main_Sequencer_1_in_7 = { 0 10 1 0 10 1 }; main_Sequencer_1_out_1 = NULL; @startframe = 0; @nextframe = @startframe; @endframe = 10; @deltaframe = 1; main_Format_10_in_1 = "./out/q%5.5d.hdf"; main_Format_10_in_3 = NULL; main_Format_10_out_1 = NULL; main_Transmitter_5_out_1 = NULL; main_Receiver_5_out_1 = NULL; main_GetLocal_2_in_1 = 0; main_GetLocal_2_in_2 = NULL; main_GetLocal_2_in_3 = NULL; main_GetLocal_2_out_1 = NULL; main_GetLocal_2_out_2 = NULL; main_Transmitter_6_out_1 = NULL; main_Receiver_6_out_1 = NULL; main_Format_13_in_1 = "%d"; main_Format_13_in_3 = NULL; main_Format_13_out_1 = NULL; main_Import_8_in_3 = NULL; main_Import_8_in_4 = NULL; main_Import_8_in_5 = NULL; main_Import_8_in_6 = NULL; main_Import_8_out_1 = NULL; main_Transmitter_1_out_1 = NULL; main_Receiver_10_out_1 = NULL; main_Mark_1_in_2 = "positions"; main_Mark_1_out_1 = NULL; main_Format_11_in_1 = "./out/t%5.5d.hdf"; main_Format_11_in_3 = NULL; main_Format_11_out_1 = NULL; main_Import_7_in_2 = NULL; main_Import_7_in_3 = "hdf"; main_Import_7_in_4 = NULL; main_Import_7_in_5 = NULL; main_Import_7_in_6 = NULL; main_Import_7_out_1 = NULL; main_Transmitter_2_out_1 = NULL; main_Receiver_2_out_1 = NULL; main_Select_7_in_2 = 0; main_Select_7_in_3 = NULL; main_Select_7_out_1 = NULL; main_Extract_6_in_2 = NULL; main_Extract_6_out_1 = NULL; main_Select_8_in_2 = 0; main_Select_8_in_3 = NULL; main_Select_8_out_1 = NULL; main_Compute_8_in_1 = "int($0)"; main_Compute_8_in_3 = NULL; main_Compute_8_out_1 = NULL; main_ForEachN_2_in_1 = 1; main_ForEachN_2_in_3 = NULL; main_ForEachN_2_out_1 = NULL; main_ForEachN_2_out_2 = NULL; main_Select_9_in_3 = NULL; main_Select_9_out_1 = NULL; main_Transmitter_8_out_1 = NULL; main_Receiver_11_out_1 = NULL; main_Extract_7_in_2 = NULL; main_Extract_7_out_1 = NULL; main_Select_15_in_2 = 5; main_Select_15_in_3 = NULL; main_Select_15_out_1 = NULL; main_Select_17_in_2 = 13; main_Select_17_in_3 = NULL; main_Select_17_out_1 = NULL; main_Select_16_in_2 = 9; main_Select_16_in_3 = NULL; main_Select_16_out_1 = NULL; main_Compute_13_in_1 = "($1-$2)/($0-1)"; main_Compute_13_out_1 = NULL; main_Transmitter_16_out_1 = NULL; main_Receiver_14_out_1 = NULL; main_Transmitter_14_out_1 = NULL; main_Receiver_15_out_1 = NULL; main_Compute_14_in_1 = "$0.x*$1+$2"; main_Compute_14_out_1 = NULL; main_Unmark_1_in_2 = "positions"; main_Unmark_1_out_1 = NULL; main_Plot_2_in_2 = NULL; main_Plot_2_in_3 = NULL; main_Plot_2_in_4 = NULL; main_Plot_2_in_5 = NULL; main_Plot_2_in_6 = NULL; main_Plot_2_in_7 = NULL; main_Plot_2_in_8 = NULL; main_Plot_2_in_9 = NULL; main_Plot_2_in_10 = NULL; main_Plot_2_in_11 = NULL; main_Plot_2_in_12 = NULL; main_Plot_2_in_13 = NULL; main_Plot_2_in_14 = NULL; main_Plot_2_in_15 = NULL; main_Plot_2_in_16 = NULL; main_Plot_2_in_17 = NULL; main_Plot_2_in_18 = NULL; main_Plot_2_in_19 = NULL; main_Plot_2_in_20 = NULL; main_Plot_2_in_21 = NULL; main_Plot_2_in_22 = NULL; main_Plot_2_in_23 = NULL; main_Plot_2_in_24 = NULL; main_Plot_2_in_25 = NULL; main_Plot_2_in_26 = NULL; main_Plot_2_out_1 = NULL; main_Collect_1_in_2 = NULL; main_Collect_1_in_3 = NULL; main_Collect_1_out_1 = NULL; main_Transmitter_13_out_1 = NULL; main_Receiver_13_out_1 = NULL; main_GetLocal_3_in_1 = NULL; main_GetLocal_3_in_2 = NULL; main_GetLocal_3_in_3 = NULL; main_GetLocal_3_out_1 = NULL; main_GetLocal_3_out_2 = NULL; main_Collect_2_out_1 = NULL; main_Select_5_in_3 = NULL; main_Select_5_out_1 = NULL; main_Extract_5_in_2 = NULL; main_Extract_5_out_1 = NULL; main_Select_6_in_2 = 3; main_Select_6_in_3 = NULL; main_Select_6_out_1 = NULL; main_Compute_9_in_1 = "int($0)"; main_Compute_9_in_3 = NULL; main_Compute_9_out_1 = NULL; main_Compute_6_in_1 = "$0+$1"; main_Compute_6_out_1 = NULL; main_Compute_7_in_1 = "$0+$1-1"; main_Compute_7_out_1 = NULL; main_Import_13_in_1 = "./out/global.hdf"; main_Import_13_in_2 = "1"; main_Import_13_in_3 = "hdf"; main_Import_13_in_4 = NULL; main_Import_13_in_5 = NULL; main_Import_13_in_6 = NULL; main_Import_13_out_1 = NULL; main_Extract_9_in_2 = NULL; main_Extract_9_out_1 = NULL; main_Select_25_in_2 = 0; main_Select_25_in_3 = NULL; main_Select_25_out_1 = NULL; main_Compute_22_in_1 = "float($0)"; main_Import_14_in_1 = "./out/global.hdf"; main_Import_14_in_2 = "2"; main_Import_14_in_3 = "hdf"; main_Import_14_in_4 = NULL; main_Import_14_in_5 = NULL; main_Import_14_in_6 = NULL; main_Import_14_out_1 = NULL; main_Extract_10_in_2 = NULL; main_Extract_10_out_1 = NULL; main_Select_26_in_2 = 0; main_Select_26_in_3 = NULL; main_Select_26_out_1 = NULL; main_Compute_23_in_1 = "float($0)"; main_Format_7_in_1 = "Processing frame nr. %d"; main_Format_7_in_3 = NULL; main_Format_7_out_1 = NULL; main_Format_8_in_1 = "Processing grid nr. %d"; main_Format_8_in_3 = NULL; main_Format_8_out_1 = NULL; main_Receiver_8_out_1 = NULL; main_Transmitter_7_out_1 = NULL; main_Receiver_9_out_1 = NULL; main_Format_12_in_1 = "Reading records %d to %d from HDF file"; main_Format_12_out_1 = NULL; macro Image( id, object, where, useVector, to, from, width, resolution, aspect, up, viewAngle, perspective, options, buttonState = 1, buttonUpApprox = "none", buttonDownApprox = "none", buttonUpDensity = 1, buttonDownDensity = 1, renderMode = 0, defaultCamera, reset, backgroundColor, throttle, RECenable = 0, RECfile, RECformat, RECresolution, RECaspect, AAenable = 0, AAlabels, AAticks, AAcorners, AAframe, AAadjust, AAcursor, AAgrid, AAcolors, AAannotation, AAlabelscale, AAfont, interactionMode, title, AAxTickLocs, AAyTickLocs, AAzTickLocs, AAxTickLabels, AAyTickLabels, AAzTickLabels, webOptions) -> ( object, camera, where) { ImageMessage( id, backgroundColor, throttle, RECenable, RECfile, RECformat, RECresolution, RECaspect, AAenable, AAlabels, AAticks, AAcorners, AAframe, AAadjust, AAcursor, AAgrid, AAcolors, AAannotation, AAlabelscale, AAfont, AAxTickLocs, AAyTickLocs, AAzTickLocs, AAxTickLabels, AAyTickLabels, AAzTickLabels, interactionMode, title, renderMode, buttonUpApprox, buttonDownApprox, buttonUpDensity, buttonDownDensity) [instance: 1, cache: 1]; autoCamera = AutoCamera( object, "front", object, resolution, aspect, [0,1,0], perspective, viewAngle, backgroundColor) [instance: 1, cache: 1]; realCamera = Camera( to, from, width, resolution, aspect, up, perspective, viewAngle, backgroundColor) [instance: 1, cache: 1]; coloredDefaultCamera = UpdateCamera(defaultCamera, background=backgroundColor) [instance: 1, cache: 1]; nullDefaultCamera = Inquire(defaultCamera, "is null + 1") [instance: 1, cache: 1]; resetCamera = Switch( nullDefaultCamera, coloredDefaultCamera, autoCamera) [instance: 1, cache: 1]; resetNull = Inquire( reset, "is null + 1") [instance: 2, cache: 1]; reset = Switch( resetNull, reset, 0) [instance: 2, cache: 1]; whichCamera = Compute( "($0 != 0 || $1 == 0) ? 1 : 2", reset, useVector) [instance: 1, cache: 1]; camera = Switch( whichCamera, resetCamera, realCamera) [instance: 3, cache: 1]; AAobject = AutoAxes( object, camera, AAlabels, AAticks, AAcorners, AAframe, AAadjust, AAcursor, AAgrid, AAcolors, AAannotation, AAlabelscale, AAfont, AAxTickLocs, AAyTickLocs, AAzTickLocs, AAxTickLabels, AAyTickLabels, AAzTickLabels) [instance: 1, cache: 1]; switchAAenable = Compute("$0+1", AAenable) [instance: 2, cache: 1]; object = Switch( switchAAenable, object, AAobject) [instance:4, cache: 1]; SWapproximation_options = Switch( buttonState, buttonUpApprox, buttonDownApprox) [instance: 5, cache: 1]; SWdensity_options = Switch( buttonState, buttonUpDensity, buttonDownDensity) [instance: 6, cache: 1]; HWapproximation_options = Format( "%s,%s", buttonDownApprox, buttonUpApprox) [instance: 1, cache: 1]; HWdensity_options = Format( "%d,%d", buttonDownDensity, buttonUpDensity) [instance: 2, cache: 1]; switchRenderMode = Compute( "$0+1", renderMode) [instance: 3, cache: 1]; approximation_options = Switch( switchRenderMode, SWapproximation_options, HWapproximation_options) [instance: 7, cache: 1]; density_options = Switch( switchRenderMode, SWdensity_options, HWdensity_options) [instance: 8, cache: 1]; renderModeString = Switch( switchRenderMode, "software", "hardware")[instance: 9, cache: 1]; object_tag = Inquire( object, "object tag")[instance: 3, cache: 1]; annoted_object = Options( object, "send boxes", 0, "cache", 1, "object tag", object_tag, "ddcamera", whichCamera, "rendering approximation", approximation_options, "render every", density_options, "button state", buttonState, "rendering mode", renderModeString) [instance: 1, cache: 1]; RECresNull = Inquire( RECresolution, "is null + 1") [instance: 4, cache: 1]; ImageResolution = Inquire( camera, "camera resolution") [instance: 5, cache: 1]; RECresolution = Switch( RECresNull, RECresolution, ImageResolution) [instance: 10, cache: 1]; RECaspectNull = Inquire( RECaspect, "is null + 1") [instance: 6, cache: 1]; ImageAspect = Inquire( camera, "camera aspect") [instance: 7, cache: 1]; RECaspect = Switch( RECaspectNull, RECaspect, ImageAspect) [instance: 11, cache: 1]; switchRECenable = Compute( "$0 == 0 ? 1 : (($2 == $3) && ($4 == $5)) ? ($1 == 1 ? 2 : 3) : 4", RECenable, switchRenderMode, RECresolution, ImageResolution, RECaspect, ImageAspect) [instance: 4, cache: 1]; NoRECobject, RECNoRerenderObject, RECNoRerHW, RECRerenderObject = Route(switchRECenable, annoted_object); Display( NoRECobject, camera, where, throttle) [instance: 1, cache: 1]; image = Render( RECNoRerenderObject, camera) [instance: 1, cache: 1]; Display( image, NULL, where, throttle) [instance: 2, cache: 1]; WriteImage( image, RECfile, RECformat) [instance: 1, cache: 1]; rec_where = Display( RECNoRerHW, camera, where, throttle) [instance: 1, cache: 0]; rec_image = ReadImageWindow( rec_where) [instance: 1, cache: 1]; WriteImage( rec_image, RECfile, RECformat) [instance: 1, cache: 1]; RECupdateCamera = UpdateCamera( camera, resolution=RECresolution, aspect=RECaspect) [instance: 2, cache: 1]; Display( RECRerenderObject, camera, where, throttle) [instance: 1, cache: 1]; RECRerenderObject = ScaleScreen( RECRerenderObject, NULL, RECresolution, camera) [instance: 1, cache: 1]; image = Render( RECRerenderObject, RECupdateCamera) [instance: 2, cache: 1]; WriteImage( image, RECfile, RECformat) [instance: 2, cache: 1]; } main_Image_2_in_1 = "Image_2"; main_Image_2_in_3 = "X24,,"; main_Image_2_in_4 = 1; main_Image_2_in_5 = [16 16 0]; main_Image_2_in_6 = [16 16 114.178]; main_Image_2_in_7 = 61.1879; main_Image_2_in_8 = 559; main_Image_2_in_9 = 0.863; main_Image_2_in_10 = [0 1 0]; main_Image_2_in_11 = NULL; main_Image_2_in_12 = 0; main_Image_2_in_13 = NULL; main_Image_2_in_14 = 1; main_Image_2_in_15 = NULL; main_Image_2_in_16 = NULL; main_Image_2_in_17 = NULL; main_Image_2_in_18 = NULL; main_Image_2_in_19 = 0; main_Image_2_in_20 = NULL; main_Image_2_in_21 = NULL; main_Image_2_in_22 = NULL; main_Image_2_in_23 = 0.2; main_Image_2_in_25 = "/home/mitran/claw/bearclaw/examples/classicbear/2d/Advection/example1/anim.miff"; main_Image_2_in_26 = "miff"; main_Image_2_in_27 = NULL; main_Image_2_in_28 = NULL; main_Image_2_in_29 = NULL; main_Image_2_in_30 = NULL; main_Image_2_in_31 = NULL; main_Image_2_in_32 = NULL; main_Image_2_in_33 = NULL; main_Image_2_in_34 = NULL; main_Image_2_in_35 = NULL; main_Image_2_in_36 = NULL; main_Image_2_in_37 = NULL; main_Image_2_in_38 = NULL; main_Image_2_in_39 = NULL; main_Image_2_in_40 = NULL; main_Image_2_in_41 = NULL; main_Image_2_in_42 = NULL; main_Image_2_in_43 = NULL; main_Image_2_in_44 = NULL; main_Image_2_in_45 = NULL; main_Image_2_in_46 = NULL; main_Image_2_in_47 = NULL; main_Image_2_in_48 = NULL; main_Image_2_in_49 = NULL; main_Message_2_in_2 = NULL; main_Message_2_in_3 = NULL; main_Message_3_in_2 = NULL; main_Message_3_in_3 = NULL; main_Message_4_in_2 = NULL; main_Message_4_in_3 = NULL; main_SetLocal_3_in_3 = NULL; main_SetLocal_4_in_3 = NULL; Executive("product version 4 1 3"); $sync sequence main(); play;