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

proc df2mouse_write_input {} {
    global confname file_name df2mouse_output_path icem_powermesh
    global file_name

    set domain [domain_select $file_name(domains_dir) "Select an unstructured domain." unstruct 0]
    if {$domain == {}} return
   
    set outfile $file_name(transfer_dir)/mouse

    if {![file exists $domain]} {
        errormsg "Domain file $domain doesn't exist"
        return
    }

    set command "\"$df2mouse_output_path\" -dom \"$domain\" \"$outfile\""

    runcom $command ""
}
