Skip to content

Commit

Permalink
Replaced fs_allocate by fs_allocate_array in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Hovy committed Dec 13, 2017
1 parent 7b256ad commit e8cf40d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions templates/icon_standalone/replay.test.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PROGRAM ftg_${subroutine.name}_test

USE ${module.name}, ONLY: ${subroutine.name}, ftg_${subroutine.name}_capture_input_enabled, ftg_${subroutine.name}_capture_output_enabled, ftg_${subroutine.name}_capture_round, ftg_${subroutine.name}_output_dir

USE m_serialize, ONLY: t_serializer, t_savepoint, fs_create_serializer, fs_create_savepoint, fs_destroy_serializer, fs_destroy_savepoint, fs_get_field_bounds, fs_read_field, fs_write_field, fs_allocate, fs_field_exists, fs_print_debuginfo
USE m_serialize, ONLY: t_serializer, t_savepoint, fs_create_serializer, fs_create_savepoint, fs_destroy_serializer, fs_destroy_savepoint, fs_get_field_bounds, fs_read_field, fs_write_field, fs_allocate_array, fs_field_exists, fs_print_debuginfo

${globals.imports}

Expand Down Expand Up @@ -92,7 +92,7 @@ CONTAINS
! BASIC ARGUMENTS
#for $argument in $arguments.all.basic
#if $isArray($argument)
CALL fs_allocate(serializer, "$argument", $argument)
CALL fs_allocate_array(serializer, "$argument", $argument)
#end if
CALL fs_read_field(serializer, savepoint, "$argument", $argument)
#end for
Expand All @@ -101,7 +101,7 @@ CONTAINS
#for $argument in $arguments.all.optional
IF (PRESENT($argument)) THEN
#if $isArray($argument)
CALL fs_allocate(serializer, "$argument", $argument)
CALL fs_allocate_array(serializer, "$argument", $argument)
#end if
CALL fs_read_field(serializer, savepoint, "$argument", $argument)
END IF
Expand Down Expand Up @@ -143,7 +143,7 @@ END PROGRAM ftg_${subroutine.name}_test
#end if
#end for
#if $needsAllocation($var)
CALL fs_allocate(serializer, "$var", $var)
CALL fs_allocate_array(serializer, "$var", $var)
#end if
CALL fs_read_field(serializer, savepoint, "$var", $var)
#else
Expand Down Expand Up @@ -184,7 +184,7 @@ END PROGRAM ftg_${subroutine.name}_test
#end for
$writeVarNameWithFilledIndicesToString($var, "ftg_c", $mandDims, "ftg_d1", "ftg_d2", "ftg_d3", "ftg_d4")
#set $filled = $fillIndices($var, $mandDims, "ftg_d1", "ftg_d2", "ftg_d3", "ftg_d4")
CALL fs_allocate(serializer, ftg_c, $filled)
CALL fs_allocate_array(serializer, ftg_c, $filled)
CALL fs_read_field(serializer, savepoint, ftg_c, $filled)
#for $d in range(1, $getNumberOfMandatoryDimensions($var) + 1)
END DO
Expand Down
10 changes: 5 additions & 5 deletions templates/icon_testbed/replay.test.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ MODULE mo_ftg_${subroutine.name}_test

USE ${module.name}, ONLY: ${subroutine.name}, ftg_${subroutine.name}_capture_input_enabled, ftg_${subroutine.name}_capture_output_enabled, ftg_${subroutine.name}_capture_round, ftg_${subroutine.name}_output_dir

USE m_serialize, ONLY: t_serializer, t_savepoint, fs_create_serializer, fs_create_savepoint, fs_destroy_serializer, fs_destroy_savepoint, fs_get_field_bounds, fs_read_field, fs_write_field, fs_allocate, fs_field_exists, fs_print_debuginfo
USE m_serialize, ONLY: t_serializer, t_savepoint, fs_create_serializer, fs_create_savepoint, fs_destroy_serializer, fs_destroy_savepoint, fs_get_field_bounds, fs_read_field, fs_write_field, fs_allocate_array, fs_field_exists, fs_print_debuginfo

${globals.imports}

Expand Down Expand Up @@ -85,7 +85,7 @@ CONTAINS
! BASIC ARGUMENTS
#for $argument in $arguments.all.basic
#if $isArray($argument)
CALL fs_allocate(serializer, "$argument", $argument)
CALL fs_allocate_array(serializer, "$argument", $argument)
#end if
CALL fs_read_field(serializer, savepoint, "$argument", $argument)
#end for
Expand All @@ -94,7 +94,7 @@ CONTAINS
#for $argument in $arguments.all.optional
IF (PRESENT($argument)) THEN
#if $isArray($argument)
CALL fs_allocate(serializer, "$argument", $argument)
CALL fs_allocate_array(serializer, "$argument", $argument)
#end if
CALL fs_read_field(serializer, savepoint, "$argument", $argument)
END IF
Expand Down Expand Up @@ -137,7 +137,7 @@ END MODULE mo_ftg_${subroutine.name}_test
#end if
#end for
#if $needsAllocation($var)
CALL fs_allocate(serializer, "$var", $var)
CALL fs_allocate_array(serializer, "$var", $var)
#end if
CALL fs_read_field(serializer, savepoint, "$var", $var)
#else
Expand Down Expand Up @@ -178,7 +178,7 @@ END MODULE mo_ftg_${subroutine.name}_test
#end for
$writeVarNameWithFilledIndicesToString($var, "ftg_c", $mandDims, "ftg_d1", "ftg_d2", "ftg_d3", "ftg_d4")
#set $filled = $fillIndices($var, $mandDims, "ftg_d1", "ftg_d2", "ftg_d3", "ftg_d4")
CALL fs_allocate(serializer, ftg_c, $filled)
CALL fs_allocate_array(serializer, ftg_c, $filled)
CALL fs_read_field(serializer, savepoint, ftg_c, $filled)
#for $d in range(1, $getNumberOfMandatoryDimensions($var) + 1)
END DO
Expand Down
10 changes: 5 additions & 5 deletions templates/standalone/replay.test.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PROGRAM ftg_${subroutine.name}_test

USE ${module.name}, ONLY: ${subroutine.name}, ftg_${subroutine.name}_capture_input_enabled, ftg_${subroutine.name}_capture_output_enabled, ftg_${subroutine.name}_capture_round, ftg_${subroutine.name}_output_dir

USE m_serialize, ONLY: t_serializer, t_savepoint, fs_create_serializer, fs_create_savepoint, fs_destroy_serializer, fs_destroy_savepoint, fs_get_field_bounds, fs_read_field, fs_write_field, fs_allocate, fs_field_exists, fs_print_debuginfo
USE m_serialize, ONLY: t_serializer, t_savepoint, fs_create_serializer, fs_create_savepoint, fs_destroy_serializer, fs_destroy_savepoint, fs_get_field_bounds, fs_read_field, fs_write_field, fs_allocate_array, fs_field_exists, fs_print_debuginfo

${globals.imports}

Expand Down Expand Up @@ -90,7 +90,7 @@ CONTAINS
! BASIC ARGUMENTS
#for $argument in $arguments.all.basic
#if $isArray($argument)
CALL fs_allocate(serializer, "$argument", $argument)
CALL fs_allocate_array(serializer, "$argument", $argument)
#end if
CALL fs_read_field(serializer, savepoint, "$argument", $argument)
#end for
Expand All @@ -99,7 +99,7 @@ CONTAINS
#for $argument in $arguments.all.optional
IF (PRESENT($argument)) THEN
#if $isArray($argument)
CALL fs_allocate(serializer, "$argument", $argument)
CALL fs_allocate_array(serializer, "$argument", $argument)
#end if
CALL fs_read_field(serializer, savepoint, "$argument", $argument)
END IF
Expand Down Expand Up @@ -141,7 +141,7 @@ END PROGRAM ftg_${subroutine.name}_test
#end if
#end for
#if $needsAllocation($var)
CALL fs_allocate(serializer, "$var", $var)
CALL fs_allocate_array(serializer, "$var", $var)
#end if
CALL fs_read_field(serializer, savepoint, "$var", $var)
#else
Expand Down Expand Up @@ -182,7 +182,7 @@ END PROGRAM ftg_${subroutine.name}_test
#end for
$writeVarNameWithFilledIndicesToString($var, "ftg_c", $mandDims, "ftg_d1", "ftg_d2", "ftg_d3", "ftg_d4")
#set $filled = $fillIndices($var, $mandDims, "ftg_d1", "ftg_d2", "ftg_d3", "ftg_d4")
CALL fs_allocate(serializer, ftg_c, $filled)
CALL fs_allocate_array(serializer, ftg_c, $filled)
CALL fs_read_field(serializer, savepoint, ftg_c, $filled)
#for $d in range(1, $getNumberOfMandatoryDimensions($var) + 1)
END DO
Expand Down
10 changes: 5 additions & 5 deletions templates/standalone_nompi/replay.test.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PROGRAM ftg_${subroutine.name}_test

USE ${module.name}, ONLY: ${subroutine.name}, ftg_${subroutine.name}_capture_input_enabled, ftg_${subroutine.name}_capture_output_enabled, ftg_${subroutine.name}_capture_round, ftg_${subroutine.name}_output_dir

USE m_serialize, ONLY: t_serializer, t_savepoint, fs_create_serializer, fs_create_savepoint, fs_destroy_serializer, fs_destroy_savepoint, fs_get_field_bounds, fs_read_field, fs_write_field, fs_allocate, fs_field_exists, fs_print_debuginfo
USE m_serialize, ONLY: t_serializer, t_savepoint, fs_create_serializer, fs_create_savepoint, fs_destroy_serializer, fs_destroy_savepoint, fs_get_field_bounds, fs_read_field, fs_write_field, fs_allocate_array, fs_field_exists, fs_print_debuginfo

${globals.imports}

Expand Down Expand Up @@ -78,7 +78,7 @@ CONTAINS
! BASIC ARGUMENTS
#for $argument in $arguments.all.basic
#if $isArray($argument)
CALL fs_allocate(serializer, "$argument", $argument)
CALL fs_allocate_array(serializer, "$argument", $argument)
#end if
CALL fs_read_field(serializer, savepoint, "$argument", $argument)
#end for
Expand All @@ -87,7 +87,7 @@ CONTAINS
#for $argument in $arguments.all.optional
IF (PRESENT($argument)) THEN
#if $isArray($argument)
CALL fs_allocate(serializer, "$argument", $argument)
CALL fs_allocate_array(serializer, "$argument", $argument)
#end if
CALL fs_read_field(serializer, savepoint, "$argument", $argument)
END IF
Expand Down Expand Up @@ -129,7 +129,7 @@ END PROGRAM ftg_${subroutine.name}_test
#end if
#end for
#if $needsAllocation($var)
CALL fs_allocate(serializer, "$var", $var)
CALL fs_allocate_array(serializer, "$var", $var)
#end if
CALL fs_read_field(serializer, savepoint, "$var", $var)
#else
Expand Down Expand Up @@ -170,7 +170,7 @@ END PROGRAM ftg_${subroutine.name}_test
#end for
$writeVarNameWithFilledIndicesToString($var, "ftg_c", $mandDims, "ftg_d1", "ftg_d2", "ftg_d3", "ftg_d4")
#set $filled = $fillIndices($var, $mandDims, "ftg_d1", "ftg_d2", "ftg_d3", "ftg_d4")
CALL fs_allocate(serializer, ftg_c, $filled)
CALL fs_allocate_array(serializer, ftg_c, $filled)
CALL fs_read_field(serializer, savepoint, ftg_c, $filled)
#for $d in range(1, $getNumberOfMandatoryDimensions($var) + 1)
END DO
Expand Down

0 comments on commit e8cf40d

Please sign in to comment.