Sample program to demostrate the alchimia module. This module use cuisine problems to demostrate the capacity of the module.
10 integer,
parameter :: ndat=100
11 type(fndsv) :: vfn,myvfn
12 character(len=10),
allocatable:: mybin(:),mybout(:)
13 real,
allocatable :: myin(:,:),myout(:,:)
14 TYPE(l4f_handle) :: category
16 CHARACTER(len=512):: a_name
19 call l4f_launcher(a_name,a_name_force=
"volgrid6dtransform")
25 category=l4f_category_get_handle(a_name//
".main")
28 call register_pentolone(vfn)
29 call register_forno(vfn)
31 mybin = [
character(len=10)::
"acqua",
"olio",
"patate",
"sale",
"pollo",
"mais",
"gommosa"]
32 mybout = [
character (len=10) ::
"pole.pata.",
"lesso"]
37 print *,
"I have: ",mybin
38 print *,
"I have to prepare: ",mybout
40 if (.not. oracle(mybin,mybout,vfn,myvfn))
then 41 print*,
"I cannot make ",mybout
43 if (.not. shoppinglist(mybout,vfn,myvfn))
then 44 print*,
" error shoppinglist" 54 print *,
"I need ",myvfn%nout,
" more variables" 56 allocate(myin(ndat,
size(mybin)))
58 allocate(myout(ndat,myvfn%nout))
60 call make(myvfn,mybin,mybout,myin,myout)
63 call l4f_category_delete(category)