Skip to content
Snippets Groups Projects
Commit 74d47df7 authored by Moe Jette's avatar Moe Jette
Browse files

Add comments to smap generated bluegene.conf file.

parent d22696c0
No related branches found
No related tags found
No related merge requests found
......@@ -807,6 +807,10 @@ static int _save_allocation(char *com, List allocated_blocks)
}
file_ptr = fopen(filename,"w");
if (file_ptr!=NULL) {
fputs ("#\n# bluegene.conf file generated by smap\n", file_ptr);
fputs ("# See the bluegene.conf man page for more information\n",
file_ptr);
fputs ("#\n", file_ptr);
fputs ("BlrtsImage="
"/bgl/BlueLight/ppcfloor/bglsys/bin/rts_hw.rts\n",
file_ptr);
......@@ -833,6 +837,8 @@ static int _save_allocation(char *com, List allocated_blocks)
sprintf(save_string, "LayoutMode=%s\n\0",
layout_mode);
fputs (save_string,file_ptr);
fputs("#\n# Block Layout\n#\n", file_ptr);
results_i = list_iterator_create(allocated_blocks);
while((allocated_block = list_next(results_i)) != NULL) {
memset(save_string,0,255);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment