Sample program to demostrate the alchimia module with vol7d.
7 USE vol7d_alchimia_class
12 type(fndsv) :: vfn,vfnoracle
13 character(len=10),
allocatable:: mybout(:)
14 type(vol7d_dballe) :: myin,myout
15 character(len=255) :: filenamein,filenameout
17 TYPE(l4f_handle) :: category
19 CHARACTER(len=512):: a_name
22 call l4f_launcher(a_name)
28 category=l4f_category_get_handle(a_name)
32 mybout = [
character(len=10) ::
"B12192"]
33 filenamein=
"../data/example_temp.bufr" 34 filenameout=
"../data/tp.bufr" 36 call register_termo(vfn)
38 call init(myin,filename=filenamein, file=.true., categoryappend=
"input")
39 call init(myout,filename=filenameout, file=.true., write=.true., wipe=.true., categoryappend=
"output",template=
"generic")
46 if (alchemy(myin%vol7d,vfn,mybout,myout%vol7d,
copy=.true.,vfnoracle=vfnoracle) /= 0 )
then 47 print*,
"I cannot make ",mybout
49 if (.not. shoppinglist(mybout,vfn,vfnoracle))
then 50 print*,
" error shoppinglist" 53 call display(compile_sl(vfnoracle))
67 call l4f_category_delete(category)
70 end program alchimiav7d