CGNS Extensions

Reno, 2002

Introduction

Links

Example of creating a link

Chart illustrating two CGNS files with a link between them

While you are in file 1:

   filename='file 2'
   name_in_file='GridBase/Zone 1/GridCoordinates'
   call cg_goto_f(index,ibase,ier,'Zone_t',1,'end')
   call cg_link_write_f('GridCoordinates',filename,name_in_file,ier)

User-defined data

Example of writing user-defined data

   real*8 data1(3)
   real*4 data2(3,3)
   call cg_goto_f(index,ibase,ier,...,'end')
   call cg_user_data_write_f('Extra',index,ier)
   call cg_goto_f(index,ibase,ier,...,'UserDefinedData_t',index,'end')
   call cg_array_write_f('MyData1',RealDouble,1,3,data1,ier)
   indx(1)=3
   indx(2)=3
   call cg_array_write_f('MyData2',RealSingle,2,indx,data2,ier)

Chemistry & species