Op 30/05/2021 om 16:16 schreef Bald Eagle:
> Maybe I'm tired, doing it wrong - or there are errors.
> In line 69 you have a capitalized inc file name, but you provide an
> all-lowercase named file.
> Then in line 70 you include a file - but if Granite_file isn't declared, it
> throws an error - which I thought is what line 69 is for.
> and _GRANITE_FILE_INC_ doesn't even exist until the file actually gets included,
> so aren't you checking the wrong identifier?
> Shouldn't it read something like:
> #ifndef (Granite_file)
> #declare Granite_file = "dakotaredgranite.inc";
> #declare FileOK = file_exists (Granite_file);
> #if (FileOK)
> #include Granite_file
> #else error concat ("Material color_map file \"", Granite_file, "\" doesn't
> exist. Exiting."
> #end // end if
> #end // end ifndef
There is indeed an error there. Replace the following line:
#ifndef (_GRANITE_FILE_INC_) #include "DakotaRedGranite.inc" #end
#ifndef (_GRANITE_FILE_INC_) #local Granite_file =
Post a reply to this message