Revision 2137c2de

b/modules/fe_change.sh
11 11
		if [ ! -f $candidate/coord.xyz.old ]; then
12 12
			cp $candidate/coord.xyz $candidate/coord.xyz.old
13 13
		fi
14
 		cp $clean_surf $candidate/coord.xyz
14
 		head -n$((surf_num_atoms+2)) $clean_surf > $candidate/coord.xyz
15 15
		tail -n +$((surf_num_atoms+3)) $candidate/coord.xyz.old >> $candidate/coord.xyz
16 16
		molec_num_atoms=$(tail -n +$((surf_num_atoms+3)) $candidate/coord.xyz.old | wc -l)
17 17
		sed -i "s/$surf_num_atoms/$(($surf_num_atoms+$molec_num_atoms))/g" $candidate/coord.xyz

Also available in: Unified diff