47 class(*),
pointer :: raw_data, raw_id
49 call dummy_netcdf_reset()
50 call define_velocity_variable(1, 10, field_name=
"A",field_id=id)
51 call assert_equals(1, id)
52 raw_data => c_get(variable_data,
"A")
53 raw_id => c_get(variable_ids,
"A")
55 type is (integer_array_wrapper_type)
56 call assert_equals(id, conv_to_integer(raw_id, .false.))
57 call assert_equals(1, raw_data%size,
"Size expected")
58 call assert_equals(10, raw_data%data(1),
"Dimension correct")
60 call define_velocity_variable(1, 11, 20, field_name=
"B",field_id=id)
61 call assert_equals(2, id)
62 raw_data => c_get(variable_data,
"B")
63 raw_id => c_get(variable_ids,
"B")
65 type is (integer_array_wrapper_type)
66 call assert_equals(id, conv_to_integer(raw_id, .false.))
67 call assert_equals(2, raw_data%size,
"Size expected")
68 call assert_equals(11, raw_data%data(1),
"Dimension correct")
69 call assert_equals(20, raw_data%data(2),
"Dimension correct")
71 call define_velocity_variable(1, 11, 21, 30, field_name=
"C",field_id=id)
72 call assert_equals(3, id)
73 raw_data => c_get(variable_data,
"C")
74 raw_id => c_get(variable_ids,
"C")
76 type is (integer_array_wrapper_type)
77 call assert_equals(id, conv_to_integer(raw_id, .false.))
78 call assert_equals(3, raw_data%size,
"Size expected")
79 call assert_equals(11, raw_data%data(1),
"Dimension correct")
80 call assert_equals(21, raw_data%data(2),
"Dimension correct")
81 call assert_equals(30, raw_data%data(3),
"Dimension correct")