62 INTEGER :: gridlevel, ireg
63 TYPE(t_region
) :: region
64 CHARACTER(CHRLEN) :: wins, winv
65 CHARACTER(CHRLEN) :: fname
76 global => region%global
79 'PREP_GenxWriteSolution.F90' )
83 write_attr = com_get_function_handle(
'OUT.write_attribute')
84 set_option = com_get_function_handle(
'OUT.set_option')
89 CALL com_call_function(
set_option, 2,
'mode',
'w')
93 CALL com_call_function(
set_option, 2,
'rankwidth',
'0')
97 vol_all = com_get_attribute_handle( trim(winv)//
'.all')
99 WRITE(fname,
'(A,I5.5)')
'../Rocin/fluid_',ireg
100 CALL com_call_function(
write_attr, 4, trim(fname), vol_all, &
101 "fluid",
"00.000000")
105 surf_all = com_get_attribute_handle( trim(wins)//
'.all')
107 WRITE(fname,
'(A,I5.5)')
'../Rocin/ifluid_',ireg
108 CALL com_call_function(
write_attr, 4, trim(fname), surf_all, &
109 "ifluid",
"00.000000")
113 CALL com_delete_window( trim(winv))
114 CALL com_delete_window( trim(wins))
118 DEALLOCATE( region%levels(gridlevel)%grid%xyz,stat=errflg )
119 global%error = errflg
120 IF (global%error /= 0) CALL
errorstop( global,err_deallocate,__line__ )
122 DEALLOCATE( region%levels(gridlevel)%mixt%cv,stat=errflg )
123 global%error = errflg
124 IF (global%error /= 0) CALL
errorstop( global,err_deallocate,__line__ )
126 DO ipatch=1,region%nPatches
127 DEALLOCATE( region%levels(gridlevel)%patches(ipatch)%surfCoord,stat=errflg )
128 global%error = errflg
129 IF (global%error /= 0) CALL
errorstop( global,err_deallocate,__line__ )
131 DEALLOCATE( region%levels(gridlevel)%patches(ipatch)%bcFlag,stat=errflg )
132 global%error = errflg
133 IF (global%error /= 0) CALL
errorstop( global,err_deallocate,__line__ )
void set_option(const char *option_name, const char *option_val)
Set an option for Rocout, such as controlling the output format.
subroutine registerfunction(global, funName, fileName)
subroutine genxwriterocinout(global)
static void write_attr(std::ostream &os, const COM::Attribute *attr, int i)
subroutine genxwritesolution(gridLevel, iReg, region, wins, winv)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)