- strcpy(origname, basename);
- strcat(origname, ".node");
-
- strcpy(nodename, basename);
- strcat(nodename, ".1.node");
-
- /* open original node file to see number of original nodes */
-
- printf("Checking original node file: %s ...\n", origname);
- if ( (orig = fopen(origname, "r")) == NULL ) {
- printf("Cannot open file '%s'\n", origname);
- exit(-1);
- }
- fscanf(orig, "%d %d %d %d", &origcount, &dim, &junk1, &junk2);
- printf(" Found %d nodes\n", origcount);
-
- printf("Loading node file: %s ...\n", nodename);
- if ( (node = fopen(nodename, "r")) == NULL ) {
- printf("Cannot open file '%s'\n", nodename);
+ printf("Loading node file: %s ...\n", filename);
+ if ( (node = fopen(filename, "r")) == NULL ) {
+ printf("Cannot open file '%s'\n", filename);