
# ICEM CFD solver interface routine for the manager.
#
# Copyright (c) 1993-1995 ICEM Systems.

proc comco_write_input {} {
    global confname file_name comco_output_path
    global file_name

    set domain [domain_select $file_name(domains_dir) "Select an unstructured domains." unstruct 0]
    if {$domain == {}} return
    set outfile $file_name(transfer_dir)/comco.PHLEX
    
    if {![dialog .comco "Comco" \
	  "Please edit the following comco options." {
		{outfile -type path -title "Output file" -help "Output file"}
	   }]} return

    
    if {![file exists $domain]} {
	errormsg "Domain file $domain doesn't exist"
	return
    }
    
    set command "\"$comco_output_path\" -dom \"$domain\" \
		 \"$outfile\""
    
    runcom $command ""
}
