Skip to content

Commit 5ee5571

Browse files
Gareth TribelloGareth Tribello
authored andcommitted
Fixed issue with reading in grids that came about because I copied error code from hack-the-tree
1 parent bc12a48 commit 5ee5571

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/gridtools/ReadGridInSetup.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -242,16 +242,7 @@ ReadGridInSetup::ReadGridInSetup(const ActionOptions&ao):
242242
parse("VALUE",valuestr);
243243
std::string tstyle, filen;
244244
parse("FILE",filen);
245-
if( filen.length()>0 ) {
246-
std::size_t dot=filen.find_first_of(".");
247-
if( dot!=std::string::npos ) {
248-
tstyle=filen.substr(dot+1);
249-
}
250-
if( tstyle!="grid" ) {
251-
error("can only read in grids using read value in setup");
252-
}
253-
log.printf(" reading function %s on grid from file %s \n", valuestr.c_str(), filen.c_str() );
254-
}
245+
log.printf(" reading function %s on grid from file %s \n", valuestr.c_str(), filen.c_str() );
255246
IFile ifile;
256247
ifile.open(filen);
257248
if( !ifile.FieldExist( valuestr ) ) {

0 commit comments

Comments
 (0)