A methodology for efficient porting of HPC applications to clouds is proposed. Communication costs are reduced using task agglomeration and mapping heuristics. Scientific workflow model and system are used to implement the methodology. The methodology is evaluated for FEM problems solved with multi-frontal solver. Experimental tests on up to 64 VMs on Amazon EC2 show the speedup of over 39 times.